Skip to content

Add configurable CCDB connection parameters#667

Open
WeiQuan0605 wants to merge 1 commit into
cloudfoundry:developfrom
sap-contributions:Add-Configurable-DB-Timeouts
Open

Add configurable CCDB connection parameters#667
WeiQuan0605 wants to merge 1 commit into
cloudfoundry:developfrom
sap-contributions:Add-Configurable-DB-Timeouts

Conversation

@WeiQuan0605

@WeiQuan0605 WeiQuan0605 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor
  • A short explanation of the proposed change:
    Currently CC relies on connection timeouts configured globally at the CCDB level (e.g. statement_timeout = 1h, idle_in_transaction_session_timeout = 10min). With this feature, these settings are now configurable in the BOSH manifest alongside other Cloud Controller (CC) configuration, without requiring direct database access.

  • Links to any other associated PRs
    Add configurable CCDB connection parameters

  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the develop branch

  • I have run CF Acceptance Tests on bosh lite

Expose ccdb.connection_parameters as an optional BOSH property on both
cloud_controller_ng and cloud_controller_worker jobs. Operators can use
this to configure PostgreSQL session parameters (statement_timeout,
idle_in_transaction_session_timeout) and TCP keepalive settings
(keepalives, keepalives_idle, keepalives_interval, keepalives_count)
from the BOSH manifest instead of requiring DB-level configuration.

@jochenehret jochenehret left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on a bbl landscape, works!

One more comment: What about the database configuration of the cloud_controller_clock and cc_deployment_updater jobs?

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:
description: "The random delay in seconds to the expiration timeout (to prevent all connections being recreated simultaneously), 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_parameters:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename the parameter to psql_connection_parameters? To have a clear distinction between PostgreSQL and potentially upcoming MySQL connection parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants