If a load balancer is running (recommended): Stop the load balancer and execute the SQL statement
SHUTDOWN. Then TiDB waits for a period as specified by
graceful-wait-before-shutdownuntil all sessions are terminated. Then TiDB stops running.
If no load balancer is running: Execute the
SHUTDOWNstatement. Then TiDB components are gracefully stopped.