Reload static lease from config on SIGHUP
When using the static lease, having a way to change which is the primary and which are the replicas without having to restart LiteFS would be nice.
Generally the SIGHUP signal is used to reload config files, it could be used in this case to update the primary status and the primary location.
@mildred What's the use case you have where you need to update the primary in a static lease? The static lease is meant to use a single primary host. It seems like you're building your own leader election.
@mildred What's the use case you have where you need to update the primary in a static lease? The static lease is meant to use a single primary host. It seems like you're building your own leader election.
It seams that this requirement is to chose a new static primary by updating the configs in litefs.yaml, and update/reload other nodes' litefs.yaml config to connect to the new static primary.