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: docs/explanation/e-users.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,12 +122,7 @@ mysql> select Host,User,account_locked from mysql.user where User like 'mysql_ro
122
122
> juju relate mysql-k8s myclientapp
123
123
```
124
124
125
-
<a name="extra-user-roles"></a>
126
-
### Extra user roles
127
125
128
-
When an application charm requests a new user through the relation/integration it can specify that the user should have the `admin` role in the `extra-user-roles` field. The `admin` role enables the new user to read and write to all databases (for the `mysql` system database it can only read data) and also to create and delete non-system databases.
129
-
130
-
**Note**: `extra-user-roles` is supported by modern interface `mysql_client` only and missing for legacy `mysql` interface. Read more about the supported charm interfaces [here](/t/10249).
Then, integrate Grafana Agent K8s with the consumed interface from the previous section:
@@ -109,7 +109,7 @@ SAAS Status Store URL
109
109
tempo active k8s admin/cos.tempo
110
110
111
111
App Version Status Scale Charm Channel Rev Address Exposed Message
112
-
grafana-agent-k8s 0.40.4 active 1 grafana-agent-k8s latest/edge93 10.152.183.63 no grafana-dashboards-provider: off, logging-consumer: off, send-remote-write: off
112
+
grafana-agent-k8s 0.40.4 active 1 grafana-agent-k8s 1/stable 115 10.152.183.63 no grafana-dashboards-provider: off, logging-consumer: off, send-remote-write: off
113
113
mysql-k8s 8.0.37-0ubuntu0.22.04.3 active 1 mysql-k8s 0 10.152.183.135 no Primary
Copy file name to clipboardExpand all lines: docs/how-to/h-troubleshooting.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,40 @@
4
4
5
5
Ensure you went into the real issue which requires the manual activity. Run `juju status` and check the [list of charm statuses](/t/11866) and recommended activities there.
6
6
7
+
8
+
## One offline unit and other units as secondaries
9
+
10
+
**Problem:** The primary unit went offline and primary reelection failed, rendered remaining units in RO mode.
11
+
**Solution:**
12
+
1. Restart `mysqld_safe` service on secondaries, i.e.:
13
+
```shell
14
+
# for each secondarie unit `n`
15
+
juju ssh --container mysql mysql-k8s/n pebble restart mysqld_safe
16
+
```
17
+
2. Wait update-status hook to trigger recovery. For faster recovery, it's possible to speed up the update-status hook with:
**Explanation:** When restarting secondaries, all MySQL instance will return as offline, which will trigger a cluster recovery.
25
+
26
+
27
+
## Two primaries, one in "split-brain" state
28
+
29
+
**Problem:** Original primary had a transitory network cut, and a new primary was elected. On returning, old primary enter split-brain state.
30
+
31
+
**Solution:**
32
+
1. Restart `mysqld_safe` service on secondaries, i.e.:
33
+
```shell
34
+
# using `n` as the unit in split brain state
35
+
juju ssh --container mysql mysql-k8s/n pebble restart mysqld_safe
36
+
```
37
+
2. Wait unit rejoin the cluster
38
+
39
+
**Explanation:** On restart, unit will reset it state and try to rejoin the cluster as a secondary.
40
+
7
41
## Logs
8
42
9
43
Please be familiar with [Juju logs concepts](https://juju.is/docs/juju/log) and learn [how to manage Juju logs](https://juju.is/docs/juju/manage-logs).
Copy file name to clipboardExpand all lines: docs/reference/r-releases.md
+25-12Lines changed: 25 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,17 @@ To learn more about the different release tracks and channels, see the [Juju doc
6
6
7
7
To see all releases and commits, check the [Charmed MySQL K8s Releases page on GitHub](https://github.com/canonical/mysql-k8s-operator/releases).
8
8
9
-
| Release | MySQL version | Juju version |[TLS encryption](/t/9655)*|[COS monitoring](/t/9981)|[Minor version upgrades](/t/11752)|[Cross-regional async replication](/t/13458)|
\***TLS encryption**: Support for **`v2` or higher** of the [`tls-certificates` interface](https://charmhub.io/tls-certificates-interface/libraries/tls_certificates). This means that you can integrate with [modern TLS charms](https://charmhub.io/topics/security-with-x-509-certificates).
21
22
@@ -29,14 +30,24 @@ Several [revisions](https://juju.is/docs/sdk/revision) are released simultaneous
0 commit comments