Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/enterprise/debian/components/patroni.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Before installing and configuring Patroni and etcd in a pgEdge Enterprise
Postgres cluster, you need to
[install pgEdge Enterprise Postgres](../installing.md#installing-pgedge-enterprise-postgres-and-controlling-the-cluster).

!!! note

Remove any pip-installed version of Patroni before continuing. The pgEdge
native package may conflict with a pip installation.


## Installing Patroni and etcd

Use the following steps to install Patroni and etcd on a Debian-based
Expand All @@ -24,14 +30,14 @@ platform.
```bash
sudo apt-get install pgedge-patroni pgedge-etcd
```

3. Verify the installed Patroni version with the following command:
2. Verify the installed Patroni version with the following command:

```bash
/usr/bin/patroni --version
```

4. Confirm that Python can import the Patroni module with the following
3. Confirm that Python can import the Patroni module with the following
command:

```bash
Expand Down Expand Up @@ -107,4 +113,4 @@ Use the following steps to configure and start the Patroni service.
sudo systemctl enable patroni
sudo systemctl start patroni
sudo systemctl status patroni
```
```
22 changes: 15 additions & 7 deletions docs/enterprise/el/components/patroni.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Postgres (PEP) cluster, you need to
the Postgres database; the configuration steps require the location of an
empty `data` directory.

!!! note

Remove any pip-installed version of Patroni before continuing. The
pgEdge RPM package may conflict with an existing pip installation.


## Installing Patroni and etcd

Use the following steps to install Patroni and etcd on a RHEL-based platform.
Expand All @@ -24,26 +30,27 @@ Use the following steps to install Patroni and etcd on a RHEL-based platform.
at [docs.pgedge.com](https://docs.pgedge.com/enterprise/el/configure-repo/).

2. Install pgEdge Enterprise Postgres; you'll find instructions at
[docs.pgedge.com](https://docs.pgedge.com/enterprise/el/installing/). After installing pgEdge Enterprise Postgres, you can skip manual cluster
[docs.pgedge.com](https://docs.pgedge.com/enterprise/el/installing/).
After installing pgEdge Enterprise Postgres, you can skip manual cluster
initialization and postmaster startup. Patroni will perform both steps
while bootstrapping.

3. Install the required Patroni and etcd packages with the following
4. Install the required Patroni and etcd packages with the following
command:

```bash
sudo dnf install pgedge-patroni pgedge-patroni-aws \
pgedge-patroni-consul pgedge-consul pgedge-patroni-etcd \
pgedge-python3-etcd pgedge-patroni-zookeeper pgedge-etcd
```

4. Verify the installed Patroni version with the following command:
5. Verify the installed Patroni version with the following command:

```bash
/usr/bin/patroni --version
```

5. Confirm that Python can import the Patroni module with the
6. Confirm that Python can import the Patroni module with the
following command:

```bash
Expand Down Expand Up @@ -99,7 +106,8 @@ Use the following steps to configure and start the Patroni service.

2. Ensure the PostgreSQL `data` directory is empty; Patroni uses the
directory when it runs `initdb` (during bootstrapping). If the directory
*does not* exist, use the following commands to create it with the correct ownership and permissions:
*does not* exist, use the following commands to create it with the
correct ownership and permissions:

```bash
sudo mkdir -p /var/lib/pgsql/18/data
Expand Down Expand Up @@ -138,7 +146,7 @@ Use the following steps to configure and start the Patroni service.
sudo chmod 600 /etc/patroni/patroni.yml
```

6. Enable and start the Patroni service using the following commands:
6. Enable and start the Patroni service with the following commands:

```bash
sudo systemctl enable patroni
Expand Down
Loading