简体   繁体   English

由于 gunicron cpu 利用率为 96% 而造成的站点停机时间

[英]Site downtime becuase of gunicron cpu utilization is 96%

We have Django application that run with gunicorn.我们有 Django 与 gunicorn 一起运行的应用程序。 We ware facing site downtime because of high trafic.由于高流量,我们面临网站停机。 Gunicorn is utilizng 96 % of the cpu that what cauing the issue. Gunicorn 使用了 96% 的 CPU,这是导致问题的原因。

Our system specification: 8 GB ram, 4 cpu我们的系统规格:8 GB 内存,4 个 CPU

  1. How to setup gunicron in such way that it can handle more than 100 request per second?如何以每秒可以处理超过 100 个请求的方式设置 gunicron?

  2. What are the system specifcation required for handling 100 request per second?每秒处理 100 个请求所需的系统规格是什么?

  3. Is gunicorn workers are cpu count? gunicorn 工人是 cpu 计数吗?

Keep one worker only and increase number of threads in that worker.只保留一名工人并增加该工人中的线程数。 or use something like gevent in gunicorn或者在 gunicorn 中使用类似 gevent 的东西

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 减少CPU使用率 - Reducing CPU Utilization Cassandra分页CPU使用率问题 - Cassandra Pagination CPU Utilization Issue 等待异步程序中的I / O准备就绪时的CPU利用率 - CPU utilization while waiting for I/O to be ready in asynchronous programs 使用多处理模块时如何提高CPU利用率? - How can I improve CPU utilization when using the multiprocessing module? 使用 python sdk 获取 azure 中数据库的 CPU 利用率 - get cpu utilization of Database in azure using python sdk 如何使用 psutil 捕获进程的峰值内存和 CPU 利用率 - How to capture the Peak Memory and CPU utilization of the process using psutil 尝试使用 get-metric-statistics 从 Lambda 从 Cloudwatch 获取 CPU 利用率指标时,响应为 null - Response is null when trying to fetch CPU utilization metric from Cloudwatch from Lambda using get-metric-statistics 瓶子框架资源利用 - Bottle framework resource utilization 使用 np.shape() 时 (96,) 的含义? - Meaning of (96,) while using np.shape()? 不兼容的 chromedriver 和 chrome 版本,除了它们都是 96 - Incompatible chromedriver and chrome versions except they are both 96
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM