Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检查集群内 NestJS/NodeJS 应用程序的自动缩放行为。我想根据每秒请求数生成 CPU 和/或内存使用率 >70%。我试图在每个请求上累积随机数的乘法 1 秒,但似乎请求是一个一个处理的,并且永远不会产生太多负载。你的建议是什么?
如果您尝试使用 nodejs 基本上耗尽计算机,以下对我有用: