I have a single db.m5.large RDS instance running in my aws setup. When I check for max connection from mysql console, with bellow query.
mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 624 |
+-----------------+-------+
So I am assuming that, it can handle 624 connections.
And when I check for max used connections with bellow query.
mysql> SHOW STATUS WHERE `variable_name` = 'Max_used_connections';
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| Max_used_connections | 99 |
+----------------------+-------+
I am assuming that there are 99 active connections and rest are free.
But, my AWS alarm system and RDS monitoring system shows its taking 90+ db connections. But my RDS CPU consumption is only 8% at the same time. Does this alarm/monitoring is just the number or the average max connection count?
I am little worried about this, that my server might stop after reaching max connection(100) after some time.
Could any one tell/explain bellow
- How to check actual max connections available and current connection count.
- What are metric measure means? (just current connection count or average connection count?)
- How to overcome from this?
- If I want to increase max connections what I should do?
- Do I need to reduce connections from app side?