Installing pgEdge Distributed Postgres (VM Edition)
Note
pgEdge Distributed Postgres (the CLI) should be considered deprecated. We suggest instead using pgEdge Control Plane for future deployments.
There are several ways to install pgEdge Distributed Postgres (VM Edition) and deploy a replication cluster. You can:
- Use the VM Edition's command-line interface (CLI)
clustermodule to create a .json file that deploys a cluster on local or remote hosts. This method also simplifies installation and configurion of pgBackRest on the new cluster. - Log in to each CLI host and manually deploy a cluster.
Installing the CLI
A distributed Postgres cluster traditionally lives on two or more hosts; to prepare a CLI host, you should:
- Set SELinux to
permissiveordisabledmode, followed by a system reboot. - Configure passwordless sudo access for a non-root OS user.
- Configure passwordless ssh access for the same non-root OS user.
- Open any firewalls that could obstruct access between hosts.
Then, install the CLI on each host with the command:
python3 -c "$(curl -fsSL https://downloads.pgedge.com/platform/repos/download/install.py)"
Paste the command into your command line client and press Return.
Info
Note that depending on your system configuration, you may need to preface commands with sudo; for example, sudo python3 -c "$(curl -fsSL https://downloads.pgedge.com/platform/repos/download/install.py)".