1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

[MDEV-30543] New status variable: max_used_connections_time

Add variable max_used_connections_time to show the time at which
max_used_connections reached its current value. This is useful for
troubleshooting high connection counts. MySQL 8 has this already.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the BSD-new
license. I am contributing on behalf of my employer Amazon Web Services.
This commit is contained in:
Mikhail Chalov
2023-03-02 16:14:33 -08:00
committed by Daniel Black
parent c4d6d6fd81
commit ada3987948
3 changed files with 69 additions and 1 deletions

View File

@ -447,3 +447,22 @@ Feature_json 2
connection default;
set @@global.concurrent_insert= @old_concurrent_insert;
SET GLOBAL log_output = @old_log_output;
#
# MDEV-30543 New status variable: Max_used_connections_time
#
FLUSH STATUS;
connect con1,localhost,root,,;
connect con2,localhost,root,,;
connection con1;
disconnect con2;
SELECT 'DTVALUE' = 'DTVALUE' AS expect_1;
expect_1
1
connect con3,localhost,root,,;
connect con4,localhost,root,,;
SELECT 'DTVALUE' < 'DTVALUE' as expect_1;
expect_1
1
disconnect con4;
disconnect con3;
disconnect con1;