blob: 8fe45dcf59fa346cebb499d1b1af056c9a146e6e [file] [log] [blame]
Lusheng Jie0db2512018-02-12 11:04:08 -05001# ================================================================================
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 Shatov2f5b30a2018-04-18 11:09:49 -040018
Lusheng Ji1b2af342017-10-15 16:37:33 -040019application_config:
20 policy_handler :
21 # parallelize the getConfig queries to policy-engine on each policy-update notification
22 thread_pool_size : 4
Alex Shatov86823d72017-10-27 16:58:22 -040023
Lusheng Ji1b2af342017-10-15 16:37:33 -040024 # parallelize requests to policy-engine and keep them alive
25 pool_connections : 20
Alex Shatov86823d72017-10-27 16:58:22 -040026
Lusheng Ji1b2af342017-10-15 16:37:33 -040027 # retry to getConfig from policy-engine on policy-update notification
28 policy_retry_count : 5
29 policy_retry_sleep : 5
Alex Shatov86823d72017-10-27 16:58:22 -040030
Alex Shatov2f5b30a2018-04-18 11:09:49 -040031 # config of automatic catch_up for resiliency
32 catch_up :
33 # interval in seconds on how often to call automatic catch_up
34 # example: 1200 is 20*60 seconds that is 20 minutes
35 interval : 1200
Alex Shatov2f5b30a2018-04-18 11:09:49 -040036
Lusheng Ji1b2af342017-10-15 16:37:33 -040037 # policy-engine config
38 # These are the url of and the auth for the external system, namely the policy-engine (PDP).
39 # We obtain that info manually from PDP folks at the moment.
40 # In long run we should figure out a way of bringing that info into consul record
41 # related to policy-engine itself.
42 policy_engine :
Vijaydd825cb2017-11-06 00:46:28 +000043 url : "http://{{ policy_ip_addr }}:8081"
Lusheng Ji1b2af342017-10-15 16:37:33 -040044 path_pdp : "/pdp/"
45 path_api : "/pdp/api/"
46 headers :
47 Accept : "application/json"
48 "Content-Type" : "application/json"
Alex Shatov86823d72017-10-27 16:58:22 -040049 ClientAuth : "cHl0aG9uOnRlc3Q="
Lusheng Ji1b2af342017-10-15 16:37:33 -040050 Authorization : "Basic dGVzdHBkcDphbHBoYTEyMw=="
51 Environment : "TEST"
52 target_entity : "policy_engine"
Alex Shatov2f5b30a2018-04-18 11:09:49 -040053 # deploy_handler config
54 # changed from string "deployment_handler" in 2.3.1 to structure in 2.4.0
55 deploy_handler :
56 # name of deployment-handler service used by policy-handler for logging
57 target_entity : "deployment_handler"
58 # url of the deployment-handler service for policy-handler to direct the policy-updates to
59 # - expecting dns to resolve the hostname deployment-handler to ip address
60 url : "http://deployment-handler:8188"
Alex Shatovae60e472018-08-07 12:17:16 -040061 # limit the size of a single data segment for policy-update messages
62 # from policy-handler to deployment-handler in megabytes
63 max_msg_length_mb : 5