Free audit

View Audit Scope
TiDB Remote DBAOngoing operations, BR backups & incident response

TiDB Remote DBA & Managed Support Services

JusDB provides TiDB remote DBA and managed operations for production clusters on TiUP bare metal, cloud VMs, Kubernetes (TiDB Operator), and TiDB Cloud. Senior database engineers monitor TiDB, TiKV, Placement Driver (PD), TiFlash, and TiCDC health, remediate hot Regions and RocksDB compaction stalls, verify BR S3 backups, and respond to production incidents under your service agreement.

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.

  • NDA before access
  • Read-only by default
  • Written scope before work starts

TiDB Remote DBA operations

Select an operational track

TiDB 8.5 LTS routine operations, Resource Control, and BR PITR

Active LTS care

Continuous health monitoring across TiDB, TiKV, PD, and TiFlash with automated BR log backup verification and SQL Plan Binding maintenance.

See what Remote DBA includes

Operational standards aligned with PingCAP TiDB production guidelines.

Platforms supported
TiUP on bare metal and cloud VMs (AWS, GCP, Azure), TiDB Operator on Kubernetes, and TiDB Cloud Dedicated
Initial-response targets
15 minutes for a critical (P1) incident under a 24x7 support agreement; 2 to 4 hours in business hours. See details
Coverage hours
Business hours (03:30–12:30 UTC) by default; 24x7 on-call available under a 24x7 support agreement

Selected clients

  • Innoviti
  • Blitz
  • Freecharge
  • Nango
  • Recochain
  • Screen Facts
  • Nexora
  • WeCredit

When teams call us

Day-2 TiDB operational issues our Remote DBAs resolve

Running distributed SQL in production means managing Raft leader balance, RocksDB compactions, MVCC garbage collection safepoints, and online DDL metadata locks.

Common TiDB day-2 operational symptoms and how JusDB Remote DBAs resolve them
SymptomWhat is usually happeningWhere we start
SERVER_IS_BUSY_9002Checkout or API writes fail intermittently with TiKV Server Is BusyRaftstore or Apply thread pools are saturated by a hot Region, or RocksDB compaction write stalls pause incoming Raft proposals.Inspect PD Key Visualizer and TiKV scheduler-latch/write-stall metrics, scatter hot Region Leaders, and tune RocksDB background compaction threads.
SQL_PLAN_REGRESSIONA core OLTP query jumps from 5ms to 4s after nocturnal auto-analyzeUpdated column histograms caused the CBO to switch from a point index lookup to a full table or IndexMerge scan.Compare historical plans in INFORMATION_SCHEMA.STATEMENTS_SUMMARY_HISTORY and pin the optimal index path with CREATE GLOBAL BINDING.
GC_SAFEPOINT_BLOCKEDTiKV disk usage climbs steadily and MVCC version scans slow down readsA stalled TiCDC changefeed or abandoned BR backup service safe point prevents TiDB GC worker from purging obsolete MVCC versions.Check mysql.tidb and pd-ctl service-gc-safepoint, clear orphaned changefeed barriers, and tune tidb_gc_life_time and tidb_gc_concurrency.
TIKV_STORE_DOWN_EVICTHardware failure on one NVMe host triggers a 20-minute latency spikeUnfenced node degradation causes Raft Leader elections to time out before max-store-down-time (default 30m) triggers replica replacement.Use pd-ctl scheduler add evict-leader-scheduler to drain Raft Leaders cleanly before maintenance or isolate degraded NVMe stores immediately.
OOM_EXPENSIVE_QUERYA single runaway join restarts a TiDB SQL server pod or processUnbounded session memory (tidb_mem_quota_query) allows an ad-hoc query to exhaust TiDB server RAM before the OOM action cancels it.Set tidb_mem_quota_query and tidb_mem_oom_action = 'CANCEL', enable TiDB tmp-storage spill, and route heavy scans to TiFlash.
ONLINE_DDL_MDL_WAITAdding an index or modifying a column blocks concurrent DML commitsA long-running transaction holds a metadata lock (MDL) during the DDL state transition, queuing subsequent statements on the table.Query mysql.tidb_mdl_view to identify the blocking session_id, kill the idle transaction, and tune tidb_ddl_reorg_worker_cnt for safe backfill speed.

Response targets and escalation

How fast does JusDB respond to a TiDB incident?

Initial-response targets are 2 to 4 hours during covered business hours, Mon–Fri 09:00–18:00 IST (UTC+5:30). Where your service agreement includes 24x7 on-call, the initial-response target for P1 incidents is 15 minutes. Targets are not resolution guarantees. Standard business hours run 03:30–12:30 UTC.

Published initial-response targets by severity

  • 2 to 4 hours

    Business hours

    During covered business hours

  • 15 minutes

    24x7 on-call

    P1 incidents

SeverityInitial responseDefinitionChannel & coverage
P1 · Critical15 minutesProduction database down, primary unreachable, data corruption risk, or active failover event.24x7 on-call (under your service agreement) · Direct PagerDuty, Opsgenie, or phone page plus incident bridge
P2 · High30 minutesSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.24x7 on-call (under your service agreement) · On-call alert plus shared Slack or Teams channel
P3 · Medium60 minutesNon-critical slow query regression, staging issue, backup warning, or replication check alert.24x7 on-call (under your service agreement) · Shared Slack or Teams channel or support ticket
P4 · Low90 minutesConfiguration question, index advisory, planned schema review, or general operational request.24x7 on-call (under your service agreement) · Shared Slack or Teams channel or support ticket

Our engineering team is in India; business-hours coverage is Mon–Fri 09:00–18:00 IST (UTC+5:30), and 24x7 on-call is available under your service agreement.

Initial-response targets, not resolution guarantees. The target for your engagement is set in your service agreement.

What happens when a P1 TiDB incident pages

  1. Page

    An alert or your team pages the on-call TiDB engineer

    Routed directly under your service agreement with zero tier-1 delay.

  2. Triage

    Read-only diagnosis via TiDB Dashboard, PD, and TiKV metrics

    Isolate hot Regions, MDL locks, GC safepoint stalls, or plan flips.

  3. Mitigate

    Stabilize production first, with your team's approval

    Bind SQL plans, scatter hot Leaders, cancel runaway queries, or evict degraded stores.

  4. Review

    Written post-incident review after every P1

    Timeline, root-cause telemetry, and the permanent schema or config fix.

Scope of Remote DBA

What does a TiDB Remote DBA agreement cover?

A Remote DBA agreement covers incident response, 24x7 Prometheus telemetry monitoring where contracted, online DDL governance, weekly slow-query reviews, BR S3 backup verification, and rolling upgrades.

  • Incident response & on-call escalation

    Direct escalation to senior TiDB engineers when P1 outages, TiKV write stalls, PD quorum alerts, or replication failures strike.

    • Within 15 minutes initial response for P1 incidents under a 24x7 support agreement
    • Within 1 hour initial response for P1 incidents in covered business hours

    PagerDuty · Slack Bridge · TiDB Dashboard · pd-ctl

  • 24x7 Prometheus & Grafana telemetry care

    Continuous monitoring of the metrics that predict TiDB outages hours before user queries fail, available under your service agreement.

    • Tracking Raftstore CPU, RocksDB L0 file counts, TSO wait time, and GC safepoints
    • Alert tuning to eliminate noisy false positives while catching real saturation

    Prometheus · Grafana · Key Visualizer · NgMonitoring

  • Online DDL, schema & hotspot governance

    We review schema migrations, manage Reorg backfill concurrency, and monitor metadata locks so schema changes never stall production.

    • Pre-flight review for AUTO_RANDOM, SHARD_ROW_ID_BITS, and partition keys
    • Live monitoring of ADMIN SHOW DDL JOBS and mysql.tidb_mdl_view

    ADMIN SHOW DDL JOBS · tidb_mdl_view · Reorg Workers

    Explore TiDB consulting services
  • Weekly slow-query & Plan Binding reviews

    Every week we audit top digests in STATEMENTS_SUMMARY, lock stable plans with Global Bindings, and tune CBO statistics collection.

    • Proactive detection of plan flips and Coprocessor scan regressions
    • Resource Control group (Request Unit) calibration between OLTP and TiFlash

    STATEMENTS_SUMMARY · Global Plan Binding · Resource Control

  • BR S3 snapshots, PITR & restore drills

    An untested backup is not a recovery plan. We manage scheduled TiDB Backup & Restore (BR) full snapshots and log backups to S3/GCS.

    • Point-in-Time Recovery (PITR) log backup lag and GC safepoint verification
    • Scheduled restore drills to staging clusters with documented RTO and RPO

    tiup br · BR Log Backup · S3 / GCS / Azure Blob · PITR

  • Rolling LTS upgrades & capacity planning

    We plan and execute rolling minor patches and LTS version upgrades across TiUP and Kubernetes TiDB Operator clusters.

    • Leader eviction before TiKV node restarts for zero-drop maintenance
    • Quarterly storage, IOPS, and Region count capacity forecasting

    tiup cluster upgrade · TiDB Operator · evict-leader-scheduler

    Explore TiDB on Kubernetes

Failover and written evidence

How PD and TiKV handle maintenance and AZ failovers

Understanding how Placement Driver (PD) schedules Raft Leaders across availability zones is the difference between a zero-drop rolling patch and a 30-second transaction stall.

Three TiKV Raft quorum and failover states

Choose a state to see how Raft Voters, PD schedulers, and client queries behave.

Application and TiDB SQL routing

App -> Load Balancer -> TiDB SQL -> Region Leader on tikv-az1-01 (2/3 Raft quorum)

Normal operations
  • AZ-a: TiKV Voter (Leader)

    tikv-az1-01 (Region 402 Leader)

    Commits Raft log with 1 peer ACK

  • AZ-b: TiKV Voter (Follower)

    tikv-az2-01 (Region 402 Follower)

    Synchronous Raft quorum participant

  • AZ-c: TiKV Voter + TiFlash Learner

    tikv-az3-01 + tiflash-az3-01

    3rd Raft Voter + async columnar Learner

PD location-labels (zone, rack, host) place the 3 Raft Voters for every 96 MB Region across 3 separate availability zones. TiDB routes writes to the local Region Leader.

Example written finding from a weekly Remote DBA query & MDL reviewSample deliverable

Finding

Global SQL Plan Binding resolves nocturnal CBO index flip on orders lookup

After background ANALYZE TABLE ran at 02:00 UTC, a skewed status = 'PENDING' predicate caused TiDB to pick idx_status instead of idx_merchant_created, scanning 1.8 million MVCC versions per call. Creating a Global Binding pinned p99 latency at 4.1ms permanently.

Query p99 latency2.7s → 4.1ms
TiKV Coprocessor CPU86% → 18%

1. Read-only check detecting multiple plans for the same SQL digest

SELECT DIGEST, PLAN_DIGEST, EXEC_COUNT,
       ROUND(AVG_LATENCY / 1000000, 2) AS avg_ms,
       SUM_KEYS_EXAMINED / EXEC_COUNT AS avg_keys
FROM INFORMATION_SCHEMA.STATEMENTS_SUMMARY
WHERE DIGEST = 'a94f82c1e03b...'
ORDER BY avg_ms DESC;

2. Pin the optimal composite index across all TiDB nodes

CREATE GLOBAL BINDING FOR
  SELECT id, total_cents FROM core.orders
  WHERE merchant_id = ? AND status = ?
  ORDER BY created_at DESC LIMIT 50
USING
  SELECT /*+ USE_INDEX(orders, idx_merchant_created) */
  id, total_cents FROM core.orders
  WHERE merchant_id = ? AND status = ?
  ORDER BY created_at DESC LIMIT 50;

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.

Who handles each part of day-to-day TiDB operations on TiDB Cloud versus self-managed servers
AreaManaged cloud (TiDB Cloud Dedicated)Your own VMs, bare metal (TiUP), or Kubernetes
24x7 cluster health monitoring and incident triageTiDB Cloud monitors underlying VMs, but slow queries, hot regions, and application lock contention still page your engineering team.JusDB monitors TiDB, TiKV, PD, TiFlash, and TiCDC and responds under your service agreement.
Online schema changes, MDL lock waits, and DDL safetyYour developers run DDL statements directly; metadata lock stalls or slow Reorg backfills remain your team's responsibility.JusDB reviews DDL, tunes tidb_ddl_reorg_worker_cnt, and clears blocking MDL sessions.
Weekly query optimization and Global Plan BindingsCloud consoles display slow queries, but creating bindings and rewriting inefficient SQL is left to your engineers.JusDB conducts weekly Statement Summary audits and maintains Global SQL Plan Bindings.
Backup & Restore (BR) S3 schedules and restore testingAutomated snapshots are included in cloud tiers, though cross-account restore drills must be run by your team.JusDB manages full + PITR log backups via BR to S3/GCS and executes scheduled restore verification drills.
Rolling LTS version upgrades and leader evictionMaintenance windows are scheduled by the cloud vendor.JusDB executes pre-flight plan checks, PD leader eviction, and rolling TiUP or TiDB Operator upgrades.

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 Remote DBA 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

Where we operate TiDB clusters

Compare options

How JusDB TiDB Remote DBA compares with vendor tickets and full-time hiring

Compare an agreed JusDB Remote DBA scope against vendor support ticketing alone or recruiting a full-time distributed-SQL DBA team.

How JusDB TiDB Services compare to alternative options.

Deploying TiDB for mission-critical HTAP eliminates MySQL sharding, but demands precision management of TiKV Raft consensus, TiFlash MPP execution, and Placement Driver scheduling. Here is how JusDB compares to managed cloud tiers, generic MSPs, and internal teams.

Engineering Dimension
JusDB TiDB SRE
TiDB Cloud ManagedGeneric MSPsIn-House Devs
Distributed Region Key Partitioning & Hotspot EliminationSHARD_ROW_ID_BITS, PRE_SPLIT_REGIONS, and AUTO_RANDOM key distribution preventing monotonic write bottlenecksDashboard exposes hotspot graphs; customer is responsible for redesigning DDL schemas and partition logicTreats TiDB as standard MySQL; unaware of distributed Region key ranges and Raft leader write hotspotsSequential auto-increment IDs route 100% of write traffic to a single TiKV node, crushing ingestion throughput
HTAP Isolation: TiKV OLTP vs TiFlash MPP OLAPStrict read-engine isolation (tidb_isolation_read_engines), SPM plan baselines, and TiFlash replica replication lag monitoringTiFlash node creation available in UI; no automated protection against analytical queries spilling into TiKV row enginesDoes not configure TiFlash columnar storage; analytical queries cause lock and CPU contention on transactional nodesHeavy reporting queries run against TiKV row engine, causing p99 transaction latencies to spike into multi-seconds
Placement Driver (PD) Scheduling & Region HealthAutomated empty-region merging, PD leader TSO latency optimization, and cross-datacenter placement rulesStandard PD scheduling presets; region fragmentation accumulates over time on high-drop tablesLacks understanding of PD Raft state machine and consensus scheduling internalsMillions of unmerged 1MB regions overload PD memory, degrading cluster-wide metadata operations
Incident Response & EscalationDirect Slack/Teams incident bridge to named TiDB engineers. Initial-response targets: 2 to 4 hours in covered business hours; 15 minutes for P1 incidents with 24x7 on-call. Targets, not resolution guarantees.Multi-tiered support queue; requires enterprise tier for 1-hour P1 response with generic cloud engineersOffshore ticket dispatcher with no training in distributed consensus protocols or TiKV storage enginesEngineers struggling to debug complex distributed execution plan anomalies during production outages
MySQL Compatibility & Low-Downtime Live MigrationTiDB Data Migration (DM) pipelines with incremental binlog replication, schema compatibility audits, and a short, rehearsed cutoverBasic import utilities available, but requires manual configuration of DM workers and filter rulesAttempts logical dump and restore with mysqldump, resulting in multi-hour maintenance downtime windowsMigration stalled by unsupported MySQL features (stored procedures, foreign keys) without automated workarounds
Backup, Point-In-Time Recovery (PITR) & FinOpsPhysical distributed backups via BR (Backup & Restore), S3/GCS immutable snapshots, and continuous log backup verificationCloud snapshots provided with steep backup storage retention fees and limited restore granularityRelies on standard file-level or VM backups that cannot guarantee distributed transactional consistencyUnverified backups that fail recovery drills due to mismatched Raft log snapshots across TiKV nodes

For procurement and security

NDA first, read-only by default, and written scope

We work alongside your engineering and infrastructure teams. Your team approves production changes and keeps every runbook and post-incident report.Raguraman, Engineering Manager · Allen D, Lead Database SRE
  • Mutual NDA
  • Written statement of work
  • Named engineers
  • Least-privilege access
  • NDA before access

    Signed before any diagnostic access. The scoping call needs no database credentials.

  • Written agreement

    Covered TiDB clusters, hours, response targets, and fees agreed in writing before onboarding.

  • Least-privilege accounts

    Named read-only accounts by default, through your bastion or VPN, with session logging.

  • Runbooks you keep

    Every recovery procedure, finding, and configuration note stays with your team. Meet the JusDB team.

JusDB's security practices are aligned with ISO 27001 and SOC 2 Type II, and JusDB is pursuing both certifications (see Terms, section 12). Read the stated status.

FAQ

Common TiDB Remote DBA and support questions

Answers on response targets, zero-drop rolling upgrades, MVCC GC safepoints, Global SQL Plan Bindings, and BR S3 backups.

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 the difference between TiDB Remote DBA and TiDB consulting?

TiDB consulting is a project-based engagement focused on a specific goal, such as a schema redesign, hotspot remediation, or a migration. TiDB Remote DBA is an ongoing operational partnership where JusDB engineers monitor your clusters week to week, verify BR backups, review slow queries, execute rolling upgrades, and respond to incidents under your service agreement.

How fast does JusDB respond to a P1 TiDB production outage?

Initial-response targets are 2 to 4 hours during covered business hours, Mon–Fri 09:00–18:00 IST (UTC+5:30). Where your service agreement includes 24x7 on-call, the initial-response target for P1 incidents is 15 minutes. Targets are not resolution guarantees. Where your service agreement includes 24x7 on-call, the initial-response target for P2 high-severity issues is 30 minutes.

How do you perform TiDB version upgrades without dropping application traffic?

Before restarting any TiKV node during an upgrade or OS patch, we use pd-ctl to add an evict-leader-scheduler for that store so Placement Driver gracefully transfers all Raft Region Leaders to peer nodes. For stateless TiDB SQL nodes, we drain active connections behind your load balancer or Kubernetes Service before rolling the pod.

Why does TiKV disk usage keep growing even after we delete rows?

TiDB uses Multi-Version Concurrency Control (MVCC); DELETE and UPDATE operations write new key versions rather than erasing disk blocks immediately. Disk space is reclaimed only after the TiDB GC worker advances the GC safepoint and RocksDB compacts the tombstones. If a stalled TiCDC changefeed or long-running transaction holds back the GC safepoint, we clear the blocker and trigger targeted RocksDB compaction.

How do you prevent sudden SQL plan regressions in production TiDB?

When background auto-analyze updates table histograms, the Cost-Based Optimizer can occasionally flip a critical query to a slower index. As part of Remote DBA operations, we monitor STATEMENT_SUMMARY_HISTORY and pin proven execution plans using CREATE GLOBAL BINDING so they survive statistics updates and server restarts.

How do you back up and test recovery for multi-terabyte TiDB clusters?

Logical dumps (mysqldump) cannot scale to multi-terabyte distributed clusters. We use TiDB Backup & Restore (BR), which instructs every TiKV node to upload SST files and continuous KV change logs directly to S3, GCS, or Azure Blob Storage in parallel. We regularly test restoring snapshots into an isolated staging environment.

Can JusDB manage our TiDB clusters on TiDB Cloud as well as self-hosted TiUP or Kubernetes?

Yes. For self-hosted TiUP and Kubernetes (TiDB Operator) clusters, we manage the full stack from OS/container settings and PD quorums to SQL. For teams on TiDB Cloud Dedicated, we act as your dedicated DBA team, handling schema governance, hotspot fixes, SQL Plan Bindings, TiCDC changefeeds, and cloud cost optimization.

How do we onboard our TiDB cluster to JusDB Remote DBA?

Onboarding starts with a mutual NDA, a 30-minute scoping call, and a read-only baseline health audit of your TiDB, TiKV, PD, TiFlash, and backup configurations. We then wire alerting into our on-call rotation and deliver a written remediation roadmap for any immediate risks.

TiDB playbooks and guides

TiDB architecture, migration, and distributed SQL guides

Practical operational guides from our engineering blog and related TiDB service pages.

Next step

Talk to a TiDB engineer about your clusters

Tell us which TiDB versions and platforms you run and what coverage hours you need. 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 · written scope first

Related TiDB Services

Explore more ways our TiDB experts can help with your database infrastructure.