Skip to content

Add configurable CCDB connection parameters#667

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

Add configurable CCDB connection parameters#667
WeiQuan0605 wants to merge 2 commits 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

@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?

Comment thread jobs/cloud_controller_ng/spec Outdated
Comment thread jobs/cc_deployment_updater/spec Outdated
@WeiQuan0605 WeiQuan0605 force-pushed the Add-Configurable-DB-Timeouts branch from 9ccd607 to 7fb4dad Compare July 14, 2026 11:15
Adds ccdb.psql.* BOSH properties for PostgreSQL-specific connection
parameters across all 4 CC jobs (cloud_controller_ng, cloud_controller_worker,
cloud_controller_clock, cc_deployment_updater).

SQL parameters (psql.statement_timeout, psql.idle_in_transaction_session_timeout)
are applied via connect_sqls on every new connection. libpq parameters
(psql.keepalives, psql.keepalives_idle, psql.keepalives_interval,
psql.keepalives_count) are passed directly to the PostgreSQL driver.
@WeiQuan0605 WeiQuan0605 force-pushed the Add-Configurable-DB-Timeouts branch from 7fb4dad to e586305 Compare July 14, 2026 11:20
jochenehret
jochenehret previously approved these changes Jul 14, 2026
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