Lusheng Ji | e0db251 | 2018-02-12 11:04:08 -0500 | [diff] [blame] | 1 | # ================================================================================ |
| 2 | # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. |
| 3 | # ================================================================================ |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # ============LICENSE_END========================================================= |
| 16 | # |
| 17 | # ECOMP is a trademark and service mark of AT&T Intellectual Property. |
Alex Shatov | 2f5b30a | 2018-04-18 11:09:49 -0400 | [diff] [blame] | 18 | |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 19 | application_config: |
| 20 | policy_handler : |
| 21 | # parallelize the getConfig queries to policy-engine on each policy-update notification |
| 22 | thread_pool_size : 4 |
Alex Shatov | 86823d7 | 2017-10-27 16:58:22 -0400 | [diff] [blame] | 23 | |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 24 | # parallelize requests to policy-engine and keep them alive |
| 25 | pool_connections : 20 |
Alex Shatov | 86823d7 | 2017-10-27 16:58:22 -0400 | [diff] [blame] | 26 | |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 27 | # list of policyName prefixes (filters) that DCAE-Controller handles (=ignores any other policyName values) |
Alex Shatov | 2f5b30a | 2018-04-18 11:09:49 -0400 | [diff] [blame] | 28 | scope_prefixes : ["DCAE.Config_", "CLAMP"] |
Alex Shatov | 86823d7 | 2017-10-27 16:58:22 -0400 | [diff] [blame] | 29 | |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 30 | # retry to getConfig from policy-engine on policy-update notification |
| 31 | policy_retry_count : 5 |
| 32 | policy_retry_sleep : 5 |
Alex Shatov | 86823d7 | 2017-10-27 16:58:22 -0400 | [diff] [blame] | 33 | |
Alex Shatov | 2f5b30a | 2018-04-18 11:09:49 -0400 | [diff] [blame] | 34 | # config of automatic catch_up for resiliency |
| 35 | catch_up : |
| 36 | # interval in seconds on how often to call automatic catch_up |
| 37 | # example: 1200 is 20*60 seconds that is 20 minutes |
| 38 | interval : 1200 |
| 39 | # max_skips is the maximal number of times the auto catch_up can be skipped |
| 40 | # to reduce sending of identically the same messages to the deployment-handler |
| 41 | # example: if nothing changes in policy-engine |
| 42 | # the policy-handler will still send the identicall cathc_up message |
| 43 | # to deployment handler roughly every (max_skips + 1) * interval seconds |
| 44 | # instead of sending the changed message every interval seconds |
| 45 | # in this case of max_skips = 5 the catch_up message will be sent |
| 46 | # roughly every 2 hours = (5+1) * 1200 = 6 * 20 * 60 seconds = 2 * 60 * 60 |
| 47 | max_skips : 5 |
| 48 | |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 49 | # policy-engine config |
| 50 | # These are the url of and the auth for the external system, namely the policy-engine (PDP). |
| 51 | # We obtain that info manually from PDP folks at the moment. |
| 52 | # In long run we should figure out a way of bringing that info into consul record |
| 53 | # related to policy-engine itself. |
| 54 | policy_engine : |
Vijay | dd825cb | 2017-11-06 00:46:28 +0000 | [diff] [blame] | 55 | url : "http://{{ policy_ip_addr }}:8081" |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 56 | path_pdp : "/pdp/" |
| 57 | path_api : "/pdp/api/" |
| 58 | headers : |
| 59 | Accept : "application/json" |
| 60 | "Content-Type" : "application/json" |
Alex Shatov | 86823d7 | 2017-10-27 16:58:22 -0400 | [diff] [blame] | 61 | ClientAuth : "cHl0aG9uOnRlc3Q=" |
Lusheng Ji | 1b2af34 | 2017-10-15 16:37:33 -0400 | [diff] [blame] | 62 | Authorization : "Basic dGVzdHBkcDphbHBoYTEyMw==" |
| 63 | Environment : "TEST" |
| 64 | target_entity : "policy_engine" |
Alex Shatov | 2f5b30a | 2018-04-18 11:09:49 -0400 | [diff] [blame] | 65 | # deploy_handler config |
| 66 | # changed from string "deployment_handler" in 2.3.1 to structure in 2.4.0 |
| 67 | deploy_handler : |
| 68 | # name of deployment-handler service used by policy-handler for logging |
| 69 | target_entity : "deployment_handler" |
| 70 | # url of the deployment-handler service for policy-handler to direct the policy-updates to |
| 71 | # - expecting dns to resolve the hostname deployment-handler to ip address |
| 72 | url : "http://deployment-handler:8188" |