Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets postgres port to current pr number if open pr exists #3137

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

bonzofenix
Copy link
Contributor

@bonzofenix bonzofenix commented Aug 16, 2024

Dynamic PostgreSQL Port for Concurrent CF Workflows

This PR allows the PostgreSQL port to be set dynamically when accessed through the TCP route. This change enables us to run multiple Cloud Foundry (CF) workflows simultaneously, with each workflow connecting to a different PostgreSQL instance.

Key Changes:

Modified TCP route to use dynamic ports matching PR number
Updated PostgreSQL connection on metriscforwarder cf app

WORKING BUILD: https://concourse.app-runtime-interfaces.ci.cloudfoundry.org/teams/app-autoscaler/pipelines/app-autoscaler-release-autoscaler-775-dynamic-postgres-tcp-port/jobs/acceptance-log-cache-syslog-cf/builds/6

@bonzofenix bonzofenix force-pushed the autoscaler-775/dynamic-postgres-tcp-port branch from 6f52eb1 to 35dd0e8 Compare August 16, 2024 13:01
Make postgres port dynamic when getting consumed through the tcp route
allowing us to run multiple cf workflow simultanusly, each of
them pointing to different postgress instance
@bonzofenix bonzofenix force-pushed the autoscaler-775/dynamic-postgres-tcp-port branch from 35dd0e8 to 4652627 Compare August 16, 2024 13:31
Copy link

sonarcloud bot commented Aug 16, 2024

@bonzofenix bonzofenix self-assigned this Aug 16, 2024
@bonzofenix bonzofenix added the allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. label Aug 16, 2024
@bonzofenix bonzofenix merged commit fcf023f into main Aug 17, 2024
34 of 39 checks passed
@bonzofenix bonzofenix deleted the autoscaler-775/dynamic-postgres-tcp-port branch August 17, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. exclude-from-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants