superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.76k stars 89 forks source link

Add set-cluster-id command #391

Closed benbjohnson closed 9 months ago

benbjohnson commented 10 months ago

This pull request adds the litefs set-cluster-id command. It's meant for resetting the cluster ID on a given node as well as Consul. You should run this command on each node in your cluster.

If you are using LiteFS Cloud, you should set the value to the cluster ID reported in this error message:

backup client error (422): cluster id mismatch, expecting "LFSC5C7325076A1A2902"

Run the command while your LiteFS mount is up and running:

$ litefs set-cluster-id LFSC5C7325076A1A2902
benbjohnson commented 9 months ago

Closing this in favor of https://github.com/superfly/litefs/issues/393