Reputation: 275
My website is using Django+Gunicorn+GEvent. There is a function which I have to use Boto for DynamoDB.
Do I need call monkey.patch_all() to make Boto become greenlet?
Upvotes: 3
Views: 4163
Reputation: 9816
If you use the default worker_class configuration, then you don't have the features of gevent. Look the doc here. I think you don't have the advantage of using gevent when you use the default configuration even though you monkey patch all.
So you should configure gunicorn to use the GeventWorker which does the monkey.patch_all()
operation and in this situation, I think you don't have to monkey patch all. Here is the source code of GeventWorker
and the doc about worker_class
Upvotes: 3