Command
ECOX is a high-availability cluster management tool for PostgreSQL. It provides a command-line interface to manage the full lifecycle of the cluster, supporting commands like start, stop, and show.
Synopsis
ecox start [-c CONFIG] [-l LICENSE]
ecox stop [-c CONFIG] [-C] [-W] [-t SECS]
ecox show [-c CONFIG]
ecox reload [-c CONFIG]
ecox remove [-c CONFIG] [-C] [-N NODES]
ecox license [-l LICENSE]
| Sub-command | Description |
|---|---|
start |
Start the current node |
stop |
Stop the current node or the entire cluster |
show |
Display the current cluster status |
reload |
Reload the configuration file |
remove |
Remove the specific nodes or the entire cluster |
license |
Display license information |
Options
Common Options
-
-c, --config=CONFIGSpecify the location of the configuration file.
-
-v, --versionDisplay version information and exit.
-
-?, --helpDisplay usage information and exit.
Options for stop
-
-C, --clusterStop the entire cluster instead of just the current node.
-
-t, --timeout=SECSSpecify the timeout in seconds to wait for the operation to complete.
-
-w, --waitWait until the operation completes (default behavior).
-
-W, --no-waitDo not wait for the operation to complete; return immediately.
Options for remove
-
-C, --clusterRemove the entire cluster.
-
-N, --node=NODESSpecify a comma-separated list of node names to remove.
Options for start and license
-
-l, --license=LICENSESpecify the location of the license file.
Environment Variables
-
ECOX_CONFIGIf the
-cor--configoption is omitted, the environment variableECOX_CONFIGis used to locate the configuration file. -
ECOX_LICENSEIf the
-lor--licenseoption is omitted, the environment variableECOX_LICENSEis used to locate the license file.