@ahachete@PlanetScale all queries were single-shard point selects. we split it: 80% of the queries were to the largest table with a hot (~5%) set of IDs, 10% of the queries were going to the same table with a uniform distribution. the last 10% went to two smaller tables
During the Supabase outage the PlanetScale engineering team rolled our entire Postgres fleet as a precautionary measure against https://t.co/jyH6J6QWEb
This is one of the things I’ve been doing at Cursor! We’ve migrated our largest database workload, the `codebase` cluster, from AWS Aurora Limitless to PlanetScale. The cluster contains syncing metadata for all the user codebases that we index.
Why did we migrate from Aurora Limitless? Basically, it’s a very poor database offering. AWS could tell that the Postgres market is very hot right now and they wanted to be first-to-market with a “sharding solution” for infinite scalability. But the product they’ve launched is veeeery far from production ready. From availability, to performance to pricing… It was just a constant stream of issues. And you know with AWS, when the system works it works quite well, but when it breaks, it’s very hard to get good support, and that made operating the cluster a nightmare. Limitless just turned out to actually have a lot of limits in practice.
Why did we choose PlanetScale? I did try to stay out of the conversation, because it felt kinda lame to start pitching my previous startup right after joining a new one, and obviously I’m biased because I’ve worked really hard these past 5 years on performance for the PlanetScale platform. Overall, I think all the infra folks already had a lot of confidence on the capacity for scale Vitess has, so it boiled down to whether it actually made sense to port our Postgres workload to MySQL.
Ironically, what made the choice easier is that Aurora Limitless **doesn’t support replication streams** (seriously!! it’s in the roadmap but right now you’re just locked-in if you move your data in!!!), and since we had to make major changes to perform the migration at the application level, it wasn’t a significant effort to move from Postgres to MySQL while we were at it.
So yes, the migration was not easy, but the end result was 100% worth it. Despite MySQL’s many shortcomings, the performance of Vitess + MySQL at scale on PlanetScale Metal is just unreal, miles ahead of anything you can do with a Postgres-compatible database right now. Can’t wait to see what the PS team does with their sharding solution for Postgres — it feels like a massive gap on the database landscape right now.
⚡ Introducing PlanetScale Metal ⚡
- Blazing fast NVMe drives
- Unlimited IOPS
- Drastic reductions in latency
- And best price:performance ratio of any database available in AWS or GCP
This is an extremely good role for the right person. You will get to work with customers running gigantic consumer apps and building out our ecosystem.
https://t.co/ifjewdbz0j
📢 We have just released Vitess v20.0.0 GA, along with our Kubernetes Operator v2.13.0 !!
Go check out our announcement blog post to learn more: https://t.co/ZQPWZqEf3k