tbarbugli / cassandra_snapshotter

A tool to backup cassandra nodes using snapshots and incremental backups on S3
Other
222 stars 122 forks source link

Enhancement: run snapshot locally for localhost #34

Open thesmart opened 10 years ago

thesmart commented 10 years ago

Currently the backup command takes --hosts option to run snapshot commands on each of the cassandra nodes. It would be useful if specifying "localhost" alone would run the snapshot command locally rather than via SSH.

I could see that this might lead to end-user thinking they could have localhost as one node among many non-local nodes. So maybe a new command, like local_backup or something?

intjonathan commented 9 years ago

+1 would love to just run the backups directly from the nodes rather than an orchestration host.

alari commented 9 years ago

+1 I want my cassandra nodes to backup themselves

intjonathan commented 9 years ago

So I actually worked around this by adding SSH users with keys just to itself and passwordless sudo. The ssh authorized key entry has from="%{::ipaddress}" at the front, so no other nodes (should) be able to use the key. It's a silly approach but it does work and avoids external hosts with passwordless remote sudo.

eherot commented 9 years ago

:+1: to the suggestion of being able to run locally (without silly workarounds). I'd love to be able to use Chef to enable this automatically on all Cassandra hosts.

RuBiCK commented 8 years ago

+1 I would like to execute locally the backup of a concrete node.