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

fix: add DB keepalives #358

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

fix: add DB keepalives #358

wants to merge 1 commit into from

Conversation

simon-20
Copy link
Collaborator

Resolves #317

@simon-20 simon-20 requested a review from a user November 22, 2024 14:23
@@ -115,6 +118,9 @@ jobs:
sed -i ''s^#DB_USER#^$DB_USER^g'' ./deployment/deployment.yml
sed -i ''s^#DB_PASS#^$DB_PASS^g'' ./deployment/deployment.yml
sed -i ''s^#DB_NAME#^$DB_NAME^g'' ./deployment/deployment.yml
sed -i ''s^#DB_KEEPALIVE_IDLE#^$DB_KEEPALIVE_IDLE^g'' ./deployment/deployment.yml
Copy link

Choose a reason for hiding this comment

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

Don't these strings needed to be added to deployment/deployment.yml too?

And can we add them as values not secureValues, I think that means we can actually see what they are in Azure? (as we won't be able to in GitHub)

Copy link
Collaborator Author

@simon-20 simon-20 Dec 5, 2024

Choose a reason for hiding this comment

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

Yes, thanks, good spot.

It's possible to see any secret value sent to an Azure container instance by connecting to the container and echoing the value to the terminal, but I agree it would make sense to have these as values too, so that extra step is not needed.

It would also be good to have them in Github as variables, not secrets. What do you think? I think last time I suggested this you weren't sure because the existing non-secret values had been entered as secrets, but it would be good to start fixing this, especially as we'll have more opportunity to do so with all the upcoming work on the pipeline.

DB_CONN_RETRY_LIMIT=8,
DB_CONN_SLEEP_START=5,
DB_CONN_SLEEP_MAX=60,
DB_CONN_TIMEOUT=5,
DB_KEEPALIVE_IDLE=os.getenv("DB_KEEPALIVE_IDLE"),
Copy link

Choose a reason for hiding this comment

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

Could there be defaults here or in .env-example? Make it easier to set up local environments

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will add in .env-example

@simon-20 simon-20 requested a review from a user December 11, 2024 10:05
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.

Would PSQL connections benefit from a shorter keepalive?
2 participants