Mikhail  Tsaplin
Mikhail Tsaplin

Reputation: 642

How to get when nodetool snapshot is finished on cassandra

I am writing python script creating and uploading Cassandra backups to external storage. Cassandra cluster is presented by three nodes and every node has two JBOD disks.

The script starts nodetool snapshot command and this command starts snapshot creation job on cluster and exits immediately while snapshot creation process continues its operation. Now script should wait until snapshot creation will be finished and continue with upload. Question is how to get snapshot creation status?

Upvotes: 2

Views: 725

Answers (1)

LHWizard
LHWizard

Reputation: 2379

nodetool snapshot creates hard links to the sstables. When the command exits, the snapshot is complete. it's typically v. fast

Upvotes: 1

Related Questions