closeio / socketshark

A WebSocket message router based on Python/Redis/asyncio
MIT License
116 stars 11 forks source link

Add heartbeat jitter #184

Closed nsaje closed 3 months ago

nsaje commented 3 months ago

Right now whenever we redeploy socketshark we get spikes every hour following that because all subscriptions get recreated at the same time and then send heartbeats at the same time.

Add some jitter to the first sleep so we spread it out more evenly.

image