You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the base directory `C:\PES\`, go into the `etcd` directory and create a file `etcd.conf`.
80
+
From the base directory `C:\PES\`, go into the `etcd` directory and create a file `etcd.yaml`.
81
81
82
82
```yaml
83
83
name: 'win1'
@@ -117,7 +117,7 @@ Will register the service that will later launch `etcd` automatically for us.
117
117
Apart from the messages on screen, you can check that the service is installed with:
118
118
119
119
```powershell
120
-
sc qc etcd
120
+
sc.exe qc etcd
121
121
```
122
122
123
123
You should see that the start type for this service is set to auto, which means "start the service automatically after booting up".
@@ -133,7 +133,7 @@ Having installed the service, you can start it manually:
133
133
or
134
134
> net start etcd
135
135
or
136
-
> sc start etcd
136
+
> sc.exe start etcd
137
137
```
138
138
139
139
You will need to go through the etcd Setup on all three hosts in order to successfully bootstrap the etcd cluster. Only after that you will be able to continue with the setup of Patroni.
@@ -168,7 +168,7 @@ Some changes to the config (mainly those involving the initial cluster members a
168
168
169
169
Warning: Do not begin setting up Patroni if your etcd cluster does not yet contain all cluster members, check `C:\PES\etcd\etcdctl cluster-health` to make sure. Otherwise you will have multiple Patroni instances who are not aware of their peers and will bootstrap on their own.
170
170
171
-
From the base directory `C:\PES\`, go into the `patroni` directory and create (or edit) a file `patroni.yml`.
171
+
From the base directory `C:\PES\`, go into the `patroni` directory and create (or edit) a file `patroni.yaml`.
172
172
173
173
```yaml
174
174
scope: pgcluster
@@ -245,7 +245,7 @@ If you intend to create a Patroni cluster from a preexisting PostgreSQL cluster,
245
245
246
246
For a full list of configuration items and their description, please refer to the Patroni [Documentation](https://patroni.readthedocs.io/en/latest/SETTINGS.html).
247
247
248
-
When you're done adapting the above `patroni.yml` to your needs, copy it over to the other cluster members and change the name, and IP addresses or hostnames there accordingly.
248
+
When you're done adapting the above `patroni.yaml` to your needs, copy it over to the other cluster members and change the name, and IP addresses or hostnames there accordingly.
249
249
250
250
The creation of the Patroni Service and start is similar to the procedure for `etcd`.
251
251
The major difference is that Patroni needs to be run as the `pes` user. For this reason, the `patroni_service.xml` contains the user name and password.
You should see that the start type for this service is set to auto, which means "start the service automatically after booting up".
@@ -275,7 +275,7 @@ Start the service:
275
275
or
276
276
> net start etcd
277
277
or
278
-
> sc start etcd
278
+
> sc.exe start etcd
279
279
```
280
280
281
281
It is recommended to start Patroni on one host first and check that it bootstrapped as expected, before starting the remaining cluster members. This is not to avoid race conditions, because Patroni can handle those fine. This recommendation is given mainly to make it easier to troubleshoot problems as soon as they arise.
@@ -293,7 +293,7 @@ If there are no critical errors in those files, you can check if the Patroni clu
293
293
```
294
294
295
295
```powershell
296
-
PS C:\PES\patroni> python patronictl.py -c patroni.yml list
296
+
PS C:\PES\patroni> python patronictl.py -c patroni.yaml list
@@ -311,7 +311,7 @@ If there are cluster members that display "Start failed" in their status field,
311
311
312
312
# Setup vip-manager
313
313
314
-
From the base directory `C:\PES\`, go into the `vip-manager` directory and create a file `vip-manager.yml`.
314
+
From the base directory `C:\PES\`, go into the `vip-manager` directory and create a file `vip-manager.yaml`.
315
315
316
316
```powershell
317
317
# time (in milliseconds) after which vip-manager wakes up and checks if it needs to register or release ip addresses.
@@ -338,9 +338,9 @@ retry_num: 2
338
338
retry_after: 250 #in milliseconds
339
339
```
340
340
341
-
Change the `trigger-key` to match what the concatenation of these values from the patroni.yml gives: `<namespace> + "/" + <scope> + "/leader"`. Patroni store the current leader name in this key.
341
+
Change the `trigger-key` to match what the concatenation of these values from the patroni.yaml gives: `<namespace> + "/" + <scope> + "/leader"`. Patroni store the current leader name in this key.
342
342
343
-
Change the `trigger-value` to the `name` in the `patroni.yml` of this host.
343
+
Change the `trigger-value` to the `name` in the `patroni.yaml` of this host.
344
344
345
345
Change `ip`, `netmask`, `interface` to the virtual IP that will be managed and the appropriate netmask, as well as the networking interface on which the virtual IP should be registered.
346
346
@@ -352,13 +352,13 @@ The creation of the vip-manager Service and start is similar to the procedure fo
352
352
Create the service:
353
353
354
354
```powershell
355
-
C:\PES\vip-manager\vip-manager_service install
355
+
C:\PES\vip-manager\vip_service install
356
356
```
357
357
358
358
Check the service:
359
359
360
360
```powershell
361
-
sc qc vip-manager
361
+
sc.exe qc vip-manager
362
362
```
363
363
364
364
You should see that the start type for this service is set to auto, which means "start the service automatically after booting up".
@@ -368,7 +368,7 @@ You should see that the start type for this service is set to auto, which means
368
368
Start the service:
369
369
370
370
```powershell
371
-
> vip-manager_service.exe start
371
+
> vip_service.exe start
372
372
or
373
373
> net start vip-manager
374
374
or
@@ -377,12 +377,12 @@ or
377
377
378
378
## Check vip-manager
379
379
380
-
You can first take a look at `C:\PES\vip-manager\log\vip-manager_service.err.log`. If something went wrong during the installing or starting of the service already, the messages about that will be in `C:\PES\vip-manager\log\vip-manager_service.wrapper.log`.
380
+
You can first take a look at `C:\PES\vip-manager\log\vip_service.err.log`. If something went wrong during the installing or starting of the service already, the messages about that will be in `C:\PES\vip-manager\log\vip_service.wrapper.log`.
381
381
382
382
When vip-manager is working as expected, it should log messages like ...
383
383
384
384
```powershell
385
-
2020/08/28 01:24:36 reading config from C:\PES\vip-manager\vip-manager.yml
385
+
2020/08/28 01:24:36 reading config from C:\PES\vip-manager\vip-manager.yaml
386
386
2020/08/28 01:24:36 IP address 192.168.178.123/24 state is false, desired false
387
387
2020/08/28 01:24:36 IP address 192.168.178.123/24 state is false, desired true
388
388
2020/08/28 01:24:36 Configuring address 192.168.178.123/24 on Ethernet 2
0 commit comments