IL-0451 Daangn · 2026-10-06 (published)databaseaws
Setting indexes INVISIBLE on Aurora MySQL 3.10 spiked CPU and ReadIOPS on all three readers but not on the writer
In Aurora the instances are separate from the storage: the writer sends only redo logs to the storage layer, which builds the pages, and each reader has its own buffer pool over the same storage, updating cached pages from the redo it receives. One Daangn service ran an Aurora MySQL 3.10.x cluster with one writer and three readers, and one table had more than 20 indexes. To cut write cost and planning cost, the team picked six indexes whose count_read in performance_schema.table_io_waits_summary_by_index_usage had not grown on any of the four nodes over two weekly snapshots, and planned to make them INVISIBLE, watch for a few days and then drop them. Each INVISIBLE statement made all three readers mark almost every cached page of the table as stale, so the next reads went to storage and reader CPU and ReadIOPS jumped while the buffer pool refilled.
The IS_STALE column, added in MySQL 8.0.24, shows pages whose tablespace version no longer matches; community MySQL uses this since 8.0.23 to discard pages of dropped or truncated tablespaces lazily. The team sent the seven-case reproduction to AWS technical support. The Aurora MySQL service team confirmed that index DDL triggered the invalidation of the table's buffer pool pages on readers, that this is unnecessary because index operations are metadata-only and change neither the tablespace nor data pages, and that the behaviour came in with Aurora MySQL 3.08.0 as part of a feature improvement and was applied more widely than intended to DDL such as INDEX INVISIBLE, CREATE INDEX and DROP INDEX. AWS identified it as an engine defect, planned a fix that makes readers refresh only the table definition cache for metadata-only DDL, and recommended running index DDL in low-traffic hours until then.
AWS later said the fix would be in Aurora MySQL 3.14. Versions from 3.08.0 up to before 3.14 are affected, and there is no plan to backport the fix to earlier versions. Because Daangn runs the LTS version 3.10.x and cannot move to 3.14 right away, the team is waiting for the next LTS release that contains the fix.
- Severity
- –
- Scope
- All three readers of one service's Aurora MySQL cluster: each index DDL invalidated the table's cached pages, raising ReadIOPS from a few hundred to 3.1K and CPU from 30% to 50-60%
- Users affected
- –
- Region
- –
- Time to detect
- –
- Time to resolve
- –
Symptoms
Daangn's DB team set unused indexes of one table to INVISIBLE, one at a time, on an Aurora MySQL 3.10.x cluster with one writer and three readers.
In CloudWatch, each of the three ALTER INDEX ... INVISIBLE statements matched one spike on all three readers at once: ReadIOPS rose from a few hundred to 3.1K, CPU from 30% to 50-60%, and BufferCacheHitRatio dropped for a moment. On the writer, ReadIOPS, CPU and BufferCacheHitRatio stayed as usual.
The statements were of the form ALTER TABLE store_reviews ALTER INDEX idx_store_id_score_created_at INVISIBLE. The team had expected no load, because making an index invisible only changes the data dictionary and leaves data and index pages untouched, so a reader's cached pages of the table should stay valid; only DDL that rebuilds the table into a new tablespace should empty them.
The falling hit ratio and rising ReadIOPS suggested that pages were disappearing from the reader buffer pool. Counting the table's pages per index in information_schema.INNODB_BUFFER_PAGE on a reader just before and just after the DDL showed no change (511866 pages before, 511847 after, about 7998 MB). The IS_STALE column of the same view did show it: after ALTER TABLE store_reviews ALTER INDEX idx_user_id_created_at_visibility INVISIBLE, 245625 of 252656 PRIMARY pages (97.2%), 98.2% of the changed index and 94.5% of another index were stale, against 0 before. The writer had no stale pages. The invalidation covered the whole table, data pages and every index, not only the index that changed.
Reproducing seven kinds of DDL on a test table order_logs showed the same pattern. ADD COLUMN with ALGORITHM=INSTANT and ALTER COLUMN ... SET DEFAULT with ALGORITHM=INPLACE left the reader buffer pool untouched. MODIFY COLUMN ... NOT NULL (INPLACE with rebuild) and a column type change with ALGORITHM=COPY moved the table to a new tablespace (98989 to 98990, 98423 to 98424), which empties the cache as expected. CREATE INDEX, DROP INDEX and RENAME INDEX kept the same tablespace but made 99.8% to 100% of the table's cached pages on the reader stale.
Symptom Cache hit ratio drop
Root cause
Root cause Software defect
- Trigger
- The DB team ran ALTER TABLE store_reviews ALTER INDEX ... INVISIBLE for unused indexes, one at a time, as the first step before dropping them.
Detection
CloudWatch showed reader CPU and ReadIOPS spikes that lined up one to one with the three ALTER INDEX INVISIBLE statements.
Remediation
–
Action items
- Upgrade to the next Aurora MySQL LTS release that contains the fix
- Until then, run index DDL in low-traffic hours
- Combine changes to several indexes into one ALTER statement so the reader buffer pools are invalidated once instead of N times
Lessons
On Aurora MySQL from 3.08.0 up to before 3.14, making an index INVISIBLE is not free: the writer sees nothing, but every reader loses its cached pages of the whole table, and the larger and busier the table, the bigger the CPU and ReadIOPS spike while the cache warms again. Until the fixed version is in use, index DDL should be treated as an operation that empties the reader buffer pools. When looking for unused indexes, the usage statistics must be read on every node, because an index unused on the writer may be used heavily on one reader. Querying information_schema.INNODB_BUFFER_PAGE scans the whole buffer pool and takes seconds and adds load on large instances, so it is not a query to run routinely in production.
Sources
References
Related cases
IL-0385GitHub MySQL read replicas hit a semaphore deadlock during a schema migration's table rename and kept crash-recoveringGitHub · 2021same root cause · shared Database, Schema migration
IL-0313Decagon voice requests stalled for exactly 300 seconds behind self-managed PgBouncer and exhausted the SQLAlchemy poolDecagon · 2026same root cause · shared Database
IL-0281PostHog's Logs ClickHouse cluster silently deleted almost all its S3 data, losing US logs older than 3 daysPostHog · 2026same root cause · shared Database
IL-0310An Aurora PostgreSQL failover to an upsized reader reversed twice and backend writes failed in read-only transactionsHightouch · 2025same root cause · shared Database
IL-0150A latent race condition in DynamoDB's DNS automation left an empty DNS record for dynamodb.us-east-1.amazonaws.com, and the DynamoDB and EC2 launch failures that followed caused EKS, ECS and Fargate container launch failures and cluster scaling delays in us-east-1Amazon Web Services · 2025same root cause · shared Database
IL-0436A supremum lock left by ROLLBACK TO SAVEPOINT in a long transaction blocked inserts and filled Aurora MySQL connectionsfreee · 2025same root cause · shared Database
IL-0527OpenStreetMap.org made no replication diffs for 16 hours as PostgreSQL logical decoding failed on a memory alloc errorOpenStreetMap Foundation · 2025same root cause · shared Database
IL-0329A routine migration left PGAudit stuck holding Postgres locks, causing intermittent timeouts and a 2-minute outageincident.io · 2025same root cause · shared Database
IL-0347About 25% of Scaleway FR-PAR-1 hypervisors lost VPC connectivity when both VPC BGP route reflectors got stuckScaleway · 2024same root cause · shared Database
IL-0373Heroku Postgres Essential-tier databases in the EU region ran out of memory and refused connections, twice in four daysHeroku · 2024same root cause · shared Database
IL-0024Expensive cache-backed API calls and uncancelled database requests overloaded MongoDB and took the Hugging Face Hub down three timesHugging Face · 2024same root cause · shared Database
IL-0217Honeycomb's main MySQL database locked up under cache-miss reads and ran out of connections, a 68-minute total outageHoneycomb · 2023same root cause · shared Database
IL-0330Requests timed out for two weeks waiting on Go's database/sql connection pool, one for almost 20 secondsincident.io · 2023same root cause · shared Database
IL-0462Some MySQL pods on Shopify's GKE clusters took up to 30 minutes to start, slowing instance replacementShopify · 2021same root cause · shared Database
IL-0196Adding a second Redis replica and lowering memory limits in one RedisFailover change restarted the only Redis pod that held data, and Sentinel promoted the empty new replica, erasing the dataPalark · 2020same root cause · shared Database
IL-0486Figma's PostgreSQL 9 database on RDS slowed under high write IOPS and lock contention until the site was unavailableFigma · 2020same root cause · shared Database
IL-0241A database shard could not elect a new primary, and the Stripe API failed most requests in two periods on one dayStripe · 2019same root cause · shared Database
IL-0439Database access slowed after each block device and filesystem expansion because the Linux kernel dropped the page cacheCybozu · 2018same root cause · shared Database
IL-0388A Google Cloud live migration took a Discord Redis primary offline, and the failover broke API instances and then guildsDiscord · 2017same root cause · shared Database
IL-0454Baemin billing servers could not open new MariaDB connections at the start of a card-discount eventWoowa Brothers · 2016same root cause · shared Database
IL-0536Amazon SimpleDB in US East returned HTTP 500 to nearly all API calls for two hours after its nodes left the clusterAmazon Web Services · 2014same root cause · shared Database
IL-0485Dropbox went down when an OS upgrade script reinstalled active MySQL master-replica pairs and backup restores ran slowDropbox · 2014same root cause · shared Database
IL-0589Every Kickstarter MySQL replica on Amazon RDS stopped replicating on a duplicate-key error in the backings tableKickstarter · 2013same root cause · shared Database
IL-0303GitHub's MySQL master failed over to a node with a cold buffer pool during a schema migration and GitHub.com went downGitHub · 2012same root cause · shared Database
Check your cluster for this
For AI tools and scripts
- This case as JSON: https://incidentlib-api.benchlet.com/cases/IL-0451
- The cases most like it: https://incidentlib-api.benchlet.com/cases/IL-0451/similar
- MCP server (Streamable HTTP, no key):
https://incidentlib-mcp.benchlet.com/mcp
The API needs no key. The MCP server offers search_incidents, get_incident, list_incidents, get_topic and vocab; both are explained on API and MCP.