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

[DONT MERGE YET] 6651-switch gunicorn worker type #6652

Closed
wants to merge 1 commit into from

Conversation

cnlucas
Copy link
Member

@cnlucas cnlucas commented Jan 23, 2025

Summary (required)

A great breakdown of the worker types and their uses here

Switches to gunicorn to gthread worker type, we are switching to this type because of the difficulty in configuration with gevent--but can switch back if we find this is not performant enough.

Required reviewers

1-2 devs

Impacted areas of the application

General components of the application that this PR will affect:

  • gunicorn servers
    This will effect our connections to the CMS db

Related PRs

fecgov/openFEC#6112

How to test

  • currently on feature
  • try out different page requests
  • check your cms db connections (I don't want to put the sql here, because of our recent conversation with the db team but you can message me if you are connected to the cms db and can't find it in slack)

You could load test, but there's limitations there since it's not sending requests to the db
Load testing has happened on openFEC and will be happening during the testing of the above PR as well

@cnlucas cnlucas changed the title switch gunicorn worker type 6651-switch gunicorn worker type Jan 23, 2025
@cnlucas cnlucas changed the title 6651-switch gunicorn worker type [DONT MERGE YET] 6651-switch gunicorn worker type Jan 24, 2025
@cnlucas cnlucas marked this pull request as draft January 24, 2025 16:06
@cnlucas cnlucas force-pushed the feature/switch-gunicorn-worker-threads branch from 932a9d8 to 2297617 Compare January 24, 2025 20:05
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.67%. Comparing base (479b7b6) to head (2297617).
Report is 11 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6652   +/-   ##
========================================
  Coverage    79.67%   79.67%           
========================================
  Files          236      236           
  Lines         5172     5172           
========================================
  Hits          4121     4121           
  Misses        1051     1051           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cnlucas
Copy link
Member Author

cnlucas commented Jan 29, 2025

How we are handling sessions is not thread safe.

@cnlucas cnlucas closed this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Switch to threads
1 participant