返回备忘录列表

Why SERVER_WORKER_AMOUNT is 1 when you use SERVER_WORKER_CLASS=gevent?

更新于

公开 · 所有人可见

Why SERVER_WORKER_AMOUNT is 1 when you use SERVER_WORKER_CLASS=gevent?

https://github.com/langgenius/dify/issues/16248

When SERVER_WORKER_CLASS is set to gevent, SERVER_WORKER_AMOUNT should be set to 1 because gevent is designed to handle many connections with a single worker using asynchronous I/O. This approach leverages gevent's ability to manage multiple connections efficiently without the need for multiple workers, which is why the configuration suggests using a single worker for gevent