pgedge cluster init
SYNOPSIS
./pgedge cluster init CLUSTER_NAME <flags>
DESCRIPTION
This function performs the following steps:
1. Loads the cluster configuration.
2. Checks SSH connectivity for all nodes.
3. Installs pgEdge on all nodes.
4. Configures Spock for replication.
5. Integrates pgBackRest on nodes where it is enabled.
- Creates unique stanza names: {cluster_name}_stanza_{node_name}
- Removes --pg1-port from set_postgresqlconf / set_hbaconf to avoid errors.
- Ensures that every BackRest configuration value is set before creating the stanza.
- Appends the node name to both the repo1-path and restore_path.
6. Creates an initial full backup using pgBackRest.
7. Performs HA-specific configurations if enabled.
8. Finalizes and saves the cluster configuration.
POSITIONAL ARGUMENTS
CLUSTER_NAME
The name of the cluster.
FLAGS
-i, --install=INSTALL
Whether to install pgEdge on nodes. Defaults to True.