I've recently been put in charge of a system that has been fairly untended for a period of time.
The majority of activity is via queued worker jobs based off of data feeds from other systems/data sources.
Via the slow query log I identified a number of slow queries using the PostgreSQL logs and added indexes to address these. This started around 7am or so.
- Would the addition of these indexes have contributed to the large increase in IO/Wait?
- What steps can I take to reduce this?
CONCURRENTLY
, it has to read the table twice. This effect has to disappear after the indexes are created, though - it might be that autovacuum started working hard to update statistics and such.