Skip to content
ADHDecode
  1. Home
  2. Articles
  3. Vitess

Vitess Articles

49 articles

Vitess Emergency Reparent: Force Primary Election

The Vitess primary election failed because the existing primary MySQL instance became unresponsive, and the orchestrator couldn't find a suitable replic.

3 min read

Fix Vitess Errant GTID: Replication Consistency Recovery

The primary cause of errant GTIDs in Vitess is a divergence in the replication state between MySQL primary and secondary instances, specifically when a .

4 min read

Vitess etcd Topology Store: Setup and Operations

Vitess uses etcd as its topology store, which is crucial for managing its distributed nature. Let's see etcd in action with Vitess

2 min read

Vitess Foreign Key Emulation: Managed FK Constraints

Vitess can emulate foreign key constraints, but it does so by pushing the constraint enforcement down to the MySQL instances.

2 min read

Vitess gRPC Connection Setup: Client and Credentials

Vitess clients connect to Vitess gateways using gRPC, and establishing that connection securely requires careful setup of both the client and the gatewa.

3 min read

Vitess Health Check Intervals: Tune for Your SLA

Vitess health checks don't just tell you if a tablet is alive; they actively decide how quickly a faulty tablet gets taken out of rotation.

3 min read

Vitess Keyspace Routing Rules: Direct Traffic Per Query

Vitess keyspace routing rules let you precisely control which underlying MySQL shard a specific query will hit, even within a single keyspace.

2 min read

Vitess Kubernetes Operator: PlanetScale and Open Source

The Vitess Kubernetes Operator is the secret sauce that lets you run Vitess, the battle-tested database clustering system for MySQL, as if it were a nat.

3 min read

Vitess Latency Profiling: Vtexplain and Query Analysis

Vitess Latency Profiling: Vtexplain and Query Analysis — practical guide covering vitess setup, configuration, and troubleshooting with real-world examp...

3 min read

Vitess Lookup Vindexes: Secondary Index for Sharded Tables

Vitess Lookup Vindexes let you build secondary indexes on sharded tables, and the most surprising thing is how they don't require a full cluster re-shar.

2 min read

Vitess Prometheus Monitoring: Metrics and Dashboards

Vitess's Prometheus monitoring isn't just about collecting metrics; it's about seeing the database's internal state as if it were a black box you could .

2 min read

Vitess MoveTables: Migrate Tables Between Keyspaces

Vitess's MoveTables is the tool for surgically migrating tables from one keyspace to another within a running Vitess cluster, without downtime.

3 min read

Vitess Multi-Tenant Database Isolation: Per-Tenant Keyspaces

Vitess's multi-tenant isolation, specifically using per-tenant keyspaces, is surprisingly more about enforcing isolation than creating it from scratch.

2 min read

Vitess MySQL 8 Upgrade: Migration Path and Compatibility

Vitess 16+ and MySQL 8 are a surprisingly smooth pairing, but the real magic happens when you realize Vitess doesn't just tolerate MySQL 8, it actively .

3 min read

Vitess MySQL Compatibility Gaps: What Queries Break

Vitess MySQL Compatibility Gaps: What Queries Break — practical guide covering vitess setup, configuration, and troubleshooting with real-world examples.

5 min read

Vitess Ordered Scatter Queries: Sort Across Shards

Ordered Scatter Queries in Vitess are a way to execute ORDER BY statements across multiple shards, something that's not inherently possible with standar.

3 min read

Vitess Primary Election and Reparenting: Failover Options

Vitess's primary election and reparenting process is how it automatically recovers from a primary MySQL instance failure, ensuring your application stay.

3 min read

Vitess Production Deployment Checklist

Vitess production deployments are surprisingly brittle, and the most common failure point isn't a complex misconfiguration, but a simple oversight in ne.

2 min read

Vitess Query Consolidation: Deduplicate Identical Queries

Vitess query consolidation is a feature that saves you a surprising amount of CPU by identifying and executing identical queries only once, even if they.

3 min read

Vitess Query Routing Internals: How VTGate Plans

Vitess doesn't just send your SQL to a MySQL instance; it figures out which one should handle it, and that decision is a lot more sophisticated than you.

3 min read

Vitess Read-Write Splitting: Route Reads to Replicas

Vitess's read-write splitting automatically directs read traffic to replica instances, offloading your primary database.

3 min read

Vitess Replication Lag Monitoring: Alert and Respond

Vitess replication lag is a critical indicator of data staleness and potential performance degradation, often stemming from a disconnect between primary.

3 min read

Vitess Online Resharding: Zero-Downtime Shard Split

Vitess's online resharding lets you split a shard without stopping your application, which feels like magic but is actually a carefully orchestrated mig.

2 min read

Vitess RowLog: Message Queues from Table Changes

Vitess's rowlog is a surprisingly powerful mechanism for turning database table changes into a distributed message queue, without needing a separate mes.

3 min read

Vitess Scatter-Gather Query Cost: Measure and Reduce

Vitess scatter-gather queries are the silent assassins of your database performance, often hiding in plain sight until they bring your application to it.

2 min read

Vitess Online DDL: Schema Changes Without Locking

Vitess Online DDL: Schema Changes Without Locking — practical guide covering vitess setup, configuration, and troubleshooting with real-world examples.

3 min read

Vitess Sequences: Generate Globally Unique IDs

Vitess sequences are a mechanism to generate globally unique IDs across your sharded database. Let's watch them in action

2 min read

Vitess Sharding Strategy: Design Your VSchema

Vitess Sharding Strategy: Design Your VSchema — practical guide covering vitess setup, configuration, and troubleshooting with real-world examples.

2 min read

Vitess Slow Log Analysis: Find and Fix Slow Queries

Vitess, the database clustering system for MySQL, surfaces a wealth of diagnostic information, but its "slow log" is a goldmine for performance tuning.

4 min read

Vitess Stream Aggregate: Sort-Based Cross-Shard Aggregation

Vitess's stream aggregates can perform sorting and aggregation across shards without needing to pull all the data into a single VReplication worker.

2 min read

Manage Tablet Types

Manage Tablet Types — practical guide covering vitess setup, configuration, and troubleshooting with real-world examples.

2 min read

Vitess Cross-Shard Transactions: 2PC and Atomic Commits

The most surprising thing about Vitess cross-shard transactions is that they often don't use the two-phase commit 2PC protocol you're probably thinking .

2 min read

Vitess Rolling Upgrade: Upgrade Without Downtime

Vitess Rolling Upgrade: Upgrade Without Downtime — practical guide covering vitess setup, configuration, and troubleshooting with real-world examples.

2 min read

Vitess Vertical Sharding: Move Tables to New Keyspace

Vitess's vertical sharding feature lets you move tables from one keyspace to another, typically to consolidate or distribute data based on access patter.

3 min read

Vitess Vindex Hash vs Lookup: Choose for Your Schema

A hash vindex is not what you think it is; it's not a distribution key for sharding, but rather a way to distribute rows evenly across shards that alrea.

3 min read

Vitess vs Plain MySQL: When Sharding Is Worth It

Sharding is often presented as a silver bullet for database performance, but the reality is that most applications never need it.

3 min read

Vitess VSchema Design Best Practices

Vitess VSchema design is less about defining tables and more about defining how your sharded tables relate to each other and how Vitess should manage th.

2 min read

Vitess VTAdmin UI: Web Dashboard Setup

Vitess's VTAdmin UI is more than just a pretty dashboard; it's your real-time control panel for a distributed MySQL cluster, offering insights into quer.

3 min read

Vitess VTGate and VTTablet: Component Roles Explained

Vitess's VTGate and VTTablet are your indispensable duo for scaling MySQL horizontally, but their roles can get a bit fuzzy.

3 min read

Vitess WASM Query Planning: Sandboxed Query Optimizer

The surprising truth about Vitess WASM query planning is that it allows you to run completely custom, sandboxed logic for query optimization within Vite.

3 min read

Vitess Workflow Manager: Monitor and Control Workflows

Vitess's Workflow Manager is actually a sophisticated distributed state machine that orchestrates complex, multi-step operations across your Vitess clus.

2 min read

Vitess Aggregation Pushdown: Optimize Cross-Shard Queries

Vitess Aggregation Pushdown is a feature that can dramatically speed up queries involving aggregate functions like COUNT, SUM, AVG across multiple shard.

3 min read

Vitess Architecture Explained: VTGate, VTTablet, VTCtld

Vitess, the battle-hardened database clustering system for MySQL, is often described as a sharding middleware, but its true power lies in its ability to.

3 min read

Vitess Backup and Restore: Full and Incremental Backups

A Vitess backup isn't really a backup in the traditional sense; it's a point-in-time snapshot of your data and your schema, all bundled together and sto.

3 min read

Vitess Buffer During Reparent: Minimize Read Downtime

Vitess's buffer during reparent is the mechanism that allows reads to continue with minimal disruption when a primary MySQL instance is being replaced.

2 min read

Vitess Cell Topology: Multi-Region Configuration

Vitess uses a "cell" topology to manage its distributed database clusters across different geographical regions or data centers.

3 min read

Vitess Cluster Management: vtctldclient Commands

vtctldclient is your command-line interface to the Vitess cluster's control plane. It lets you interact with vtctld, the master process responsible for .

2 min read

Vitess Connection Pooling: VTGate and VTTablet Pools

VTGate's connection pools are actually two distinct pools, one for talking to clients your application and another for talking to VTTablet.

3 min read

Vitess Cross-Shard Query Limitations: What Won't Work

Vitess has a secret: it's not a magic wand for all distributed queries. Imagine you have a sharded database, say split by userid

5 min read
ADHDecode

Complex topics, finally made simple

Courses

  • Networking
  • Databases
  • Linux
  • Distributed Systems
  • Containers & Kubernetes
  • System Design
  • All Courses →

Resources

  • Cheatsheets
  • Debugging
  • Articles
  • About
  • Privacy
  • Sitemap

Connect

  • Twitter (opens in new tab)
  • GitHub (opens in new tab)

Built for curious minds. Free forever.

© 2026 ADHDecode. All content is free.

  • Home
  • Learn
  • Courses
Esc
Start typing to search all courses...
See all results →
↑↓ navigate Enter open Esc close