alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.44k stars 8.03k forks source link

Proposal: Allow Custom CPU Usage Calculation Window #3447

Open qnnn opened 2 months ago

qnnn commented 2 months ago

Hello, I recently encountered an issue regarding CPU usage calculation. Currently, the CPU calculation cycle window is set to one second. In warm-up scenarios, this can easily trigger CPU usage-based rate limiting (such as during compilation at the C2 stage). Could it be possible to calculate CPU usage separately and allow for setting a custom calculation window? The current one-second window is too sensitive in warm-up scenarios.