Finding
3,000 fixed IOPS ceiling and 7-day binlog retention drive 140ms commit spikes
An 8-vCore, 64 GiB RAM Standard_E8ds_v5 Business Critical instance was left on fixed 3,000 IOPS with default innodb_io_capacity=200 and binlog_expire_logs_seconds=604800. Nightly settlement batches pinned storage_io_count_percent at its ceiling and pushed storage_percent to 83%.
1. Azure CLI: Enable Autoscale IOPS & calibrate Flexible Server parameters
az mysql flexible-server cli
# Enable Autoscale IOPS so batch write bursts never hit a static 3,000 IOPS wall
az mysql flexible-server update \
--resource-group rg-prod-mysql \
--name mysql-flex-orders-prod \
--auto-scale-iops Enabled
# Tune InnoDB flushing capacity and bound binary log retention to 48 hours (172800s)
az mysql flexible-server parameter set-batch \
--resource-group rg-prod-mysql \
--server-name mysql-flex-orders-prod \
--args innodb_io_capacity=2000 \
innodb_io_capacity_max=6000 \
binlog_expire_logs_seconds=1728002. Read-only verification & controlled Zone-Redundant failover rehearsal
mysql & az cli · verification
-- Verify active binary log space and InnoDB buffer pool dirty page ratio SELECT FILE_NAME, ROUND(TOTAL_EXTENTS * EXTENT_SIZE / 1024 / 1024, 1) AS size_mb FROM information_schema.FILES WHERE TABLESPACE_NAME LIKE 'innodb_undo%'; SHOW BINARY LOGS; # Rehearse a Planned Zone-Redundant HA switchover during staging validation az mysql flexible-server restart \ --resource-group rg-staging-mysql \ --name mysql-flex-orders-staging \ --failover Planned







