You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Jeremy Mitchell (JIRA)" <ji...@apache.org> on 2016/12/13 18:13:58 UTC

[jira] [Comment Edited] (TC-68) To support an HA TO, regex_revalidate.config should not be written to the file system

    [ https://issues.apache.org/jira/browse/TC-68?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15745778#comment-15745778 ] 

Jeremy Mitchell edited comment on TC-68 at 12/13/16 6:13 PM:
-------------------------------------------------------------

Obviously, it is going to be slower to pull regex_revalidate.config thru the system as opposed to pulling it off the file system.

curling to https://to.domain.com/Trafficserver-Snapshots/cdn-name/regex_revalidate.config <-- file sitting on the file system

    time_namelookup:  0.005
       time_connect:  0.058
    time_appconnect:  0.000
   time_pretransfer:  0.000
      time_redirect:  0.000
 time_starttransfer:  0.000
                    ----------
         time_total:  0.063
		 
curling to https://to.domain.com/genfiles/view/server-host-name/regex_revalidate.config <-- this goes thru mojolicious / Perl / DB

    time_namelookup:  0.005
       time_connect:  0.062
    time_appconnect:  0.307
   time_pretransfer:  0.307
      time_redirect:  0.000
 time_starttransfer:  0.781
                    ----------
         time_total:  0.781


was (Author: mitchell852@apache.org):
Obviously, it is going to be slower to pull regex_revalidate.config thru the system as opposed to pulling it off the file system.

curling to https://to.domain.com/Trafficserver-Snapshots/cdn-name/regex_revalidate.config

    time_namelookup:  0.005
       time_connect:  0.058
    time_appconnect:  0.000
   time_pretransfer:  0.000
      time_redirect:  0.000
 time_starttransfer:  0.000
                    ----------
         time_total:  0.063
		 
curling to https://to.domain.com/genfiles/view/server-host-name/regex_revalidate.config

    time_namelookup:  0.005
       time_connect:  0.062
    time_appconnect:  0.307
   time_pretransfer:  0.307
      time_redirect:  0.000
 time_starttransfer:  0.781
                    ----------
         time_total:  0.781

> To support an HA TO, regex_revalidate.config should not be written to the file system
> -------------------------------------------------------------------------------------
>
>                 Key: TC-68
>                 URL: https://issues.apache.org/jira/browse/TC-68
>             Project: Traffic Control
>          Issue Type: Improvement
>          Components: Traffic Ops
>            Reporter: Jeremy Mitchell
>             Fix For: 2.0.0
>
>
> Currently, when an "invalidate content" request is created via one of these 2 routes:
> - POST /api/$version/user/current/jobs (thru the API)
> - POST /job/external/new (thru the UI)
> regex_revalidate.config is written to the file system at the location dictated by the 'snapshot_dir' parameter:
> https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/db/seeds.sql#L32
> In order to support a highly-available/redundant TO, we need to remove all dependencies on files written to the file system. 
> My suggestion is that we remove all calls to snapshot_regex_revalidate() which will stop regex_revalidate.config from being written to the file system.
> https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/MojoPlugins/Job.pm#L35
> After this is done. regex_revalidate.config can be retrieved like all other ATS config files using the following route: /genfiles/view/:host_name/regex_revalidate.config
> If this change is made, ORT would also have to change
> https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/bin/traffic_ops_ort.pl#L2159



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)