Scalable. Reliable. MySQL-compatible. Cloud-native. Database.
open sourceApache-2.0self-hostablefree
Vitess is a database clustering system that adds horizontal scaling to MySQL while keeping it MySQL-compatible. Applications connect to VTGate, a proxy that speaks the MySQL protocol and routes queries to the right shards; VTTablet runs beside each MySQL or Percona Server instance to pool connections, rewrite, de-duplicate and kill queries and manage replication; and a topology service (etcd, ZooKeeper or Consul) holds the cluster state. Sharding is transparent to the application, with resharding, data migrations and online schema changes that run with near-zero downtime, plus automatic failover. It's an Apache-2.0 licensed, graduated CNCF project, and its site lists Slack, Shopify, GitHub, Uber, Pinterest and YouTube among users.
Problems it solves
- our MySQL database has outgrown a single server and needs sharding
- shard MySQL without writing sharding logic into the application
- too many connections to MySQL from our app servers
- run schema changes on large MySQL tables without downtime
- reshard a live MySQL database with almost no downtime
- automatic failover when a MySQL primary dies
- run sharded MySQL on Kubernetes
Features
- MySQL protocol compatibility through the VTGate proxy
- transparent horizontal and vertical sharding; pluggable sharding schemes
- dynamic resharding and live data migrations with near-zero downtime
- online schema changes in the background
- connection pooling, query de-duplication and transaction management
- query rewriting, blocking and killing; table ACLs
- automatic detection and repair of primary failures; planned failover
- cross-shard materialized views and messaging
- multi-data-center and multi-region topologies; web GUI
- supports MySQL and Percona Server; topology in etcd, ZooKeeper or Consul
Capabilities
| Takes plugins | plan not known |
|---|
Alternatives
The same job
These do what Vitess does.
- PlanetScale The world's fastest and most scalable cloud databases
- Apache ShardingSphere Distributed SQL layer for sharding, read/write splitting and encryption on top of existing databases
- TiDB Open source, MySQL-compatible distributed SQL database for transactions, analytics and vector search
