What does gpstop do?
gpstop is a command used to stop a Greenplum Database cluster. It gracefully shuts down the cluster's components, including primary and mirror segments, the master instance, and standby master (if configured).
Why is it important?
Properly stopping a Greenplum Database cluster is crucial to ensure data integrity and avoid corruption. gpstop helps in maintaining a consistent state during maintenance tasks, upgrades, or system shutdowns.
How to use gpstop:
You can use gpstop to gracefully stop a Greenplum Database cluster. The basic usage is as follows:
gpstop [-a | --all] [-M | --mode ] [-m | --master] [-q | --quick] [-r | --resync] [-s | --standby] [-w | --wait] [-h | --help] [-v | --version]
-a, --all: Stop all segments and master instance.
-M, --mode : Specify stop mode (e.g., smart, fast, or immediate).
-m, --master: Stop the master instance.
-q, --quick: Quickly stop, avoiding graceful shutdown.
-r, --resync: Resynchronize the standby master.
-s, --standby: Stop the standby master.
-w, --wait: Wait for all processes to stop.
-h, --help: Show command help.
-v, --version: Show command version.