[POLICY] Add fetchTimeout to handle dmaap 503 error 12/115012/1
authorRam Krishna Verma <ram_krishna.verma@bell.ca>
Tue, 17 Nov 2020 18:30:52 +0000 (13:30 -0500)
committerRam Krishna Verma <ram_krishna.verma@bell.ca>
Tue, 17 Nov 2020 18:30:57 +0000 (13:30 -0500)
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>
kubernetes/policy/charts/pap/resources/config/config.json
kubernetes/policy/charts/policy-apex-pdp/resources/config/OnapPfConfig.json
kubernetes/policy/charts/policy-xacml-pdp/resources/config/config.json

index 5c02ce0..aba1677 100644 (file)
@@ -50,6 +50,7 @@
             "topic" : "POLICY-PDP-PAP",
             "servers" : [ "message-router" ],
             "useHttps": true,
+            "fetchTimeout": 15000,
             "topicCommInfrastructure" : "dmaap"
         }],
         "topicSinks" : [{
index 767d145..a3b5da1 100644 (file)
@@ -32,6 +32,7 @@
             "topic" : "POLICY-PDP-PAP",
             "servers" : [ "message-router" ],
             "useHttps" : true,
+            "fetchTimeout": 15000,
             "topicCommInfrastructure" : "dmaap"
         }],
         "topicSinks" : [{
index 3b72d8e..c0be498 100644 (file)
@@ -40,6 +40,7 @@
             "topic" : "POLICY-PDP-PAP",
             "servers" : [ "message-router" ],
             "useHttps" : true,
+            "fetchTimeout": 15000,
             "topicCommInfrastructure" : "dmaap"
         }],
         "topicSinks" : [{