documentation fixes and update migration timestamp
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/d6014a48 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/d6014a48 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/d6014a48 Branch: refs/heads/master Commit: d6014a48eeae88d15782feac45b659b5748fe6c1 Parents: ba8bc3d Author: Derek Gelinas <mrdgeli...@gmail.com> Authored: Wed Mar 15 19:54:13 2017 +0000 Committer: Jeremy Mitchell <mitchell...@gmail.com> Committed: Thu Mar 16 15:08:24 2017 -0600 ---------------------------------------------------------------------- docs/source/admin/traffic_ops_config.rst | 9 ++++--- .../20170221190747_add_reval_pending.sql | 26 -------------------- .../20170226190747_add_reval_pending.sql | 26 ++++++++++++++++++++ 3 files changed, 31 insertions(+), 30 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d6014a48/docs/source/admin/traffic_ops_config.rst ---------------------------------------------------------------------- diff --git a/docs/source/admin/traffic_ops_config.rst b/docs/source/admin/traffic_ops_config.rst index 4c8038f..06395e8 100644 --- a/docs/source/admin/traffic_ops_config.rst +++ b/docs/source/admin/traffic_ops_config.rst @@ -40,7 +40,8 @@ Many of the settings for the different servers in a Traffic Control CDN are cont +==========================+===============+=======================================================================================================================================+ | tm.url | global | The URL where this Traffic Ops instance is being served from. | +--------------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------+ -| tm.cache.url | global | Not Requred. The URL where the Traffic Ops Config file cache instance is being served from. Requires Traffic Ops 2.1 and above. |+--------------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------+ +| tm.cache.url | global | Not Requred. The URL where the Traffic Ops Config file cache instance is being served from. Requires Traffic Ops 2.1 and above. | ++--------------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------+ | tm.toolname | global | The name of the Traffic Ops tool. Usually "Traffic Ops". Used in the About screen and in the comments headers of the files generated. | +--------------------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------+ | tm.infourl | global | This is the "for more information go here" URL, which is visible in the About page. | @@ -152,9 +153,9 @@ Content Purge is controlled by the following parameters in the profile of the ca | regex_revalidate | plugin.config | The config to be used for regex_revalidate. | `regex_revalidate <https://docs.trafficserver.apache.org/en/5.3.x/reference/plugins/regex_remap.en.html>`_ | | | | For example: --config regex_revalidate.config | | +----------------------+-------------------------+--------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ -| use_reval_pending | global | Configures Traffic Ops to use separate reval_pending flag for each cache. When this flag is in use ORT will check for a new regex_revalidate.config every 60 seconds in syncds mode during | -| | | the dispersal timer. This will also allow ORT to be run in revalidate mode, which will check for and clear the reval_pending flag. This can be set to run via cron task. | -| | | This value is set to 0 by default. Enable with a value of 1. Use of this feature requires Traffic Ops 2.1 and above. | +| use_reval_pending | global | Configures Traffic Ops to use separate | When this flag is in use ORT will check for a new regex_revalidate.config every 60 seconds in syncds mode during the dispersal timer. This will | +| | | reval_pending flag for each cache. | also allow ORT to be run in revalidate mode, which will check for and clear the reval_pending flag. This can be set to run via cron task. | +| | | | This value is set to 0 by default. Enable with a value of 1. Use of this feature requires Traffic Ops 2.1 and above. | +----------------------+-------------------------+--------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+ http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d6014a48/traffic_ops/app/db/migrations/20170221190747_add_reval_pending.sql ---------------------------------------------------------------------- diff --git a/traffic_ops/app/db/migrations/20170221190747_add_reval_pending.sql b/traffic_ops/app/db/migrations/20170221190747_add_reval_pending.sql deleted file mode 100644 index 74864d5..0000000 --- a/traffic_ops/app/db/migrations/20170221190747_add_reval_pending.sql +++ /dev/null @@ -1,26 +0,0 @@ -/* - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - --- +goose Up --- SQL in section 'Up' is executed when this migration is applied -ALTER TABLE server ADD COLUMN reval_pending boolean NOT NULL DEFAULT false; -INSERT INTO parameter (name, config_file, value, secure) VALUES ('use_reval_pending', 'global', '0', False); -insert into profile_parameter (profile, parameter) values ((select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'use_reval_pending')); - --- +goose Down --- SQL section 'Down' is executed when this migration is rolled back -ALTER TABLE server DROP COLUMN reval_pending; -delete from profile_parameter where parameter = (select id from parameter where name = 'use_reval_pending'); -delete from parameter where name = 'use_reval_pending'; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/d6014a48/traffic_ops/app/db/migrations/20170226190747_add_reval_pending.sql ---------------------------------------------------------------------- diff --git a/traffic_ops/app/db/migrations/20170226190747_add_reval_pending.sql b/traffic_ops/app/db/migrations/20170226190747_add_reval_pending.sql new file mode 100644 index 0000000..74864d5 --- /dev/null +++ b/traffic_ops/app/db/migrations/20170226190747_add_reval_pending.sql @@ -0,0 +1,26 @@ +/* + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +-- +goose Up +-- SQL in section 'Up' is executed when this migration is applied +ALTER TABLE server ADD COLUMN reval_pending boolean NOT NULL DEFAULT false; +INSERT INTO parameter (name, config_file, value, secure) VALUES ('use_reval_pending', 'global', '0', False); +insert into profile_parameter (profile, parameter) values ((select id from profile where name = 'GLOBAL'), (select id from parameter where name = 'use_reval_pending')); + +-- +goose Down +-- SQL section 'Down' is executed when this migration is rolled back +ALTER TABLE server DROP COLUMN reval_pending; +delete from profile_parameter where parameter = (select id from parameter where name = 'use_reval_pending'); +delete from parameter where name = 'use_reval_pending'; \ No newline at end of file