From 3e9b3ce261366a2345ac8e7d64189a958cb990b7 Mon Sep 17 00:00:00 2001 From: Anastasia Alexandrova Date: Thu, 25 Jan 2024 12:26:09 +0100 Subject: [PATCH] Fix etcd configuration file paths in ha-setup-apt.md (#510) (#513) fix: Update etcd configuration file path in ha-setup-apt.md Previously, the etcd configuration file path was set to "/pg_ha/config/etcd.conf," which is incorrect. This commit addresses the issue by updating the path to the correct location: "/etc/default/etcd." Additionally, a missing double quote has been added to a line in the file. Before: cluster_1 After: "cluster_1" This change improves the accuracy and completeness of the configuration in ha-setup-apt.md. Co-authored-by: mohammad --- docs/solutions/ha-setup-apt.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/solutions/ha-setup-apt.md b/docs/solutions/ha-setup-apt.md index a8241ce1b..f67d3a072 100644 --- a/docs/solutions/ha-setup-apt.md +++ b/docs/solutions/ha-setup-apt.md @@ -172,7 +172,7 @@ The `etcd` cluster is first started in one node and then the subsequent nodes ar ETCD_LISTEN_PEER_URLS="http://${NODE_IP}:2380" ETCD_LISTEN_CLIENT_URLS="http://${NODE_IP}:2379,http://localhost:2379" ETCD_ADVERTISE_CLIENT_URLS="http://${NODE_IP}:2379" - " | sudo tee -a /pg_ha/config/etcd.conf + " | sudo tee -a /etc/default/etcd ``` 4. Start the `etcd` service to apply the changes on `node1`. @@ -233,7 +233,7 @@ The `etcd` cluster is first started in one node and then the subsequent nodes ar ETCD_LISTEN_PEER_URLS="http://${NODE_IP}:2380" ETCD_LISTEN_CLIENT_URLS="http://${NODE_IP}:2379,http://localhost:2379" ETCD_ADVERTISE_CLIENT_URLS="http://${NODE_IP}:2379" - " | sudo tee -a /pg_ha/config/etcd.conf + " | sudo tee -a /etc/default/etcd ``` 3. Start the `etcd` service to apply the changes on `node2`: @@ -266,7 +266,7 @@ The `etcd` cluster is first started in one node and then the subsequent nodes ar ETCD_LISTEN_PEER_URLS="http://${NODE_IP}:2380" ETCD_LISTEN_CLIENT_URLS="http://${NODE_IP}:2379,http://localhost:2379" ETCD_ADVERTISE_CLIENT_URLS="http://${NODE_IP}:2379" - " | sudo tee -a /pg_ha/config/etcd.conf + " | sudo tee -a /etc/default/etcd ``` 4. Start the `etcd` service on `node3`: @@ -322,7 +322,7 @@ Run the following commands on all nodes. You can do this in parallel: ```bash NAMESPACE="percona_lab" - SCOPE="cluster_1 + SCOPE="cluster_1" ``` 2. Create the `/etc/patroni/patroni.yml` configuration file. The file holds the default configuration values for a PostgreSQL cluster and will reflect the current cluster setup. Add the following configuration for `node1`: @@ -598,4 +598,4 @@ HAProxy is capable of routing write requests to the primary node and read reques ## Next steps -[Configure pgBackRest](pgbackrest.md){.md-button} \ No newline at end of file +[Configure pgBackRest](pgbackrest.md){.md-button}