throttle
throttle copied to clipboard
Support a command line option to not allow acquiring new locks the first n seconds after reboot.
Imagine the server should crash or be killed and rebooted. In this case the clients are going to restore their acquired locks. However they will do so only after their heartbeat receives the Unknown Peer error from the server. Should to many clients acquire new locks, before this happens, the whole system runs at risk of increasing the semaphore count beyond max. While this is intentionally supported, it would be nice if we could delay handing out new locks after a server reboot. Specifically increasing it two a time somewhat longer than the heartbeat interval should make incrementing the semaphore count beyond max nearly impossible.