Add charm config for max_total_connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Router Charm |
Fix Committed
|
Undecided
|
JamesLin |
Bug Description
On a deployed cloud using mysql-innodb-
nova-cloud-
2022-04-22 10:55:08 routing WARNING [7fd12e4ea700] [routing:
The other n-c-c units are borderline with the amount of connections:
$ juju run -a nova-cloud-
| wc -l
- Stdout: |
512
UnitId: nova-cloud-
- Stdout: |
480
UnitId: nova-cloud-
- Stdout: |
478
UnitId: nova-cloud-
And this is who's using the connections on one of the n-c-c units, in case it's of any use (maybe we want to investigate why there's so many, but I'm not sure):
$ sudo ss -Onatp state connected | grep -f <(sudo ss -Onatp state connected 'sport = 3306' | grep 2250194 | awk '{print $5;}' | cut -d: -f2 | sort -nu) | awk '!/mysqlrouter/ && $6 != "" {print $6;}' | cut -d\" -f2 | sort | uniq -c
173 apache2
5 haproxy
1 jujud
232 nova-conductor
128 nova-scheduler
The charm doesn't currently feature a config for modifying the max_total_
Changed in charm-mysql-router: | |
assignee: | nobody → Eric Chen (eric-chen) |
Changed in charm-mysql-router: | |
assignee: | Eric Chen (eric-chen) → JamesLin (jneo8) |
This is a dup of https:/ /bugs.launchpad .net/charm- mysql-router/ +bug/1929826 (although max_connections will need to be replaced with max_total_ connections since the former is deprecated).