Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Increase rate limiting for startup bursts

rcourtmand5f59ae858c5
diff --git a/cmd/pulse-sensor-proxy/throttle.go b/cmd/pulse-sensor-proxy/throttle.go
index 11c69125a1..8d39d7316f 100644
--- a/cmd/pulse-sensor-proxy/throttle.go
+++ b/cmd/pulse-sensor-proxy/throttle.go
@@ -50,13 +50,13 @@ type rateLimiter struct {
}
const (
- defaultPerPeerBurst = 5 // Allow burst of 5 requests for multi-node polling
+ defaultPerPeerBurst = 10 // Allow burst of 10 requests for multi-node polling with retries
defaultPerPeerConcurrency = 2
defaultGlobalConcurrency = 8
)
var (
- defaultPerPeerRateInterval = 1 * time.Second // 1 qps (60/min) - supports 5-10 node deployments
+ defaultPerPeerRateInterval = 500 * time.Millisecond // 2 qps (120/min) - supports larger deployments
defaultPenaltyDuration = 2 * time.Second
defaultPerPeerLimit = rate.Every(defaultPerPeerRateInterval)
)