toolingmedium.com ↗

Beyond synthetic testing: Capturing and replaying real database workloads at Airbnb

Airbnb replays captured production MySQL traffic against new engines. On 8.0, one query went from 0.03 to 2.6 seconds, caught offline before the 5.7 upgrade reached production.

Airbnb Engineering · · 10m read

Three hikers with backpacks walk along a coastal trail through low green shrubs toward large granite boulders on a rocky beach, with ocean and mountains under a cloudy sky

Why we picked it · the editor's summary

Airbnb captures real MySQL traffic at its ProxySQL layer, turns it into per-cluster, five-minute files with each transaction's statements back in order, and replays them against target databases at 1x, 2x or a set QPS. Inserts are rewritten to pin the captured last_insert_id so later reads don't break on engines that assign IDs differently, at the cost of no longer testing native auto-increment. On the 5.7 to 8.0 upgrade, replay caught one query pattern going from 0.03 to 2.6 seconds and queries whose row order was never determined; on one cluster, 80% more write traffic pushed commit latency from about 6 ms to 34 ms. If a major database upgrade is on your roadmap, the replay-and-compare mode is the part to copy.

Read on Airbnb Engineering ↗

Comments

Loading comments…