heph icon indicating copy to clipboard operation
heph copied to clipboard

Thundering herd problem in shared timers

Open Thomasdezeeuw opened this issue 3 years ago • 3 comments

Pr #376 (knowingly) introduced the "Thundering herd problem" for the shared timers. If multiple worker threads have the same timeout (based on the shared timers) and all attempt to schedule the same thread-safe actor because of it will pointlessly waste resources, as the actor can only be scheduled once.

Thomasdezeeuw avatar Feb 22 '21 14:02 Thomasdezeeuw

This should be resolved when fixing #284.

Thomasdezeeuw avatar Feb 22 '21 14:02 Thomasdezeeuw

Fixed in #423.

Thomasdezeeuw avatar Mar 16 '21 14:03 Thomasdezeeuw

Reopened by commit e8c0e158c838f04e1b402e7e3f904520e724d819.

Thomasdezeeuw avatar Mar 29 '21 19:03 Thomasdezeeuw