【问题标题】:Does gunicorn + gevent monkey patch threadlocals to be greenlet-locals automatically?gunicorn + gevent monkey 是否自动将 threadlocals 修补为 greenlet-locals?
【发布时间】:2013-03-20 03:17:26
【问题描述】:

在 gevent 模式下运行 gunicorn 时,是否已经自动应用了使 threadlocals greenlet-locals 的 monkey patches (particularly those for threadlocals) described here

(我正在运行 django,目前使用 threadlocals 对大型查询结果进行一些快速缓存——我知道 gevent/greenlet 使用传统线程的替代模型,因此我很担心)。

【问题讨论】:

  • 同样的问题。谢谢!

标签: python django gevent gunicorn greenlets


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2011-03-27
  • 1970-01-01
  • 2012-06-14
  • 2012-12-09
  • 2017-04-29
  • 2016-02-15
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多