Skip to content

Commit

Permalink
Add max_migration_statement_runtime_in_seconds into default config
Browse files Browse the repository at this point in the history
For consitency since other optional parameters are also
defined there explicitly.
  • Loading branch information
FloThinksPi committed Feb 21, 2024
1 parent d3885b6 commit b7a9b57
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions config/cloud_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ newrelic_enabled: false
max_annotations_per_resource: 200
max_labels_per_resource: 50
max_migration_duration_in_minutes: 45
max_migration_statement_runtime_in_seconds: 30
db:
log_level: 'debug'
ssl_verify_hostname: false
Expand Down
1 change: 0 additions & 1 deletion lib/cloud_controller/config_schemas/base/clock_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class ClockSchema < VCAP::Config
newrelic_enabled: bool,

optional(:max_migration_duration_in_minutes) => Integer,
optional(:max_migration_statement_runtime_in_seconds) => Integer,
db: {
optional(:database) => Hash, # db connection hash for sequel
max_connections: Integer, # max connections in the connection pool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class DeploymentUpdaterSchema < VCAP::Config
deployment_updater: Integer
},
optional(:max_migration_duration_in_minutes) => Integer,
optional(:max_migration_statement_runtime_in_seconds) => Integer,
db: {
optional(:database) => Hash, # db connection hash for sequel
max_connections: Integer, # max connections in the connection pool
Expand Down
1 change: 0 additions & 1 deletion lib/cloud_controller/config_schemas/base/worker_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class WorkerSchema < VCAP::Config
newrelic_enabled: bool,

optional(:max_migration_duration_in_minutes) => Integer,
optional(:max_migration_statement_runtime_in_seconds) => Integer,
db: {
optional(:database) => Hash, # db connection hash for sequel
max_connections: Integer, # max connections in the connection pool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class RotateDatabaseKeySchema < VCAP::Config
pid_filename: String, # Pid filename to use

optional(:max_migration_duration_in_minutes) => Integer,
optional(:max_migration_statement_runtime_in_seconds) => Integer,
db: {
optional(:database) => Hash, # db connection hash for sequel\
max_connections: Integer, # max connections in the connection pool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class RouteSyncerSchema < VCAP::Config
pid_filename: String, # Pid filename to use

optional(:max_migration_duration_in_minutes) => Integer,
optional(:max_migration_statement_runtime_in_seconds) => Integer,
db: {
optional(:database) => Hash, # db connection hash for sequel
max_connections: Integer, # max connections in the connection pool
Expand Down

0 comments on commit b7a9b57

Please sign in to comment.