Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: compute --drain-wait based on cluster setting values
Release note (cli change): The --drain-wait argument for the `drain` command will be automatically increased if the command detects that it is smaller than the sum of server.shutdown.drain_wait, server.shutdown.connection_wait, server.shutdown.query_wait times two, and server.shutdown.lease_transfer_wait. If the --drain-wait argument is 0, then no timeout is used. This recommendation was already documented, but now the advice will be applied automatically.
- Loading branch information