Skip to content

Commit 8f23c54

Browse files
authored
Update manual_failovers.md
1 parent 0bae5bf commit 8f23c54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/manual_failovers.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ While automatic failures are already baked-in, there may be times where a manual
55
_**Note: The promotion candidate must reside within your PRIMARY_REGION.**_
66

77
**1. Connect to the Machine you wish to promote**
8-
```
8+
```bash
99
fly ssh console -s <app-name>
1010
```
1111

1212
**2. Confirm the member is healthy**
13-
```
13+
```bash
1414
# Switch to the postgres user and move to the home directory.
1515
su postgres
1616
cd ~
@@ -34,7 +34,7 @@ Node "fdaa:0:2e26:a7b:7d17:9b36:6e4b:2":
3434

3535
Open up a separate terminal and stop the Machine running `primary`.
3636

37-
```
37+
```bash
3838
# Identify the primary
3939
fly status --app <app-name>
4040

@@ -50,7 +50,7 @@ fly machines stop 6e82931b729087 --app <app-name>
5050
**3. Run the standby promotion command**
5151
Go back to the first terminal you opened that's connected to your promotion candidate.
5252

53-
```
53+
```bash
5454
# Issue a dry-run to ensure our candidate is eligible for promotion.
5555
repmgr standby promote --siblings-follow --dry-run
5656

@@ -66,7 +66,7 @@ INFO: prerequisites for executing STANDBY PROMOTE are met
6666
**WARNING: It's important that you specify `--siblings-follow`, otherwise any other standbys will not be reconfigured to follow the new primary.**
6767

6868
If everything looks good, go ahead and re-run the command without the `--dry-run` argument.
69-
```
69+
```bash
7070
repmgr standby promote --siblings-follow
7171

7272
NOTICE: promoting standby to primary
@@ -82,7 +82,7 @@ INFO: STANDBY FOLLOW successfully executed on all reachable sibling nodes
8282
```
8383

8484
**4. Start the Machine that was previously operating as Primary**
85-
```
85+
```bash
8686
fly machines start 6e82931b729087 --app <app-name>
8787
```
8888

0 commit comments

Comments
 (0)