Is data persisted in a cassandra droplet?

Posted June 18, 2019 1.4k views

I am very new to docker and digitalocean.
I am running docker-machine and docker run to setup a cassandra droplet.
However, I am not sure if this is correct.

Is the data persisted in the droplet somehow or would I loose the data if I have to restart the droplet for some reason? (like if cassandra hangs or sort of)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

All droplets have persistent storage, so if you need to restart a service or the droplet itself you will not lose any data.

The same is true for attaching block volumes, the data is persistent.

You would only lose data if you “destroy” the droplet or the attached volume.

Droplets and block storage are not ephemeral.