eG Monitoring
 

Measures reported by PgWaitEventTest

Wait events are an important tuning tool for PostgreSQL. Wait Events tell you the details on what a Postgres connection is currently waiting on, in particular if it’s not actually processing something in the CPU. Wait Event spikes can often correlate with higher CPU or I/O usage, and are particularly useful for getting to the root cause of production incidents. When you can find out why sessions are waiting for resources and what they are doing, you're better able to reduce bottlenecks.

By analyzing wait events and their wait times, administrators can receive quick and objective evidence of performance bottlenecks and their probable causes. The PgWaitEventTest enables this analysis. For every type of wait event that is currently experienced by the database server, this test reports the number, and duration of waits, thereby leading you to the specific wait event that may have contributed to a general slowdown/deterioration in server performance.

Outputs of the test: One set of results for each wait events in the target database server being monitored.

Descriptor: Wait Event

The measures made by this test are as follows:

Measurement Description Measurement Unit Interpretation
NumberOfWaitEvents Indicates the number of times waits on this event occured in the target database server. Number

If the value of this measure is very high, then you can drill down further using the detailed diagnosis capability (if enabled) of the eG Enterprise suite to discover which current connections may be responsible for this.

The detailed diagnosis of this measure shows that information about the PID, Waiting Username, Database name,Application name, Waiting client address, Session status, Status change time, Wait event type, Wait duration(in seconds), Query start time, and SQL text.

MaxWaitTime Indicates the maximum wait time for this wait event. Seconds

A low value is desired for this measure.

WaitingTimePercentage Indicates the percentage of total wait time (across wait events) during which waits on this wait event occurred. Percent

Calculation = (Sum of wait time of info / Sum of wait time all info) * 100