From 03aeb3ea7d97313c83880463491a7ac006520498 Mon Sep 17 00:00:00 2001 From: Anastasia Alexandrova Date: Wed, 10 Jul 2024 11:10:07 +0300 Subject: [PATCH] PG-804 Added an additional step to start Patroni from tarball (#619) modified: docs/enable-extensions.md modified: docs/solutions/ha-setup-apt.md modified: docs/solutions/high-availability.md modified: docs/tarball.md --- docs/enable-extensions.md | 12 ++++++------ docs/solutions/ha-setup-apt.md | 2 +- docs/solutions/high-availability.md | 9 +++++++++ docs/tarball.md | 7 +++++-- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/docs/enable-extensions.md b/docs/enable-extensions.md index 9a0948df5..a3b0d16d7 100644 --- a/docs/enable-extensions.md +++ b/docs/enable-extensions.md @@ -17,15 +17,15 @@ While setting up a high availability PostgreSQL cluster with Patroni, you will n See the configuration guidelines for [Debian and Ubuntu](solutions/ha-setup-apt.md) and [RHEL and CentOS](solutions/ha-setup-yum.md). +!!! important -!!! admonition "See also" + To configure high-availability with [the software installed from the tarballs](tarball.md), install the Python client for `etcd` to resolve dependency issues. Use the following command: - - [Patroni documentation :octicons-link-external-16:](https://patroni.readthedocs.io/en/latest/SETTINGS.html#settings) + ```{.bash data-prompt="$"} + $ /opt/percona-python3/bin/pip3 install python-etcd + ``` + - - Percona Blog: - - - [PostgreSQL HA with Patroni: Your Turn to Test Failure Scenarios :octicons-link-external-16:](https://www.percona.com/blog/2021/06/11/postgresql-ha-with-patroni-your-turn-to-test-failure-scenarios/) - ## pgBadger Enable the following options in `postgresql.conf` configuration file before starting the service: diff --git a/docs/solutions/ha-setup-apt.md b/docs/solutions/ha-setup-apt.md index 6700fb105..c98b6246d 100644 --- a/docs/solutions/ha-setup-apt.md +++ b/docs/solutions/ha-setup-apt.md @@ -78,7 +78,7 @@ It's not necessary to have name resolution, but it makes the whole setup more re ### Install the software -Run the following commands on node1`, `node2` and `node3`: +Run the following commands on `node1`, `node2` and `node3`: 1. Install Percona Distribution for PostgreSQL diff --git a/docs/solutions/high-availability.md b/docs/solutions/high-availability.md index 9f32cb3fd..10a92bb60 100644 --- a/docs/solutions/high-availability.md +++ b/docs/solutions/high-availability.md @@ -50,6 +50,15 @@ There are several methods to achieve high availability in PostgreSQL. This solut * Distributed consensus for every action and configuration. * Integration with Linux watchdog for avoiding split-brain syndrome. + +!!! admonition "See also" + + - [Patroni documentation :octicons-link-external-16:](https://patroni.readthedocs.io/en/latest/SETTINGS.html#settings) + + - Percona Blog: + + - [PostgreSQL HA with Patroni: Your Turn to Test Failure Scenarios :octicons-link-external-16:](https://www.percona.com/blog/2021/06/11/postgresql-ha-with-patroni-your-turn-to-test-failure-scenarios/) + ## Architecture layout The following diagram shows the architecture of a three-node PostgreSQL cluster with a single-leader node. diff --git a/docs/tarball.md b/docs/tarball.md index 41321ae69..7784b6ef6 100644 --- a/docs/tarball.md +++ b/docs/tarball.md @@ -162,10 +162,13 @@ The steps below install the tarballs for OpenSSL 3.x. Use another tarball if you ### Start the components -After you unpacked the tarball and added the location of the components' binaries to the $PATH variable, the components are available for use. You can invoke a component by running its command-line tool. For example, to check HAProxy version, type: +After you unpacked the tarball and added the location of the components' binaries to the `$PATH` variable, the components are available for use. You can invoke a component by running its command-line tool. + +For example, to check HAProxy version, type: ```{.bash data-prompt="$"} $ haproxy version ``` -Some components require additional setup. Check the [Enabling extensions](enable-extensions.md) page for details. \ No newline at end of file +Some components require additional setup. Check the [Enabling extensions](enable-extensions.md) page for details. +