Skip to content

Commit

Permalink
Merge pull request #201 from enisoc/wait-for-backup
Browse files Browse the repository at this point in the history
Document new -wait_for_backup_interval vttablet flag.
  • Loading branch information
sougou authored Jun 24, 2019
2 parents 4e58cc1 + 0d25683 commit f293f77
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions content/en/docs/user-guides/backup-and-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,16 @@ to restore a backup to that tablet.

As noted in the [Prerequisites](#prerequisites) section, the flag is
generally enabled all of the time for all of the tablets in a shard.
If Vitess cannot find a backup in the Backup Storage system, it just
starts the vttablet as a new tablet.
By default, if Vitess cannot find a backup in the Backup Storage system,
the tablet will start up empty. This behavior allows you to bootstrap a new
shard before any backups exist.

If the `-wait_for_backup_interval` flag is set to a value greater than zero,
the tablet will instead keep checking for a backup to appear at that interval.
This can be used to ensure tablets launched concurrently while an initial backup
is being seeded for the shard (e.g. uploaded from cold storage or created by
another tablet) will wait until the proper time and then pull the new backup
when it's ready.

``` sh
vttablet ... -backup_storage_implementation=file \
Expand Down

0 comments on commit f293f77

Please sign in to comment.