Open
Description
Description
I'm trying to make a snapshot with cluster wide consistency by creating write
blocks across all cluster indices before, and deleting them after the snapshot.
Though I'm concerned about application downtime in case large data sets are being backed up...
As I understand, it should be possible to delete write
blocks as soon as all primary shards are snapshot-ed locally without having to wait for shards data to be uploaded to the snapshot repository. However, I'm not sure if:
- I can assume that all shards are locally snapshot-ed as soon as the snapshot is created with the Create snapshot API (without waiting for completion), or
- I have to poll the Get snapshot status API to monitor the shards status and wait for each shard
stage
to beSTARTED
?
Going a bit further, would it be possible to have a block_writes=true
parameter in the "Create snapshot API" to automate consistent snapshots creation in ES?