Interview Prep/Linux/Load, CPU and I/O performance

A backup job makes the production database slow every night.

BeginnerTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → The backup saturates disk I/O or network shared with the database.

Diagnose →

iotop -oPa         # during the backup window
iostat -xz 1
sar -n DEV 1

Fix → Run the backup with lower priority (ionice -c3 nice -n19), rate-limit (rsync --bwlimit, pv -L), take backups from a replica, or use storage snapshots.

Prevent → Schedule backups away from peak; use a replica for backups.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance