Catalogue / intercom-2024-vitess-planetscale

Intercom began moving its MySQL layer from 13 Aurora clusters with home-built sharding to Vitess managed by PlanetScale

Intercom, 2024. MySQL database layer.

Organisation
Intercom
Evidence
Reported from production
Source
Evolving Intercom's database infrastructure

Intercom blog, published 2024-10-14

Records

Decision#d1

Move from Aurora MySQL with home-built sharding to Vitess run by a vendor in the company's own cloud accounts

Decision#d2

Let the Vitess proxy pool connections for a Rails monolith, in place of ProxySQL in front of each writer

Failure#f1

Cutting a core database over to fresh MySQL instances with cold buffer pools slowed the Inbox for twenty minutes

Failure#f2

Replicas under-provisioned for IOPS saturated after cutover, and adding replicas took hours

Failure#f3

A larger transaction pool and longer transaction limit met an hourly burst of scheduled work and saturated the database

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.