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
Copy file name to clipboardExpand all lines: documentation/recovery/automated_recovery.md
+41-19Lines changed: 41 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ This procedure uses the following placeholder references.
28
28
29
29
## Replace failed PE-PostgreSQL server (A or B side)
30
30
31
-
The procedure for replacing a failed PE-PostgreSQL server is the same regardless of which PE-PostgreSQL server is missing or if the name of the PE-PostgrSQL server is the same or different. This procedure uses the following placeholder references.
31
+
The procedure for replacing a failed PE-PostgreSQL server is the same regardless of which PE-PostgreSQL server is missing or if the name of the PE-PostgreSQL server is the same or different. This procedure uses the following placeholder references.
32
32
33
33
*_\<replacement-postgres-server-fqdn\>_ - The FQDN and certname of the new server being brought in to replace the failed PE-PostgreSQL server
34
34
*_\<working-postgres-server-fqdn\>_ - The FQDN and certname of the still-working PE-PostgreSQL server
@@ -38,25 +38,14 @@ The procedure for replacing a failed PE-PostgreSQL server is the same regardless
38
38
39
39
Procedure:
40
40
41
-
1.Stop `puppet.service` on Puppet server primary and replica
41
+
1.Run the `peadm::replace_failed_postgresql` plan to replace the failed PE-PostgreSQL server:
42
42
43
-
bolt task run service name=puppet.service action=stop --targets <primary-server-fqdn>,<replica-server-fqdn>
44
-
45
-
2. Temporarily set both primary and replica server nodes so that they use the remaining healthy PE-PostgreSQL server
46
-
47
-
bolt plan run peadm::util::update_db_setting --target <primary-server-fqdn>,<replica-server-fqdn> postgresql_host=<working-postgres-server-fqdn> override=true
48
-
49
-
3. Restart `pe-puppetdb.service` on Puppet server primary and replica
50
-
51
-
bolt task run service name=pe-puppetdb.service action=restart --targets <primary-server-fqdn>,<replica-server-fqdn>
52
-
53
-
4. Purge failed PE-PostgreSQL node from PuppetDB
54
-
55
-
bolt command run "/opt/puppetlabs/bin/puppet node purge <failed-postgres-server-fqdn>" --targets <primary-server-fqdn>
56
-
57
-
5. Run `peadm::add_database` plan to deploy replacement PE-PostgreSQL server
58
-
59
-
bolt plan run peadm::add_database -t <replacement-postgres-server-fqdn> primary_host=<primary-server-fqdn>
|`avail_group_letter`|`A`| By default, each compiler will be added to the primary group A. |
92
+
|`dns_alt_names`|`undef`||
93
+
|`primary_postgresql_host`|`undef`| By default, this will pre-populate to the required value depending if your architecture contains HA and or external databases. |
94
+
95
+
For more information around adding compilers to your infrastructure [Expanding Your Deployment](expanding.md#adding-compilers-with-peadmadd_compiler)
0 commit comments