Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-Generated Cluster ID #393

Open
benbjohnson opened this issue Aug 22, 2023 · 0 comments
Open

User-Generated Cluster ID #393

benbjohnson opened this issue Aug 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@benbjohnson
Copy link
Collaborator

The current implementation of cluster IDs can be confusing in some scenarios. The cluster ID is a random string value generated by LiteFS when a node first becomes primary and it is then propagated to replicas when they connect. It's also used by LiteFS Cloud when the first write arrives for a cluster. The goal of the cluster ID is to prevent two separate clusters from joining one another accidentally.

A better implementation may be to allow the user to specify their own cluster ID. This could be generated or it may just be easier to allow arbitrary values (such as $FLY_APP_NAME). As it's user-specified, it does not need to be persisted to disk.

@benbjohnson benbjohnson added the enhancement New feature or request label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant