[ 
https://issues.apache.org/jira/browse/TC-68?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Mitchell updated TC-68:
------------------------------
    Description: 
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


  was:
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:

/genfiles/view/:host_name/regex_revalidate.config



> 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)

Reply via email to