解决服务器并发量的问题

http://www.cnblogs.com/gdkl/p/6807667.html

https://lenciel.com/2013/08/why-you-need-something-like-gunicorn/

nginx->反向代理 负载均衡(集群)

缓存服务器 :Redis/Memcached

gunicorn/uwsgi gunicorn 用python文件配置,配置简单

http://gunicorn.readthedocs.io/en/latest/getstart.html#django

http://docs.gunicorn.org/en/latest/configure.html

gunicorn只需要启用4–12个workers,就足以每秒钟处理几百甚至上千个请求了

worker数量是:(2 x $num_cores) + 1,这个公式很简单,它是基于给定的核心处理器数量,在其他worker处理请求时,每个worker将从socket那进行读写操作




猜你喜欢

转载自blog.csdn.net/u012698342/article/details/78265739