Maria Session Wait Events Test

A MariaDB session wait event occurs when a query or session is delayed, waiting for a resource like a lock, I/O, or CPU. It indicates contention or resource bottlenecks. Monitoring these events helps diagnose performance issues by identifying where sessions are stuck or waiting during execution.

Monitoring MariaDB session wait events helps identify performance bottlenecks, such as locking conflicts, slow I/O, or CPU contention. It reveals why queries are delayed, enabling faster diagnosis and resolution of issues. By understanding where sessions spend time waiting, you can optimize resource usage and improve database responsiveness.

The Maria Session Wait Events Test monitors the session wait events and collects metrics like number of waiting sessions, average and maximum waiting times etc. These metrics help administrators understand the performance implications of wait events and take preventive actions before the database performance drops.

Target of the test : A Maria Database server

Agent deploying the test : An internal/remote agent

Outputs of the test : One set of results for the Maria Database server being monitored

Configurable parameters for the test
Parameter Description

Test Period

How often should the test be executed.

Host

The IP address of the Maria Database server.

Port

The port on which the server is listening

Database

Specify the name of the database that is to be monitored on the target Maria Database server

User and Password

The eG agent has to be configured with the credentials of a user who has server-wide PROCESS and SELECT privileges on the monitored Maria Database server. To know how to create such a user, refer to Configuring the eG Agent with Access Privileges section.

Confirm Password

Confirm the password by retyping it here.

SSL

This indicates that the eG agent will communicate with the Maria Database via HTTPS or not. By default, this flag is set to No, as the target Maria database is not SSL-enabled by default. If the target database is SSL-enabled, then set this flag to Yes.

Verify CA

If the eG agent is required to establish an encrypted connection with the target Maria Database server by authenticating the server's identity through verifying the server CA certificate, set Verify CA flag to Yes. By default, this flag is set to No.

Measurements made by the test
Measurement Description Measurement Unit Interpretation

Number of waiting sessions

Indicates the total number of waiting sessions active at any given time on Maria database.

Number

This is good measure of performance of the database server, if the number of wait sessions is high, it means the queries are waiting on something which help understand the slowness of overall database performance.

Average waiting time

Indicates the average waiting time across all waiting sessions.

Sec

If the average waiting time is very high it means that database each session has to wait before getting access to resources. You need to update the resource availability like I/O buses, CPU capacity and system memory etc.

Maximum waiting time

Indicates the rate at which connections were created to connect to the server from the clients during the last measurement period.

Connections/sec

If the average waiting time is within thresholds but maximum waiting time is high, you may need to investigate the particular incident where the session wait time was high.