ezgh databases failover <database> [--yes] [--wait] [flags]Fail a database over, as maintenance does. Open connections end, and writes are refused for a few seconds. Clients reconnect to the same endpoint. It’s refused when it can’t fail over right now: try again in a few minutes. It asks first on a terminal; --yes confirms otherwise.
Part of ezgh databases.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--wait |
boolean | wait until it’s done, and print the database then | |
--wait-timeout |
duration | 10m0s |
how long --wait waits |
-y, --yes |
boolean | don’t ask for confirmation |
This command also takes the global flags.