Skip to content

Commit d005733

Browse files
Merge pull request #254 from xenophenes/master
Move Upgrading section to bottom of Installation
2 parents a56ecad + bd1607a commit d005733

File tree

22 files changed

+407
-318
lines changed

22 files changed

+407
-318
lines changed

docs/404.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="utf-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8-
<meta name="generator" content="Hugo 0.40.3" />
8+
<meta name="generator" content="Hugo 0.40" />
99

1010
<title>404 Page not found :: Crunchy Data PostgreSQL Operator Documentation</title>
1111
<link rel="shortcut icon" href="https://crunchydata.github.io/postgres-operator/favicon.ico" type="image/x-icon" />
@@ -91,13 +91,6 @@
9191
Helm Chart
9292
</a>
9393
</div>
94-
</li>
95-
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
96-
<div>
97-
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
98-
Upgrading the Operator
99-
</a>
100-
</div>
10194
</li>
10295
<li data-nav-id="/installation/deployment/" class="dd-item">
10396
<div>
@@ -112,6 +105,13 @@
112105
Configuration
113106
</a>
114107
</div>
108+
</li>
109+
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
110+
<div>
111+
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
112+
Upgrading the Operator
113+
</a>
114+
</div>
115115
</li>
116116
</ul>
117117
</li>

docs/categories/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="utf-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8-
<meta name="generator" content="Hugo 0.40.3" />
8+
<meta name="generator" content="Hugo 0.40" />
99

1010
<title>Categories :: Crunchy Data PostgreSQL Operator Documentation</title>
1111
<link rel="shortcut icon" href="https://crunchydata.github.io/postgres-operator/favicon.ico" type="image/x-icon" />
@@ -91,13 +91,6 @@
9191
Helm Chart
9292
</a>
9393
</div>
94-
</li>
95-
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
96-
<div>
97-
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
98-
Upgrading the Operator
99-
</a>
100-
</div>
10194
</li>
10295
<li data-nav-id="/installation/deployment/" class="dd-item">
10396
<div>
@@ -112,6 +105,13 @@
112105
Configuration
113106
</a>
114107
</div>
108+
</li>
109+
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
110+
<div>
111+
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
112+
Upgrading the Operator
113+
</a>
114+
</div>
115115
</li>
116116
</ul>
117117
</li>

docs/contributing/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="utf-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8-
<meta name="generator" content="Hugo 0.40.3" />
8+
<meta name="generator" content="Hugo 0.40" />
99

1010
<title>Contributing :: Crunchy Data PostgreSQL Operator Documentation</title>
1111
<link rel="shortcut icon" href="https://crunchydata.github.io/postgres-operator/favicon.ico" type="image/x-icon" />
@@ -91,13 +91,6 @@
9191
Helm Chart
9292
</a>
9393
</div>
94-
</li>
95-
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
96-
<div>
97-
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
98-
Upgrading the Operator
99-
</a>
100-
</div>
10194
</li>
10295
<li data-nav-id="/installation/deployment/" class="dd-item">
10396
<div>
@@ -112,6 +105,13 @@
112105
Configuration
113106
</a>
114107
</div>
108+
</li>
109+
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
110+
<div>
111+
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
112+
Upgrading the Operator
113+
</a>
114+
</div>
115115
</li>
116116
</ul>
117117
</li>
@@ -220,7 +220,7 @@ <h1>Contributing</h1>
220220

221221

222222
<div class="paragraph">
223-
<p>v3.0, 2018-06-04</p>
223+
<p>v3.1, 2018-06-13</p>
224224
</div>
225225
<div class="sect1">
226226
<h2 id="_getting_started">Getting Started</h2>
@@ -272,7 +272,7 @@ <h2 id="_documentation">Documentation</h2>
272272
</div>
273273

274274
<div id="navigation">
275-
<a class="nav nav-prev" href="https://crunchydata.github.io/postgres-operator/installation/configuration/" title="Configuration"> <i class="fa fa-chevron-left"></i><label>Configuration</label></a>
275+
<a class="nav nav-prev" href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/" title="Upgrading the Operator"> <i class="fa fa-chevron-left"></i><label>Upgrading the Operator</label></a>
276276
<a class="nav nav-next" href="https://crunchydata.github.io/postgres-operator/how-it-works/" title="How it Works" style="margin-right: 0px;"><label>How it Works</label><i class="fa fa-chevron-right"></i></a></div>
277277

278278
</section>

docs/getting-started/index.html

Lines changed: 59 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<meta charset="utf-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8-
<meta name="generator" content="Hugo 0.40.3" />
8+
<meta name="generator" content="Hugo 0.40" />
99

1010
<title>Getting Started :: Crunchy Data PostgreSQL Operator Documentation</title>
1111
<link rel="shortcut icon" href="https://crunchydata.github.io/postgres-operator/favicon.ico" type="image/x-icon" />
@@ -91,13 +91,6 @@
9191
Helm Chart
9292
</a>
9393
</div>
94-
</li>
95-
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
96-
<div>
97-
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
98-
Upgrading the Operator
99-
</a>
100-
</div>
10194
</li>
10295
<li data-nav-id="/installation/deployment/" class="dd-item">
10396
<div>
@@ -112,6 +105,13 @@
112105
Configuration
113106
</a>
114107
</div>
108+
</li>
109+
<li data-nav-id="/installation/upgrading-the-operator/" class="dd-item">
110+
<div>
111+
<a href="https://crunchydata.github.io/postgres-operator/installation/upgrading-the-operator/">
112+
Upgrading the Operator
113+
</a>
114+
</div>
115115
</li>
116116
</ul>
117117
</li>
@@ -249,7 +249,7 @@ <h1>Getting Started</h1>
249249
</ul>
250250
</div>
251251
<div class="paragraph">
252-
<p>v3.0, 2018-06-04</p>
252+
<p>v3.1, 2018-06-13</p>
253253
</div>
254254
<div class="sect1">
255255
<h2 id="_pgo_commands">pgo Commands</h2>
@@ -410,6 +410,22 @@ <h3 id="_pgo_create_cluster">pgo create cluster</h3>
410410
<p>This will cause a new PVC to be created to hold archive logs. Space
411411
is consumed by these logs but archives enable you to perform Point-In-Time-Recovery.</p>
412412
</div>
413+
<div class="paragraph">
414+
<p>To enable <strong>auto failover</strong> on this cluster, use the following flag:</p>
415+
</div>
416+
<div class="literalblock">
417+
<div class="content">
418+
<pre>pgo create cluster testcluster --autofail</pre>
419+
</div>
420+
</div>
421+
<div class="paragraph">
422+
<p><strong>auto failover</strong> when set on the cluster informs the operator to look
423+
or watch for <strong>NotReady</strong> events on this cluster, and when those occur
424+
to create a failover state machine which acts as a timer for the cluster.
425+
If the timer expires, then a failover is triggered on the cluster turning
426+
one of the cluster replica pods into the replacement primary pod. See
427+
the How It Works documentation for more details on <strong>auto failover</strong>.</p>
428+
</div>
413429
</div>
414430
<div class="sect2">
415431
<h3 id="_pgo_backup">pgo backup</h3>
@@ -475,6 +491,18 @@ <h3 id="_pgo_backup">pgo backup</h3>
475491
be left intact but the actual Kubernetes Job will be removed prior
476492
to creating a new Job with the same name.</p>
477493
</div>
494+
<div class="paragraph">
495+
<p>You can override the PVC used by the backup job with the following:</p>
496+
</div>
497+
<div class="literalblock">
498+
<div class="content">
499+
<pre>pgo backup mycluster --pvc-name=myremotepvc</pre>
500+
</div>
501+
</div>
502+
<div class="paragraph">
503+
<p>This might be useful for special backup cases, perhaps to create
504+
a backup on a disaster recovery PVC.</p>
505+
</div>
478506
</div>
479507
<div class="sect2">
480508
<h3 id="_pgo_delete_backup">pgo delete backup</h3>
@@ -894,15 +922,7 @@ <h3 id="_pgo_user">pgo user</h3>
894922
</div>
895923
<div class="literalblock">
896924
<div class="content">
897-
<pre>pgo user --delete-user=sally --selector=name=mycluster</pre>
898-
</div>
899-
</div>
900-
<div class="paragraph">
901-
<p>To delete that user in all clusters:</p>
902-
</div>
903-
<div class="literalblock">
904-
<div class="content">
905-
<pre>pgo user --delete-user=sally</pre>
925+
<pre>pgo user delete user sally --selector=name=mycluster</pre>
906926
</div>
907927
</div>
908928
<div class="paragraph">
@@ -951,14 +971,6 @@ <h3 id="_pgo_user">pgo user</h3>
951971
specify <strong>valid-days=-1</strong> it will mean the password will not expire (e.g. infinity).</p>
952972
</div>
953973
<div class="paragraph">
954-
<p>To drop a user:</p>
955-
</div>
956-
<div class="literalblock">
957-
<div class="content">
958-
<pre>pgo user --delete-user=user3   --selector=project=xray</pre>
959-
</div>
960-
</div>
961-
<div class="paragraph">
962974
<p>To see which passwords are set to expire in a given number of days:</p>
963975
</div>
964976
<div class="literalblock">
@@ -1101,15 +1113,27 @@ <h3 id="_pgo_failover">pgo failover</h3>
11011113
cluster.</p>
11021114
</div>
11031115
<div class="paragraph">
1104-
<p>This process includes the following actions:
1105-
* pick a target replica to become the new primary
1106-
* delete the current primary deployment to avoid user requests from
1107-
going to multiple primary databases (split brain)
1108-
* promote the targeted replica using <strong>pg_ctl promote</strong>, this will
1109-
cause PostgreSQL to go into read-write mode
1110-
* re-label the targeted replica to use the primary labels, this
1111-
will match the primary service selector and cause new requests
1112-
to the primary to be routed to the new primary (targeted replica)</p>
1116+
<p>This process includes the following actions:</p>
1117+
</div>
1118+
<div class="ulist">
1119+
<ul>
1120+
<li>
1121+
<p>pick a target replica to become the new primary</p>
1122+
</li>
1123+
<li>
1124+
<p>delete the current primary deployment to avoid user requests from
1125+
going to multiple primary databases (split brain)</p>
1126+
</li>
1127+
<li>
1128+
<p>promote the targeted replica using <strong>pg_ctl promote</strong>, this will
1129+
cause PostgreSQL to go into read-write mode</p>
1130+
</li>
1131+
<li>
1132+
<p>re-label the targeted replica to use the primary labels, this
1133+
will match the primary service selector and cause new requests
1134+
to the primary to be routed to the new primary (targeted replica)</p>
1135+
</li>
1136+
</ul>
11131137
</div>
11141138
<div class="paragraph">
11151139
<p>The command works like this:</p>

0 commit comments

Comments
 (0)