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: update pymongo #1267

Merged
merged 1 commit into from
Oct 16, 2023
Merged

fix: update pymongo #1267

merged 1 commit into from
Oct 16, 2023

Conversation

raphael0202
Copy link
Collaborator

After incident of the weekend: openfoodfacts/openfoodfacts-infrastructure#265

@stephanegigandet
Copy link

@raphael0202 Would it make sense to reduce maxPoolSize (defaults to 100, but applies to each client, I don't know how many you can spawn?) https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html

@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #1267 (d5c5a79) into main (523290e) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1267   +/-   ##
=======================================
  Coverage   56.39%   56.39%           
=======================================
  Files          77       77           
  Lines        7440     7440           
=======================================
  Hits         4196     4196           
  Misses       3244     3244           
Files Coverage Δ
robotoff/products.py 41.75% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@raphael0202
Copy link
Collaborator Author

@stephanegigandet From what I understand, multiple connections should only happen in a multi-threaded setting (https://pymongo.readthedocs.io/en/stable/faq.html#how-does-connection-pooling-work-in-pymongo), which never happens for us: we instanciate the MongoClient after thread fork in all robotoff services.

@raphael0202 raphael0202 merged commit cac6241 into main Oct 16, 2023
10 checks passed
@raphael0202 raphael0202 deleted the update-pymongo branch October 16, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants