Skip to content

Commit

Permalink
feat(video): Self-hosting a production-ready PostgreSQL cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
timothystewart6 committed Dec 7, 2024
1 parent 21b6e66 commit 205a325
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions _posts/2024-12-07-potgresql-high-availability.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ Now that we have postgres certs configured, it's now time to configure patroni t

## Patroni

## Installing Patroni
### Installing Patroni

```bash
sudo apt install -y patroni
Expand All @@ -707,7 +707,7 @@ Make a dir for `patroni`
sudo mkdir -p /etc/patroni/
```

## Configuring Patroni
### Configuring Patroni

Create a config file and edit

Expand Down Expand Up @@ -905,7 +905,7 @@ tags:

```

## Patroni Certificates
### Patroni Certificates

Let's also use a certificate for this, requires a pem

Expand Down Expand Up @@ -1317,15 +1317,7 @@ DROP TABLE IF EXISTS nintendo_characters;

## Troubleshooting

Reset all data but certs and start

modifying the shared patroni config (if you make a mistake when bootstrapping or need to make changes later)

show config

```bash
sudo patronictl -c /etc/patroni/config.yml show-config
```
Reset all data but certs and start over

```bash
sudo systemctl stop patroni
Expand Down

0 comments on commit 205a325

Please sign in to comment.