我们计划使用locust进行性能测试。我在Kubernetes上以分布式模式启动了locust,有800个用户,持续了5分钟。孵化率也是100。几分钟后,我可以在worker日志中看到以下警告。
[2020-07-15 07:03:15,990] pipeline1-locust-worker-1-gp824/WARNING/root: Loadgen CPU usage above 90%! This may constrain your throughput and may even give inconsistent response time measurements!
我无法计算这里的90%是什么,因为我没有指定任何资源限制。是节点容量的90%吗?这不太可能,因为我们使用健壮的节点、16Vcpu和128 we内存。有人能给出一些见解吗?
发布于 2020-07-17 04:50:41
它是一个核心的90% (由于python GIL,这是单个蝗虫进程所能利用的全部)(使用https://psutil.readthedocs.io/en/latest/#psutil.Process.cpu_percent测量)
如果您有16vcpu,则需要16个进程来利用整个节点。
我想我们应该澄清这个信息。
https://stackoverflow.com/questions/62942428
复制相似问题