Load By Waits
- The first chart in the top section, shows the load on the PostgreSQL database system, by wait events.
- Each bar represents load at a specific point in time.
- The load is measured in terms of average active sessions.
- The X-axis represents time and the Y-axis represents the average active sessions.
- Hover over the bar for more information.
- Higher the peak of the bar and higher the load number, higher the load on the system at that point in time.
- In a high load scenario, some of the load events that you may see are:
- CPU
- Disk I/O
- Transactions
- IPC
- Network I/O
- WAL (Write Ahead Log)
- Locks
- A high load scenario is most likely caused by a query.
- Identify the query and fine tune it to reduce the load on the system.
What is not counted as load
From this release the load figures do not count the DataDios collector's own session, or sessions that are idle in transaction. Idle-in-transaction sessions are left out of history too, so the same period can show a lower load than it did before; older collector rows still count as normal load. Snapshots that hold only these sessions still count in the average of a period that has other load, so that load is not inflated. A period with no other load shows no point. To see idle-in-transaction sessions, use Idle In Transaction (holds locks).
Idle In Transaction (holds locks)
- Choose Idle In Transaction (holds locks) in the metric picker of this chart.
- It shows the sessions that are
idle in transaction, stacked by wait event, over time. - These sessions are not part of the load shown by the other metrics. Because such a session can hold locks while it waits, a long-lasting one can block other work.