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/12 22:08:58 UTC
[jira] [Created] (TC-68) To support an HA TO,
regex_revalidate.config should not be written to the file system
Jeremy Mitchell created TC-68:
---------------------------------
Summary: 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:
/genfiles/view/:host_name/regex_revalidate.config
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)