Skip to content

Commit

Permalink
Merge pull request #225 from sap-contributions/implement-exponential-…
Browse files Browse the repository at this point in the history
…backoff-for-sb-operations

Introduces exponential backoff config parameter
  • Loading branch information
philippthun authored Feb 16, 2022
2 parents 30ba468 + 35af2f4 commit 07f539a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,10 @@ properties:
default: 10080
description: "The max duration the CC will fetch service instance state from a service broker (in minutes). Default is 1 week"

cc.broker_client_async_poll_exponential_backoff_rate:
default: 1.0
description: "Exponential backoff for service related polling jobs. Default is 1.0, which means there is no exponential backoff."

cc.development_mode:
default: false
description: "Enable development features for monitoring and insight"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ disable_custom_buildpacks: <%= p("cc.disable_custom_buildpacks") %>
broker_client_timeout_seconds: <%= p("cc.broker_client_timeout_seconds") %>
broker_client_default_async_poll_interval_seconds: <%= p('cc.broker_client_default_async_poll_interval_seconds') %>
broker_client_max_async_poll_duration_minutes: <%= p('cc.broker_client_max_async_poll_duration_minutes') %>
broker_client_async_poll_exponential_backoff_rate: <%= p('cc.broker_client_async_poll_exponential_backoff_rate') %>
renderer:
max_results_per_page: <%= p("cc.renderer.max_results_per_page") %>
default_results_per_page: <%= p("cc.renderer.default_results_per_page") %>
Expand Down
4 changes: 4 additions & 0 deletions jobs/cloud_controller_worker/spec
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ properties:
default: 10080
description: "The max duration the CC will fetch service instance state from a service broker. Default is 1 week"

cc.broker_client_async_poll_exponential_backoff_rate:
default: 1.0
description: "Exponential backoff for service related polling jobs. Default is 1.0, which means there is no exponential backoff."

cc.bits_service.enabled:
description: "Enable integration of the bits-service incubator (experimental)"
default: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ disable_custom_buildpacks: <%= p("cc.disable_custom_buildpacks") %>
broker_client_timeout_seconds: <%= p("cc.broker_client_timeout_seconds") %>
broker_client_default_async_poll_interval_seconds: <%= p('cc.broker_client_default_async_poll_interval_seconds') %>
broker_client_max_async_poll_duration_minutes: <%= p('cc.broker_client_max_async_poll_duration_minutes') %>
broker_client_async_poll_exponential_backoff_rate: <%= p('cc.broker_client_async_poll_exponential_backoff_rate') %>

<% if_p("uaa.clients.cc_service_broker_client.secret") do %>
uaa_client_name: "cc_service_broker_client"
Expand Down

0 comments on commit 07f539a

Please sign in to comment.