Use postgres IP instead of TCP route when deploying apps #3292
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the autoscaler deployment scripts and configuration files to enhance the handling of the PostgreSQL connection which produces flaky tests when running acceptance test.
Enhancements to deployment scripts:
ci/autoscaler/scripts/deploy-autoscaler.sh
: Updated thedeploy
function to retrieve the PostgreSQL IP address and set it in CredHub.Improvements to extension file handling:
src/autoscaler/build-extension-file.sh
: Added the PostgreSQL IP to the extension file template and adjusted the URI generation to use the PostgreSQL IP if available. [1] [2] [3] [4]Configuration adjustments:
operations/use-cf-services.yml
: Changed the registration interval for the PostgreSQL service from 10s to 5s.src/autoscaler/metricsforwarder/security-group.json
: Added a new rule to allow PostgreSQL traffic on port 5432.Minor cleanup:
ci/autoscaler/scripts/deploy-autoscaler.sh
: Added a blank line for better readability.