Skip to content

Commit 1b1708d

Browse files
author
Jonathan S. Katz
committed
Add explanation for transient monitoring issue
This issue only occurs during the initialization phase of a PostgreSQL cluster, but can be confusing as it indicates there is an error. Issue: #1962
1 parent b1118b5 commit 1b1708d

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

docs/content/tutorial/create-cluster.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,29 @@ Also ensure that you have enough persistent volumes available: your Kubernetes a
120120

121121
The most common occurrence of this is due to the Kubernetes network blocking SSH connections between Pods. Ensure that your Kubernetes networking layer allows for SSH connections over port 2022 in the Namespace that you are deploying your PostgreSQL clusters into.
122122

123+
### PostgreSQL Pod reports "Authentication Failed for `ccp_monitoring`"
124+
125+
This is a temporary error that occurs when a new PostgreSQL cluster is first
126+
initialized with the `--metrics` flag. The `crunchy-postgres-exporter` container
127+
within the PostgreSQL Pod may be ready before the container with PostgreSQL is
128+
ready. If a message in your logs further down displays a timestamp, e.g.:
129+
130+
```
131+
now
132+
-------------------------------
133+
2020-11-10 08:23:15.968196-05
134+
```
135+
136+
Then the `ccp_monitoring` user is properly reconciled with the PostgreSQL
137+
cluster.
138+
139+
If the error message does not go away, this could indicate a few things:
140+
141+
- The PostgreSQL instance has not initialized. Check to ensure that PostgreSQL
142+
has successfully started.
143+
- The password for the `ccp_monitoring` user has changed. In this case you will
144+
need to update the Secret with the monitoring credentials.
145+
123146
## Next Steps
124147

125148
Once your cluster is created, the next step is to [connect to your PostgreSQL cluster]({{< relref "tutorial/connect-cluster.md" >}}). You can also [learn how to customize your PostgreSQL cluster]({{< relref "tutorial/customize-cluster.md" >}})!

docs/content/tutorial/customize-cluster.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,29 @@ There are many reasons why a PostgreSQL Pod may not be scheduled:
184184
- **Node affinity rules cannot be satisfied**. If you assigned a node label, ensure that the Nodes with that label are available for scheduling. If they are, ensure that there are enough resources available.
185185
- **Pod anti-affinity rules cannot be satisfied**. This most likely happens when [pod anti-affinity]({{< relref "architecture/high-availability/_index.md" >}}#how-the-crunchy-postgresql-operator-uses-pod-anti-affinity) is set to `required` and there are not enough Nodes available for scheduling. Consider adding more Nodes or relaxing your anti-affinity rules.
186186

187+
### PostgreSQL Pod reports "Authentication Failed for `ccp_monitoring`"
188+
189+
This is a temporary error that occurs when a new PostgreSQL cluster is first
190+
initialized with the `--metrics` flag. The `crunchy-postgres-exporter` container
191+
within the PostgreSQL Pod may be ready before the container with PostgreSQL is
192+
ready. If a message in your logs further down displays a timestamp, e.g.:
193+
194+
```
195+
now
196+
-------------------------------
197+
2020-11-10 08:23:15.968196-05
198+
```
199+
200+
Then the `ccp_monitoring` user is properly reconciled with the PostgreSQL
201+
cluster.
202+
203+
If the error message does not go away, this could indicate a few things:
204+
205+
- The PostgreSQL instance has not initialized. Check to ensure that PostgreSQL
206+
has successfully started.
207+
- The password for the `ccp_monitoring` user has changed. In this case you will
208+
need to update the Secret with the monitoring credentials.
209+
187210
## Next Steps
188211

189212
As mentioned at the beginning, there are a lot more customizations that you can make to your PostgreSQL cluster, and we will cover those as the tutorial progresses! This section was to get you familiar with some of the most common customizations, and to explore how many options `pgo create cluster` has!

0 commit comments

Comments
 (0)