Skip to content

Commit

Permalink
PG-918 Updated enable etcd section (#654)
Browse files Browse the repository at this point in the history
Removed manual dependency installation according to tarball changes

modified:   docs/enable-extensions.md

Signed-off-by: Anastasia Alexadrova <[email protected]>
  • Loading branch information
nastena1606 authored Sep 10, 2024
1 parent de15363 commit 20f1ae1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 29 deletions.
42 changes: 17 additions & 25 deletions docs/enable-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,23 @@ See the configuration guidelines for [Debian and Ubuntu](solutions/ha-setup-apt.

## etcd

The following steps apply if you [installed etcd from the tarballs](tarball.md).

1. Install the Python client for `etcd` to resolve dependency issues. Use the following command:

```{.bash data-prompt="$"}
$ /opt/percona-python3/bin/pip3 install python-etcd
```

2. Create the `etcd.service` file. This file allows `systemd` to start, stop, restart, and manage the `etcd` service. This includes handling dependencies, monitoring the service, and ensuring it runs as expected.

```ini title="/etc/systemd/system/etcd.service"
[Unit]
After=network.target
Description=etcd - highly-available key value store
[Service]
LimitNOFILE=65536
Restart=on-failure
Type=notify
ExecStart=/usr/bin/etcd --config-file /etc/etcd/etcd.conf.yaml
User=etcd
[Install]
WantedBy=multi-user.target
```
If you [installed etcd from binary tarballs](tarball.md), you need to create the `etcd.service` file. This file allows `systemd` to start, stop, restart, and manage the `etcd` service. This includes handling dependencies, monitoring the service, and ensuring it runs as expected.

```ini title="/etc/systemd/system/etcd.service"
[Unit]
After=network.target
Description=etcd - highly-available key value store

[Service]
LimitNOFILE=65536
Restart=on-failure
Type=notify
ExecStart=/usr/bin/etcd --config-file /etc/etcd/etcd.conf.yaml
User=etcd

[Install]
WantedBy=multi-user.target
```



Expand Down
8 changes: 4 additions & 4 deletions docs/tarball.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

You can find the binary tarballs on the [Percona website](https://www.percona.com/downloads). Select the desired version from a version dropdown and _All_ from the Select Platform dropdown.

There are the following tarballs available:
There are the following tarballs available for both x86-64 and ARM64 architectures:

* percona-postgresql-{{dockertag}}-ssl1.1-linux-x86_64.tar.gz - for operating systems that run OpenSSL version 1.x
* percona-postgresql-{{dockertag}}-ssl3-linux-x86_64.tar.gz - for for operating systems that run OpenSSL version 3.x
* percona-postgresql-{{dockertag}}-ssl1.1-linux-<architecture>.tar.gz - for operating systems that run OpenSSL version 1.x
* percona-postgresql-{{dockertag}}-ssl3-linux-<architecture>.tar.gz - for operating systems that run OpenSSL version 3.x

To check what OpenSSL version you have, run the following command:

Expand Down Expand Up @@ -64,7 +64,7 @@ The tarballs include the following components:

## Procedure

The steps below install the tarballs for OpenSSL 3.x. Use another tarball if your operating system has OpenSSL version 1.x.
The steps below install the tarballs for OpenSSL 3.x on x86_64 architecture. Use another tarball if your operating system has OpenSSL version 1.x and / or has the ARM64 architecture.

1. Create the directory where you will store the binaries. For example, `/opt/pgdistro`

Expand Down

0 comments on commit 20f1ae1

Please sign in to comment.