-
Notifications
You must be signed in to change notification settings - Fork 95
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
eventlet 如何使用,求demo #2
Comments
比如用gunicorn启动flask,如果并发模式采用 eventlet,就可以用 eventlet 的long poll |
我还在想如果我用 flask worker 的模式 会有很多线程的问题。 |
我在 celery 的 eventlet 模式下,实证可用,没有 thread 模式下必须等待30s才能退出的问题 |
eventlet 异步无效,请问是什么问题,环境mac py2.7 |
需要先 monkey patch。如果用的 gunicorn 或者 celery -P eventlet,它们自己会负责初始化,就什么都不用做。 |
@filamoon 直接利用pyapollo编写代码时 eventlet 异步确实无效,在 apollo_client.py 的 import eventlet 下面添加 eventlet.monkey_patch() 就可以让 eventlet 异步生效。可否修改一下源码? |
def start(self, use_eventlet=False, eventlet_monkey_patch=False) 增加了一个开关来控制是否调用 eventlet.monkey_patch() |
还行不会执行啊,只有调用t.wait() 方法才会触发执行,但wait会阻塞~ |
大家有执行成功的? |
我想在django中使用apollo配置中心来实现一些限速策略的设置。
重启django是可以读到配置文件的,但实现不了在线更新,
请问可能是哪里发生了问题? |
eventlet 如何使用?
The text was updated successfully, but these errors were encountered: