blossom cache_instance:switchover
Switch Redis to its standby
Usage
blossom cache_instance:switchover --id ID [--yes] [--follow] [--timestamps]
Flags
| Flag | Description |
|---|---|
--id (required) |
Cache instance id |
--yes, -y |
Skip the confirmation prompt |
--follow, -f |
Follow switchover logs |
--timestamps |
Show log timestamps. Default: true. |
Moves the Redis writer to its standby. Blossom fences the current primary before promotion and keeps the private endpoint unchanged; the old primary becomes the new standby.
A brief connection interruption is expected. Use it for planned maintenance
or to test failover. The Cache instance needs a standby first: set standby: true
with cache_instance:update.
blossom cache_instance:switchover --id cache_instance-100 --follow