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

EBS volume duplication #171

Open
SergioGonzalezSanz opened this issue Aug 24, 2017 · 0 comments
Open

EBS volume duplication #171

SergioGonzalezSanz opened this issue Aug 24, 2017 · 0 comments

Comments

@SergioGonzalezSanz
Copy link

SergioGonzalezSanz commented Aug 24, 2017

During the cluster creation, the function create_cluster.launch_instance creates a new EBS volumen per each Cassandra node without checking first if a volume exists with the same name. Then, a volume with that name is attached to the node. It can cause 'volume duplication' in the sense that there will be two or more EBS volumes with the same name (not necessarily the same data) and it will make the instance-EBS volume attachment indeterministic.
If we have a set of previously existing EBS volumes from an old cluster and we want to use the existing data in the new Cassandra cluster, the script should check first if a volumen with the given name exists and if it does, it shouldn't create it but just attach it to the instance.
It is also really useful for implementing a failover strategy for Cassandra. It allows us to make snapshots of our EBS volumes and in the case that something happens, we can recreate a new cluster from the snapshots since they will be attached to the new instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant