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 2017/06/30 15:12:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Jeremy Mitchell closed TC-68.
-----------------------------

> 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
>            Assignee: 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.4.14#64029)