[Focal/Victoria/Charm-6] DB requests fails when slaves are offline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Router Charm |
Fix Released
|
Wishlist
|
DUFOUR Olivier |
Bug Description
Hello,
We have deployed a 3 nodes MySQL InnonDB cluster (version 8.0.25) with juju for an OpenStack deployment.
We recently faced an issue where the our MySQL cluster faced an outage but we now have the master node back online. The two slave nodes are still down for maintenance. The issue that we face is that 2/3 of all requests to the Horizon dashboard fails with a 500 error. Looking at Nova logs for example the error says that there are too many connections to the MySQL router:
pymysql.
How can this error be fixed is order to have HA when some slaves are down? We have configured the MySQL cluster to accept up to 2000 connections, but according to the documentation the default value on the router side is 512 (which is not modified by the generated configuration from juju): https:/
juju 2.9.0
Model OpenStack 2.8.9
OpenStack Victoria
Ubuntu Focal
MySQL InnoDB 8.0.25
Charm v6
Thanks for your support.
Changed in charm-mysql-router: | |
status: | New → In Progress |
Changed in charm-mysql-router: | |
status: | In Progress → New |
Changed in charm-mysql-router: | |
assignee: | nobody → DUFOUR Olivier (odufourc) |
Changed in charm-mysql-router: | |
status: | Triaged → In Progress |
Changed in charm-mysql-router: | |
milestone: | none → 22.04 |
Changed in charm-mysql-router: | |
status: | Fix Committed → Fix Released |
Triaged as wishlist as this is a new feature.
The best course of action would probably be to add a config option like the mysql-server (as indicated in the original bug report post). For completeness, this is:
max-connections: ce-schema= True or during run time with performance- schema= False. www.mysqlcalcul ator.com/ to
type: int
default: 600
description: |
Maximum connections to allow. A value of -1 means use the server's
compiled-in default. This is not typically that useful so the
charm will configure PXC with a default max-connections value of 600.
Note: Connections take up memory resources. Either at startup time with
performan
This value is a balance between connection exhaustion and memory
exhaustion.
.
Consult a MySQL memory calculator like http://
understand memory resources consumed by connections.
See also performance-schema.