Sugu Sougoumarane, Co-creator CTO, PlanetScale
Vitess, k8s & sharding
@vitessio
Vitess, k8s & sharding Sugu Sougoumarane, Co-creator CTO, - - PowerPoint PPT Presentation
Vitess, k8s & sharding Sugu Sougoumarane, Co-creator CTO, PlanetScale @vitessio What is Vitess Sharding middleware for MySQL Massively scalable HA Cloud-native Vitess stats Marquee adopters Started 2010 100+
Sugu Sougoumarane, Co-creator CTO, PlanetScale
@vitessio
pxhere CC0
25% Migrated to Vitess Cash App fully runs on Vitess All of advertising campaign management
Quiz of Kings
Oldest, since 2016 Hundreds of keyspaces 10,000+ Tablets Migrate from cloud to cloud MySQL 8.0
shard n shard 1
vtgate app server app server app server mysqld vttablet master vtgate big data Vitess topology mysqld vttablet mysqld vttablet replicas mysqld vttablet big data replicas mysqld vttablet vtctld App
Vitess app server app server app server MainDB Connection pooling Deadlines Hot row protection Row count limit Blacklisting
Vitess app server app server app server Master Replica Replica routing Load balancing Master promotion with Orchestrator
Vitess app server app server app server DB2 Replica DB1 Replica Unified View
Vitess app server app server app server DB2 Replica DB1:S1 Replica DB1:S2 Replica DB1:S3 Replica Sharding agnostic
Vitess app server app server app server DB2 Replica DB1:S1 Replica DB1:S2 Replica DB1:S3 Replica Replica Replica Replica Replica Replica Replica Replica Replica Zone 1 Zone 2 Zone 3 Multi-zone Isolation
customer cid name
cid pid mname merchant name product pid description
customer cid name
cid pid mname merchant name product unsharded customer sharded merchant sharded product pid description
customer cid name
cid pid mname merchant mname product unsharded product id customer sharded merchant sharded sales pid amount product id
cid pid mname
select * from product select pid, sum(price) as amount from orders select * from orders where in_keyrange( mname, ‘unicode_loose_md5’, ‘-80’)