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.

fix: increase pulse-sensor-proxy rate limits for multi-node support

rcourtmand856e75018d2
diff --git a/cmd/pulse-sensor-proxy/throttle.go b/cmd/pulse-sensor-proxy/throttle.go
index 3d07b0618c..59cc327288 100644
--- a/cmd/pulse-sensor-proxy/throttle.go
+++ b/cmd/pulse-sensor-proxy/throttle.go
@@ -38,13 +38,13 @@ type rateLimiter struct {
}
const (
- defaultPerPeerBurst = 2
+ defaultPerPeerBurst = 5 // Allow burst of 5 requests for multi-node polling
defaultPerPeerConcurrency = 2
defaultGlobalConcurrency = 8
)
var (
- defaultPerPeerRateInterval = 5 * time.Second // 0.2 qps (~12/min)
+ defaultPerPeerRateInterval = 1 * time.Second // 1 qps (60/min) - supports 5-10 node deployments
defaultPenaltyDuration = 2 * time.Second
defaultPerPeerLimit = rate.Every(defaultPerPeerRateInterval)
)