diff options
author | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2020-11-17 13:30:52 -0500 |
---|---|---|
committer | Ram Krishna Verma <ram_krishna.verma@bell.ca> | 2020-11-17 13:30:57 -0500 |
commit | c418f2d1c841ea58ea36fd371a553d71313afc95 (patch) | |
tree | 245fb2195031ef0b5fb41018119cfb914c6c4d25 | |
parent | 6161bac3a56f324159ca13003cf84696659d4da3 (diff) |
[POLICY] Add fetchTimeout to handle dmaap 503 error
Adding fetchTimeout in policy xacml-pdp, apex-pdp & pap to throttle the request for 15ms in case of getting 503 from dmaap and not flooding too many requests.
Issue-ID: POLICY-2884
Change-Id: Ie03d5d7da5a6b7ac335eb9cc016c7b735faec3f0
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 files changed, 3 insertions, 0 deletions
diff --git a/kubernetes/policy/charts/pap/resources/config/config.json b/kubernetes/policy/charts/pap/resources/config/config.json index 5c02ce0f12..aba167708c 100644 --- a/kubernetes/policy/charts/pap/resources/config/config.json +++ b/kubernetes/policy/charts/pap/resources/config/config.json @@ -50,6 +50,7 @@ "topic" : "POLICY-PDP-PAP", "servers" : [ "message-router" ], "useHttps": true, + "fetchTimeout": 15000, "topicCommInfrastructure" : "dmaap" }], "topicSinks" : [{ diff --git a/kubernetes/policy/charts/policy-apex-pdp/resources/config/OnapPfConfig.json b/kubernetes/policy/charts/policy-apex-pdp/resources/config/OnapPfConfig.json index 767d1452cc..a3b5da15c3 100644 --- a/kubernetes/policy/charts/policy-apex-pdp/resources/config/OnapPfConfig.json +++ b/kubernetes/policy/charts/policy-apex-pdp/resources/config/OnapPfConfig.json @@ -32,6 +32,7 @@ "topic" : "POLICY-PDP-PAP", "servers" : [ "message-router" ], "useHttps" : true, + "fetchTimeout": 15000, "topicCommInfrastructure" : "dmaap" }], "topicSinks" : [{ diff --git a/kubernetes/policy/charts/policy-xacml-pdp/resources/config/config.json b/kubernetes/policy/charts/policy-xacml-pdp/resources/config/config.json index 3b72d8ed90..c0be49850e 100644 --- a/kubernetes/policy/charts/policy-xacml-pdp/resources/config/config.json +++ b/kubernetes/policy/charts/policy-xacml-pdp/resources/config/config.json @@ -40,6 +40,7 @@ "topic" : "POLICY-PDP-PAP", "servers" : [ "message-router" ], "useHttps" : true, + "fetchTimeout": 15000, "topicCommInfrastructure" : "dmaap" }], "topicSinks" : [{ |