Skip to content

Commit

Permalink
Add max_migration_statement_runtime_in_seconds config property (#387)
Browse files Browse the repository at this point in the history
This change enables operators to configure
the new config property `max_migration_statement_runtime_in_seconds`
see cloudfoundry/cloud_controller_ng#3633.
  • Loading branch information
FloThinksPi authored Apr 9, 2024
1 parent 3eb4039 commit 26cf2ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,9 @@ properties:
ccdb.max_migration_duration_in_minutes:
description: "the maximum time migrations should be allowed to run before job startup should error"
default: 20160
ccdb.max_migration_statement_runtime_in_seconds:
description: "effective for postgres only. The maximum time a statement is executed before it being canceled server side(by the DB). This prevents expensive and long running migrations that block normal operation of the Cloud Controller by canceling misbehaving migrations. An operator can decide to increase or decrease this time."
default: 30
ccdb.connection_expiration_timeout:
description: "The period in seconds after which connections are expired (omit to never expire connections), passed directly to the Sequel gem - see https://sequel.jeremyevans.net/rdoc-plugins/files/lib/sequel/extensions/connection_expiration_rb.html for details"
ccdb.connection_expiration_random_delay:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ db: &db
<% uaa_url = p("uaa.url", "#{scheme}://uaa.#{system_domain}")
login_url = p("login.url", "#{scheme}://login.#{system_domain}") %>
max_migration_duration_in_minutes: <%= p("ccdb.max_migration_duration_in_minutes") %>
max_migration_statement_runtime_in_seconds: <%= p("ccdb.max_migration_statement_runtime_in_seconds") %>
login:
url: <%= p("login.enabled") ? login_url : uaa_url %>
uaa:
Expand Down

0 comments on commit 26cf2ff

Please sign in to comment.