TiDB database services for production teams.
JusDB provides TiDB database services for scoped projects, ongoing remote DBA coverage, migrations from MySQL, HTAP design with TiFlash, and recovery planning. We work on TiDB Cloud, on Kubernetes with TiDB Operator, and on servers you run with TiUP. Support is 24/7.
Or request a free audit of one database instance. Already in an incident? See how incidents are handled.
- NDA before access
- Read-only by default
- Changes measured against your baseline
TiDB version status
Pick the version you run
TiDB 8.5 LTS
Newest LTSThe newest long-term support (LTS) release, out since December 2024. Community Edition maintenance support runs to 19 December 2027.
Unlike earlier LTS lines, 8.5 patch releases can add features, so we read each one's notes before rollout.
Plan a TiDB upgradeTiDB 8.1 LTS
Supported LTSA long-term support line from May 2024, with maintenance support to 24 May 2027.
Releases 8.2 to 8.4 were development milestone releases (DMR) without patches, and 8.1 upgrades straight to 8.5.
Plan the 8.1 to 8.5 upgradeTiDB 7.5 LTS
Maintenance endingMaintenance support ends on 1 December 2026. Extended support, with critical security patches only, runs to 1 December 2027.
TiDB cannot be downgraded after an upgrade, so we rehearse the move to 8.5 on a copy first.
Plan the upgrade off 7.5TiDB 6.5 LTS
Extended supportMaintenance support ended on 29 December 2025. Extended support, with critical security patches only, ends on 29 December 2026.
TiDB 6.5 can upgrade straight to 8.5, but foreign keys created before 6.6 stay unenforced, so we recreate them.
Keep 6.5 running while you upgradeVersion status from the TiDB release timeline and PingCAP's TiDB release support policy, checked 28 October 2026.
- Platforms
- TiDB Cloud, Kubernetes with TiDB Operator, and your own servers with TiUP
- High availability
- Raft replication of every Region, replicas spread across zones, and TiCDC to a standby cluster
- Incidents
- SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. See the SLA
Symptoms
Eight TiDB problems we are asked to fix
Each one has a cause we can measure. The scoping call starts from the symptom you see and the version and platform you run.
Reports and dashboards slow down transactions because their tables have no TiFlash replicas, so large scans run on the TiKV nodes that serve writes.
A small, busy table slows reads on one TiKV node because the table fits in one Region, and by default reads go to its leader.
A paused TiCDC changefeed slows the source cluster because it holds back garbage collection, so old row versions pile up until its gc-ttl (24 hours by default) expires and it fails.
Stored procedures, triggers, and events block the move from MySQL because TiDB does not support them, so their logic must move into the application first.
Foreign keys are declared but not enforced because keys created before v6.6.0 stay inactive after an upgrade, marked FOREIGN KEY INVALID.
Query plans change after bulk loads or large deletes because statistics refresh automatically only after more than half of a table's rows change (tidb_auto_analyze_ratio is 0.5).
The upgrade off 6.5 or 7.5 keeps slipping while 7.5 maintenance support ends on 1 December 2026 and 6.5 extended support on 29 December 2026.
Point-in-time recovery has never been tested so nobody knows that a full-cluster PITR restore needs an empty cluster, or that TiDB Lightning physical imports skip log backup.
If one of these is costing your team time, a scoping call is the place to start.
Book a 30-min scoping call (opens Google Calendar in a new tab)Hotspots
How an auto-increment key sends every write to one TiKV node
TiDB keeps each table in key order, split into Regions, and each Region takes writes through one Raft leader on one TiKV node. With an AUTO_INCREMENT primary key, every new row sorts last, so every insert lands in the last Region.
One busy table, three TiKV nodes, three outcomes
Choose a state to see where the inserts go.
Application and TiDB servers
Any TiDB server sends an insert to the leader of the Region that owns its key.
TiKV 1
Leads the last Region
Busy, keeping up
TiKV 2
Follower copy of that Region
Following
TiKV 3
Follower copy of that Region
Following
At a low insert rate, one leader keeps up, so the key design passes testing.
Application and TiDB servers
Every TiDB server sends inserts to the same leader, so adding TiDB servers does not help.
TiKV 1
Leads the last Region; Raftstore CPU far above the rest
Hotspot
TiKV 2
Applies the writes, serves no inserts
Underused
TiKV 3
Applies the writes, serves no inserts
Underused
The Region splits as it grows, but new rows keep landing in the newest Region, so insert latency climbs while the other nodes have room.
Application and TiDB servers
Inserts reach Region leaders on every TiKV node, and PD keeps those leaders balanced.
TiKV 1
Leads some Regions that take inserts
Balanced
TiKV 2
Leads some Regions that take inserts
Balanced
TiKV 3
Leads some Regions that take inserts
Balanced
AUTO_RANDOM gives each new row a random, unique BIGINT key, and PRE_SPLIT_REGIONS starts the table with several Regions, so inserts spread out. Rows written before a change keep their keys and Regions. Keys no longer follow insert order, and a time-column index can still concentrate writes.
We review every primary key before data moves from MySQL. A BIGINT key that only has to be unique becomes AUTO_RANDOM. A table with a non-clustered key or none gets SHARD_ROW_ID_BITS before the import, since it only affects new rows. With either, PRE_SPLIT_REGIONS starts a new table with several Regions.
We alert when one TiKV node's Raftstore CPU runs well above the rest, and trace it to a table or index with the Key Visualizer and TIDB_HOT_REGIONS. Before a cutover, we replay the bulk load and peak insert rate on a copy, so a hotspot can surface in rehearsal.
What we cover
Full-spectrum TiDB engineering
From a hot Region to a low-downtime cutover: the slow query log, EXPLAIN ANALYZE, and TiDB Dashboard drive every change, measured against your baseline.
HTAP architecture design
We choose which tables get TiFlash replicas, so large scans can run on separate columnar nodes instead of TiKV.
- TiFlash replicas set per table
- MPP and engine choice checked in plans
- Resource groups that cap analytical load
TiKV and TiFlash optimization
We tune how data splits into Regions, where PD places them, and how far TiFlash replicas fall behind.
- Region size, splits, and merges
- Hot Region and leader balance
- Placement labels across zones
Low-downtime migrations
Moves from MySQL, Amazon RDS, or Aurora with a full copy, ongoing replication, and a rehearsed cutover.
- TiDB Data Migration (DM) from the binary log
- Data compared with sync-diff-inspector
- TiCDC back to MySQL as a rollback path
Query and planner tuning
We read execution plans with EXPLAIN ANALYZE, keep statistics current, and pin plans that must not change.
- Slow query log and Top SQL
- Statistics health from SHOW STATS_HEALTHY
- Plan bindings with SQL plan management (SPM)
Auto-sharding and scaling
PD spreads Regions across TiKV nodes on its own. We plan keys and capacity so that new nodes add throughput.
- AUTO_RANDOM or SHARD_ROW_ID_BITS for busy tables
- Scale-out with TiUP or TiDB Operator
- TiKV, TiFlash, and PD capacity planning
Disaster recovery and backup
We set up Backup and Restore (BR) snapshots and log backup, and test point-in-time restores before you need them.
- Backups to Amazon S3, GCS, or Azure Blob Storage
- Restores rehearsed on an empty cluster
- TiCDC replication to a standby cluster
Incident support
A critical (P1) page, answered within 15 mins
JusDB keeps your recovery procedures (runbooks) written down, so an incident starts from a known plan instead of a blank page.
SLA response times
Production database down, primary unreachable, data corruption risk, or active failover event.
Severe latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.
Non-critical slow query regression, staging issue, backup warning, configuration question, or planned operational request.
Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.
Response means an on-call engineer is working the incident, not an automated reply.
What happens on a P1 page
Page
You page the on-call engineer
Through the escalation path your service agreement names.
Triage
Root cause from TiDB Dashboard, Grafana, and the slow query log
Hot Regions, slow statements, lock waits, and PD scheduling traced to the table, query, or node behind them.
Mitigate
Stabilize first, from the runbook
Split a hot Region, kill the runaway query, or move Raft leaders off a failing TiKV node, then fix the cause once production is steady.
After
A review after every P1
What happened, why, and the change that stops it happening again.
Before and between incidents
- Your setup, written down firstDuring onboarding we record your versions, topology, placement labels, TiFlash replicas, changefeeds, and backups, so incidents start with context.
- One escalation path, in writingYour service agreement names how to reach the on-call engineer and which clusters are covered.
- Reviews between incidentsWe review hot Regions, slow queries, capacity, TiCDC lag, and backups, then report open risks with next steps.
- Version dates trackedWe track PingCAP's support dates for the TiDB versions you run and plan each upgrade before support ends.
Process
How a TiDB engagement runs, step by step
Written findings come before any change. Your team approves production changes, except routine actions you have pre-approved.
Scoping call
Your clusters, versions, platforms, and what you need covered.
Read-only review under NDA
Our engineers use named accounts with only the permissions the review needs. We read your topology, configuration, slow query log, TiDB Dashboard, Grafana, and Region distribution from PD.
A written report before any change
Each finding comes with the change we propose, how we will measure it, and a way to undo it (a rollback plan).
Changes, then handover
We rehearse risky changes on a copy, apply them in the windows you approve, measure them against the baseline, and hand over updated operating instructions (runbooks).
Step one is a 30-minute scoping call.
Book a 30-min scoping call (opens Google Calendar in a new tab)Ways to work
Choose the TiDB service your team needs
Start with the responsibility you need covered. Each engagement has its own scope, deliverables, access requirements, and acceptance criteria.
Projects
Scoped TiDB projects
A defined piece of work with written findings, hands-on changes, and validation against your baseline.
- TiDB consultingArchitecture, HTAP design, MySQL compatibility, and TiDB Cloud decisions, scoped as one project.
- TiDB on KubernetesTiDB Operator, storage, PD and TiKV placement, and rolling upgrades.
- Migration from MySQLMoves from MySQL, Amazon RDS, or Aurora with DM and a rollback plan.
- TiDB high availabilityReplicas across zones, PD quorum, placement rules, a TiCDC standby, and failover drills.
- Backup and disaster recoveryBR snapshots, log backup, and restore drills on a spare cluster.
Ongoing
Ongoing coverage and support
JusDB monitors the databases, carries out the agreed maintenance, and responds to incidents 24/7. The team keeps a change record, recovery procedures, and a review after every P1.
Where your TiDB runs, and the tools around it
Your team and ours
What a managed TiDB service still leaves to your team
Managed cloud databases automate much of the infrastructure layer, but your team still owns query performance, capacity, cost, and incident decisions.
| Question | TiDB Cloud | Your own servers or Kubernetes |
|---|---|---|
| Backups and restores | Automatic on every plan, and a restore creates a new cluster or instance. Starter has no point-in-time restore, and Dedicated needs it turned on. Testing restores is still your job. | Your team runs BR snapshot and log backups. A full-cluster point-in-time restore needs an empty cluster. |
| Failover | Raft elects new leaders. Dedicated and Premium spread nodes across zones, while Starter, and Essential in most regions, run in one zone. Your application still has to reconnect. | The same Raft failover, but your team sets the placement labels that keep replicas in separate zones. |
| Hotspots, slow queries, and schema design | Yours. The provider runs the platform, not your keys or queries. | Yours. |
| Versions and upgrades | Upgrades by support request. TiDB Cloud also upgrades versions it considers too old, with email notice. | Your calendar, and TiDB cannot be downgraded after an upgrade. |
| Moving off later | Changefeeds stream changes to MySQL or Kafka on Dedicated, Premium, and BYOC, and on Essential by request. Starter has none, so leaving it means an export. | Dumpling exports, BR backups, and TiCDC replication to MySQL or another cluster. |
Your team keeps control
- Set business priorities, application requirements, and release plans
- Approve production changes, except routine actions you have pre-approved
- Own your cloud accounts, access policies, and vendor relationships
- Decide when maintenance can happen and how quickly service must recover
- Move the work in-house or to another provider after your agreement's notice period, with your data returned or deleted and the transition help your agreement sets out (Terms, section 8)
JusDB handles the agreed database work
- Monitor database health, investigate alerts, and involve the right people
- Review query performance, replication, capacity, and backup health
- Carry out approved changes and update the operating instructions they affect
- Report completed work, open risks, and recommended next steps
Weighing TiDB Cloud against running TiDB yourself? We compare both against your workload on a scoping call.
Book a 30-min scoping call (opens Google Calendar in a new tab)Further reading
TiDB guides and a comparison
Our blog on TiDB architecture, writes, Raft, schema changes, and sharding, plus a distributed SQL comparison.
Guide
TiDB explained: distributed SQL and HTAP
The three layers, transactions, scaling, and which MySQL features work.
Guide
Raft replication in TiDB
Leader election, log replication, Region splits, and how Raft differs from MySQL replication.
Guide
Online DDL in TiDB
Schema changes without table locks, watching DDL jobs, and speeding up ADD INDEX.
Guide
Partitioning and sharding
Partitioning in one database against sharding across servers, and choosing a shard key.
Comparison
CockroachDB vs YugabyteDB
Two other distributed SQL databases, compared on architecture, licensing, and multi-region tables.
FAQ
Common TiDB questions
What buyers ask about TiDB, MySQL compatibility, scaling, HTAP, and migrations.
Still have a question?
Ask it on a scoping call. No production access needed.
Book a 30-min scoping call (opens Google Calendar in a new tab)What is TiDB and who is it for?
TiDB is an open-source distributed SQL database from PingCAP, and JusDB supports it for teams whose MySQL workload has outgrown one server or a hand-built sharding layer. It speaks the MySQL protocol, keeps ACID transactions across nodes, and can serve analytics from columnar TiFlash replicas (HTAP).
Is TiDB compatible with MySQL?
TiDB supports the MySQL protocol, common syntax, and client drivers, and JusDB checks the gaps before any migration. TiDB does not support stored procedures, triggers, events, user-defined functions, or SPATIAL types. FULLTEXT indexes work only on TiDB Cloud Starter in some AWS regions. Foreign keys are enforced from v6.6.0 and generally available from v8.5.0.
How does TiDB scale horizontally?
JusDB scales TiDB by adding nodes where capacity is short: TiDB servers for SQL, TiKV for storage, and TiFlash for analytics. TiKV splits data into Regions (256 MiB by default from v8.4.0) with three Raft replicas each by default, and PD moves them onto new nodes. That helps only when writes spread, so we check keys for hotspots first.
How does TiDB prevent analytical queries from impacting transactional performance?
JusDB separates the two with TiFlash: columnar replicas of chosen tables on separate nodes, replicated from TiKV asynchronously as Raft learners. The optimizer or tidb_isolation_read_engines sends large scans there, and those reads stay consistent with TiKV. The isolation is partial: replication costs TiKV some work, and TiDB servers are shared unless analytics use their own.
How do you migrate from AWS RDS or Aurora MySQL to TiDB?
JusDB moves Amazon RDS or Aurora MySQL to TiDB with TiDB Data Migration (DM): a full copy, then continuous replication from the binary log. DM support for MySQL 8.4 sources is experimental, so we test it on a copy first. Before the move, we rework what TiDB cannot run, such as triggers, and keys that would cause write hotspots. Once replication catches up, we check data with sync-diff-inspector and switch in a rehearsed, pre-agreed window, with TiCDC replicating back to MySQL as a rollback path.
Next step
Talk to a TiDB engineer about your databases
Tell us what is slow, fragile, or due to change. The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance, subject to availability: mutual NDA before read-only access, a prioritized report within one week after access is ready, and no obligation.
NDA before access, read-only by default, and written scope first
Compare with other databases
If you are weighing alternatives, these are the databases most often compared with this one.
MySQL
TiDB speaks the MySQL protocol, so most evaluations start from MySQL: what moves as it is, and which queries need changes.
PostgreSQL
The comparison when a change of SQL dialect and protocol is acceptable. PostgreSQL brings JSONB indexing and a wide range of extensions.
MongoDB
Sharded document storage is the older alternative to distributed SQL, worth comparing when documents fit your data better than tables.
ScyllaDB
For write-heavy workloads that fit a wide-column model and CQL, ScyllaDB's shard-per-core design is a common comparison.