Skip to content

Conversation

@hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Sep 11, 2025

⚠️ Checklist if your PR is changing anything else than documentation

Merge request description

I was having some trouble with the pgbouncer startup script failing in a deployment due to a dpkg lock so I added some additional logic to the wait_for_dpkg_lock function. While I was at it I thought it would make sense to optimize the unattended-upgrades setup since these instances might stay running for a long time. I also added a health check Lambda function to make sure that pgbouncer is correctly installed and running.

The problem I encountered with pgbouncer caused a silent failure of all of the API services! To make sure we are at least testing database connectivity in our development in eoapi-cdk I added some health check requests to the deployed APIs in the integration test deployment in Github Actions.

@hrodmn hrodmn requested a review from alukach September 11, 2025 15:03
@hrodmn hrodmn self-assigned this Sep 11, 2025
@hrodmn hrodmn requested a review from jjfrench September 11, 2025 15:05
@hrodmn hrodmn changed the title feat: pgbouncer unattended-upgrades feat: pgbouncer health check Sep 11, 2025
Copy link
Contributor

@jjfrench jjfrench left a comment

Choose a reason for hiding this comment

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

Overall, I think that it looks good

@hrodmn hrodmn merged commit d560291 into main Sep 15, 2025
9 checks passed
@hrodmn hrodmn deleted the fix/pgbouncer-startup branch September 15, 2025 19:04
github-actions bot pushed a commit that referenced this pull request Sep 15, 2025
# [10.2.0](v10.1.1...v10.2.0) (2025-09-15)

### Features

* pgbouncer health check ([#183](#183)) ([d560291](d560291))
@ds-release-bot
Copy link
Contributor

🎉 This PR is included in version 10.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants