Skip to content

Commit

Permalink
fix: bump pool timeout on acquiring connection (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava authored Nov 6, 2024
1 parent fbb0aba commit b92b18f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-fdr-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
matrix:
concurrency: [1]
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}/fdr?schema=public
DATABASE_URL: ${{ secrets.DATABASE_URL }}/fdr?schema=public&connection_limit=6&pool_timeout=30
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
ALGOLIA_SEARCH_INDEX: ${{ secrets.ALGOLIA_SEARCH_INDEX }}
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
cd servers/fdr-deploy
VERSION="${git_version}" pnpm --filter=@fern-platform/fdr-deploy deploy:dev
env:
DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public
DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public&connection_limit=6&pool_timeout=30

smoke-test:
needs: deploy_dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-fdr-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: github.ref_type == 'tag' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/fdr@')
environment: Fern Prod
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}/fdr?schema=public
DATABASE_URL: ${{ secrets.DATABASE_URL }}/fdr?schema=public&connection_limit=6&pool_timeout=30
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
ALGOLIA_SEARCH_INDEX: ${{ secrets.ALGOLIA_SEARCH_INDEX }}
Expand Down
2 changes: 1 addition & 1 deletion servers/fdr/.env.dev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATABASE_URL="postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/fdr?schema=public&connection_limit=4"
DATABASE_URL="postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/fdr?schema=public&connection_limit=4&pool_timeout=30"
2 changes: 1 addition & 1 deletion servers/fdr/.env.prod
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATABASE_URL="postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/fdr?schema=public&connection_limit=6"
DATABASE_URL="postgresql://${POSTGRES_USERNAME}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/fdr?schema=public&connection_limit=6&pool_timeout=30"

0 comments on commit b92b18f

Please sign in to comment.