Skip to content

Commit a68b3ae

Browse files
author
avandras
committed
Match changed CTL and API endpoint names
1 parent b8a3ef3 commit a68b3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/multisite.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ Site switchover
162162
When circumstances arise that makes it necessary to switch the location of the Postgres primary from one site to another, one could do it by performing a site switchover. Just like a normal switchover, a site switchover can be initiated using `patronictl` (or, alternatively, and API call to the Rest API). The CTL command is as simple as
163163

164164
```
165-
patronictl multisite-switchover
165+
patronictl site-switchover
166166
```
167167

168168
The API call could look like the following (replace 'dc2' with the desired site name):
169169

170170
```
171-
curl --data-binary '{ "target_site": "dc2"}' http://127.0.0.1:8008/multisite_switchover
171+
curl --data-binary '{ "target_site": "dc2"}' http://127.0.0.1:8008/site_switchover
172172
```
173173

174174
Once the site switchover is done, the old leader site will become a standby site automatically.

0 commit comments

Comments
 (0)