From 9faccbf117fdad99d528c7dc30aa4699dbc57dcd Mon Sep 17 00:00:00 2001 From: pasant9 Date: Fri, 8 Nov 2024 10:52:51 +0530 Subject: [PATCH 1/2] Update Gateway runtime artifact configs --- en/docs/reference/config-catalog.md | 57 +++++++++++++++++++ .../data/configs.json | 24 ++++++++ 2 files changed, 81 insertions(+) diff --git a/en/docs/reference/config-catalog.md b/en/docs/reference/config-catalog.md index 029f37afe7..ef0854a617 100644 --- a/en/docs/reference/config-catalog.md +++ b/en/docs/reference/config-catalog.md @@ -1558,6 +1558,63 @@ gateway_labels = ["Default"]

Array of the labels that the gateway is going to subscribe to

+
+
+ deployment_retry_duration +
+
+
+

+ int + +

+
+ Default: 15000 +
+ +
+
+

The initial duration in milliseconds to wait before retrying a failed deployment

+
+
+
+
+ max_retry_count +
+
+
+

+ int + +

+
+ Default: 5 +
+ +
+
+

The maximum number of retry attempts for deploying artifacts in case of failures.

+
+
+
+
+ retry_progression_factor +
+
+
+

+ float + +

+
+ Default: 2.0 +
+ +
+
+

The factor by which the retry duration increases after each failed deployment attempt.

+
+
diff --git a/en/tools/config-catalog-generator/data/configs.json b/en/tools/config-catalog-generator/data/configs.json index 0b3d15514c..f3017cc69b 100755 --- a/en/tools/config-catalog-generator/data/configs.json +++ b/en/tools/config-catalog-generator/data/configs.json @@ -567,6 +567,30 @@ "Default" ], "description": "Array of the labels that the gateway is going to subscribe to" + }, + { + "name": "deployment_retry_duration", + "type": "int", + "required": false, + "default": "15000", + "possible": "", + "description": "The initial duration in milliseconds to wait before retrying a failed deployment" + }, + { + "name": "max_retry_count", + "type": "int", + "required": false, + "default": "5", + "possible": "", + "description": "The maximum number of retry attempts for deploying artifacts in case of failures." + }, + { + "name": "retry_progression_factor", + "type": "float", + "required": false, + "default": "2.0", + "possible": "", + "description": "The factor by which the retry duration increases after each failed deployment attempt." } ] } From 141b4b5647cd5f6e050b5f5279c789bd7662f8ae Mon Sep 17 00:00:00 2001 From: pasant9 Date: Fri, 8 Nov 2024 11:20:44 +0530 Subject: [PATCH 2/2] Add apim.sync_runtime_artifacts.gateway sample configs --- en/docs/reference/config-catalog.md | 5 ++++- .../data/apim.sync_runtime_artifacts.gateway.toml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/en/docs/reference/config-catalog.md b/en/docs/reference/config-catalog.md index ef0854a617..e9efbd2bad 100644 --- a/en/docs/reference/config-catalog.md +++ b/en/docs/reference/config-catalog.md @@ -1524,7 +1524,10 @@ https_endpoint = "https://localhost:${https.nio.port}"
[apim.sync_runtime_artifacts.gateway]
-gateway_labels = ["Default"]
+gateway_labels = ["Default"] +deployment_retry_duration = 15000 +max_retry_count = 5 +retry_progression_factor = 2.0
diff --git a/en/tools/config-catalog-generator/data/apim.sync_runtime_artifacts.gateway.toml b/en/tools/config-catalog-generator/data/apim.sync_runtime_artifacts.gateway.toml index bd3cabf513..890efb69d9 100644 --- a/en/tools/config-catalog-generator/data/apim.sync_runtime_artifacts.gateway.toml +++ b/en/tools/config-catalog-generator/data/apim.sync_runtime_artifacts.gateway.toml @@ -1,2 +1,5 @@ [apim.sync_runtime_artifacts.gateway] -gateway_labels = ["Default"] \ No newline at end of file +gateway_labels = ["Default"] +deployment_retry_duration = 15000 +max_retry_count = 5 +retry_progression_factor = 2.0 \ No newline at end of file