NODECTL CLI

NODECTL

NODECTL is the pgEdge Command Line Interface (CLI) for managing components. The individual modules are:

  • Update Manager (UM)
  • SERVICE
  • SPOCK
  • CLUSTER
  • ACE

Synopsis

./nodectl <module_name> <command> [parameters] [options]

When calling a NODECTL command, specify the name of the module, followed by the command name and any command options. To review help for a module, use the command:

./nodectl <module_name> --help

UM

Commands in the UM module include:

CommandDescription
listDisplay available/installed components
updateRetrieve new list of latest components & update nodectl
installInstall a component (for example, pg15, pg16, spock, postgis)
removeUn-install component
upgradePerform an upgrade of a component
cleanDelete downloaded component files from local cache

SERVICE

Commands in the SERVICE module include:

CommandDescription
startStart server components
stopStop server components
statusDisplay status of installed server components
reloadReload server config files (without a restart)
restartStop & then start server components
enableEnable a server component
disableDisable component from starting automatically
configConfigure a component
initInitialize a component

SPOCK

Commands in the SPOCK module include:

CommandDescription
tuneTune for this configuration
node-createDefine a node for spock
node-dropRemove a spock node
node-alter-locationSet location details for spock node
node-listDisplay node table
node-add-interfaceAdd a new node interafce
node-drop-interfaceDelete a node interface
repset-createDefine a replication set
repset-alterModify a replication set
repset-dropRemove a replication set
repset-add-tableAdd table(s) to replication set
repset-remove-tableRemove table from replication set
repset-add-seqAdd a sequence to a replication set
repset-remove-seqRemove a sequence from a replication set
repset-alter-seqChange a replication set sequence
repset-list-tablesList tables in replication sets
sub-createCreate a subscription
sub-dropDelete a subscription
sub-alter-interfaceModify an interface to a subscription
sub-enableMake a subscription live
sub-disablePut a subscription on hold and disconnect from provider
sub-add-repsetAdd a replication set to a subscription
sub-remove-repsetDrop a replication set from a subscription
sub-show-statusDisplay the status of the subcription
sub-show-tableShow subscription tables
sub-syncSynchronize a subscription
sub-resync-tableResynchronize a table
sub-wait-for-syncPause until the subscription is synchronized
table-wait-for-syncPause until a table finishes synchronizing
health-checkCheck if PG instance is accepting connections
metrics-checkRetrieve advanced DB & OS metrics
set-readonlyTurn PG read-only mode 'on' or 'off'

CLUSTER

Commands in the CLUSTER module include:

CommandDescription
create-secureProvision a secure cluster in the Cloud using your own account
create-localCreate a localhost test cluster of N pgEdge nodes on different ports
destroy-localStop and then nuke a cluster
init-remoteInitialize pgEdge on a remote cluster that you create & manage yourself
reset-remoteReset pgEdge on a remote cluster
validateValidate a remote cluster configuration
initInitialize a remote cluster for SPOCK
commandRun nodectl command on one or all nodes of a cluster

ACE

Commands in the ACE module include:

CommandDescription
diff-tablesEvaluate the difference between two tables
diff-schemasEvaluate the difference between two schemas
diff-spockEvaluate the difference between two configurations

Command Options

Use the following command options with selected commands listed above:

CommandDescription
--jsonTurn on JSON output
--debugTurn on debug logging
--silentReturn less output
--verbose or -vReturn more output