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

Configure DB Connection Poolling #4971

Closed
4 tasks
btylerburton opened this issue Nov 6, 2024 · 0 comments
Closed
4 tasks

Configure DB Connection Poolling #4971

btylerburton opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
H2.0/Harvest-DB Postgres and related DB tickets

Comments

@btylerburton
Copy link
Contributor

User Story

In order to avoid running into a connection error with our Postgres DB, datagovteam wants to configure the connection from flask -> db correctly.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN I have enabled a Gunicorn WSGI server
    THEN I want to determine the appropriate Gunicorn config
    AND optional thread pooling libraries to create a stable connection to the Postgres backend via SqlAlchemy

Background

Slack thread on connection overload: https://gsa-tts.slack.com/archives/C09CR1Q9Z/p1730929937757879

Background:

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

  • Determine best fit worker-class configuration (gevent or gthread) for Gunicorn WSGI server
  • Determine if psychopg is needed to create a connection pool
  • Determine if psycogreen will help with gevent connection pooling
@btylerburton btylerburton added the H2.0/Harvest-DB Postgres and related DB tickets label Nov 6, 2024
@btylerburton btylerburton self-assigned this Nov 7, 2024
@btylerburton btylerburton moved this to 🏗 In Progress [8] in data.gov team board Nov 7, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In Progress [8] to ✔ Done in data.gov team board Nov 7, 2024
@Bagesary Bagesary moved this from ✔ Done to 🗄 Closed in data.gov team board Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-DB Postgres and related DB tickets
Projects
Status: 🗄 Closed
Development

No branches or pull requests

1 participant