为websocket连接的统一负载平衡配置nginx/gunicorn

2024-05-17 12:44:51 发布

您现在位置:Python中文网/ 问答频道 /正文

古尼康说:

Gunicorn relies on the operating system to provide all of the load balancing
when handling requests. 

对于WebSocket请求,这会导致对worker的请求的负载平衡不均衡。也就是说,一些工作人员处理的WebSocket连接比其他人多得多。你如何处理这个问题并得到统一的分配?在

我将geventwebsocket用于WebSocket服务器应用程序。在


Tags: ofthetoonloadoperatingallsystem