Free audit

View Audit Scope
MySQLCloud-native operators and StatefulSets

Cloud-Native MySQL on Kubernetes & Operator Engineering

JusDB designs and operates production MySQL on Kubernetes using the Percona Operator for MySQL (XtraDB Cluster and Group Replication), the Oracle MySQL Operator for InnoDB Cluster, and Vitess. Our database engineers configure StatefulSet storage classes, PodDisruptionBudgets, ProxySQL or MySQL Router routing, and S3 or GCS XtraBackup point-in-time recovery.

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

Kubernetes MySQL operators

Select an operator architecture

Percona Operator for MySQL (PXC / Galera)

Sync multi-node HA

Runs Percona XtraDB Cluster with Galera wsrep certification, ProxySQL or HAProxy routing, PMM telemetry sidecars, and scheduled S3 or GCS XtraBackup jobs.

Best when your Kubernetes cluster needs synchronous commit certification, built-in ProxySQL pooling, and physical XtraBackup point-in-time recovery.

Compare MySQL HA topologies

Evaluated across Amazon EKS, Google GKE, Azure AKS, and on-premises Kubernetes clusters running MySQL 8.0 and 8.4 LTS.

Operators & topologies
Percona Operator (PXC / Galera & Group Replication), Oracle MySQL Operator (InnoDB Cluster), and Vitess
Storage & scheduling
TopoLVM local NVMe, EBS io2/gp3, GCP PD-SSD, Ceph Rook, PodDisruptionBudget, and multi-AZ anti-affinity
Response SLA
15 mins for a critical (P1) incident, 24/7. See details

Selected clients

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

When teams call us

Common MySQL on Kubernetes failure modes we fix

Running stateful MySQL inside Kubernetes introduces failure modes that standard stateless pod deployments never encounter: quorum loss during node drains, stuck CSI volume attachments, cgroup OOMKills, and router split-brain.

Common MySQL on Kubernetes production symptoms, what is usually happening, and where JusDB database engineers start
SymptomWhat is usually happeningWhere we start
Quorum lost on drainCluster autoscaler or node upgrade stalls writes across the clusterA Kubernetes node drain or Karpenter consolidation evicts two MySQL StatefulSet pods before Group Replication or Galera finishes resyncing, dropping the cluster below majority quorum.Inspect PodDisruptionBudget status, podAntiAffinity topologySpreadConstraints, and performance_schema.replication_group_members, then enforce maxUnavailable: 1 and preStop step-down hooks.
Multi-Attach errorReplacement MySQL pod hangs in ContainerCreating after node failureCloud CSI drivers (AWS EBS, GCP Persistent Disk, or Azure Disk) hold a stale VolumeAttachment on a terminated worker node, blocking the PVC from mounting on the rescheduled pod.Check kubectl get volumeattachment and CSI controller logs, clear the stuck attachment safely, and evaluate TopoLVM local NVMe or tuned node-fencing timeouts.
OOMKilled (Exit 137)Linux cgroup killer terminates mysqld during traffic spikes or backupsinnodb_buffer_pool_size plus per-connection buffers, Performance Schema memory, and sidecar XtraBackup streams exceed the pod memory limit in the Custom Resource.Query sys.memory_global_by_current_bytes, size innodb_buffer_pool_size to 60-65% of container memory, isolate XtraBackup sidecar resources, and set pod requests equal to limits.
Router split-brainApplications receive ERROR 1290 (super_read_only) after primary switchoverCNI network jitter or a slow readinessProbe causes Kubernetes Service endpoints, ProxySQL, or MySQL Router to keep sending writes to a demoted pod or stale DNS entry.Audit ProxySQL mysql_replication_hostgroups or MySQL Router metadata TTLs, tighten readiness probe thresholds, and verify super_read_only fencing on demotion.
fsync IOPS ceilingRedo log and binary log commits stall on network-attached PVCsDefault gp3 or pd-balanced StorageClasses throttle fsync throughput when sync_binlog=1 and innodb_flush_log_at_trx_commit=1 run on a shared PersistentVolume.Measure file I/O latency in performance_schema.file_summary_by_event_name, separate datadir and binlog mounts, or move latency-sensitive clusters to local NVMe StorageClasses with XFS.
Backup cron gapScheduled S3 or GCS backup succeeds in kubectl but cannot restore to a point in timePhysical XtraBackup snapshots run without continuous binary log pitr collector uploads, or pod restarts interrupt binlog streaming between base backups.Inspect PerconaXtraDBClusterBackup or MySQLBackup CR status, verify binlog GTID continuity in S3 or GCS, and execute an automated restore drill into a staging namespace.

Technical scope

What does MySQL on Kubernetes engineering include?

We design, harden, and operate every layer between the Kubernetes control plane and the InnoDB storage engine so stateful MySQL clusters survive node upgrades, traffic spikes, and zone failures.

  • Operator selection and CRD architecture

    We match your workload and RPO/RTO requirements to the right Kubernetes operator rather than forcing every cluster onto one template.

    • Percona Operator (PXC / Galera or Group Replication) vs Oracle MySQL Operator vs Vitess
    • Production Custom Resource manifests with pinned requests-equal-to-limits memory bounds

    PerconaXtraDBCluster · PerconaServerMySQL · InnoDBCluster CRD · Helm

  • CSI storage classes and local NVMe tuning

    Stateful MySQL performance on Kubernetes depends on the StorageClass, filesystem mount options, and volume attach behavior beneath the pod.

    • Local NVMe (TopoLVM / OpenEBS) vs EBS gp3/io2, GCP Hyperdisk/PD-SSD, and Ceph Rook
    • XFS noatime mounts, separate redo/binlog volumes, and online PVC volume expansion

    StorageClass · TopoLVM · AWS EBS CSI · GCP PD CSI · XFS

    MySQL performance tuning
  • PodDisruptionBudgets and multi-AZ anti-affinity

    Cluster autoscalers, Karpenter node consolidation, and EKS/GKE/AKS node upgrades must never evict enough pods to break replication quorum.

    • Strict podAntiAffinity and topologySpreadConstraints across availability zones
    • PodDisruptionBudget (maxUnavailable: 1) paired with graceful preStop primary step-down hooks

    PodDisruptionBudget · topologySpreadConstraints · Karpenter do-not-disrupt

    MySQL high availability
  • ProxySQL and MySQL Router Kubernetes routing

    Application pods need stable read-write splitting, connection pooling, and fast primary discovery without waiting on Kubernetes DNS TTLs.

    • ProxySQL hostgroup monitoring or MySQL Router 8.4 read-write splitting on port 6450
    • HPA proxy scaling, connection multiplexing, and lag-aware read replica eviction

    ProxySQL · MySQL Router 8.4 · Headless Services · EndpointSlices

    MySQL Router consulting
  • Automated S3/GCS XtraBackup and PITR drills

    A Kubernetes backup Custom Resource is only trustworthy when base backups and streamed binary logs have been replayed into a clean pod.

    • Non-blocking Percona XtraBackup and MySQL Shell dumps streamed to S3, GCS, or Azure Blob
    • Continuous binary log archival and scheduled point-in-time recovery verification drills

    Percona XtraBackup · pitr binlog collector · Amazon S3 · GCS

  • GitOps rolling upgrades and PMM observability

    We wire your operator manifests into ArgoCD or Flux and monitor both Kubernetes cgroup metrics and internal InnoDB state.

    • Canary and rolling minor upgrades plus staged MySQL 8.0 to 8.4 LTS cutovers
    • PMM and Prometheus ServiceMonitors alerting on checkpoint age, HLL, and PVC saturation

    ArgoCD · Flux · Percona Monitoring and Management (PMM) · Prometheus

    MySQL 8.0 to 8.4 LTS upgrades

Shared responsibility on Kubernetes

What the Kubernetes Operator automates vs what JusDB engineers design

Installing a Helm chart gives you a running StatefulSet, not a tuned production database. Here is what the operator controller handles automatically versus what our database engineers design and verify.

Comparison of what a Kubernetes MySQL Operator automates versus what JusDB database engineers design and tune
Layer / ControlWhat the Kubernetes Operator automatesWhat JusDB database engineers must design
Pod lifecycle and StatefulSet reconciliationCreates StatefulSet pods (`mysql-0`, `mysql-1`, `mysql-2`), mounts PVCs, runs liveness/readiness probes, and restarts crashed containers.Sizes container memory limits against `innodb_buffer_pool_size` + thread buffers so Linux cgroups never OOMKill `mysqld` under peak concurrency.
Consensus quorum and node drain safetyBootstraps Galera (`wsrep`) or Group Replication (`XCom`) membership and rejoins a restarted pod via IST/SST or the MySQL Clone plugin.Enforces multi-AZ `podAntiAffinity`, `PodDisruptionBudget (maxUnavailable: 1)`, Karpenter disruption rules, and `preStop` primary step-down hooks.
Persistent storage and filesystem I/ORequests `volumeClaimTemplates` from the default Kubernetes `StorageClass` and attaches volumes to each StatefulSet ordinal.Architects local NVMe (`TopoLVM`) or high-IOPS `io2`/`pd-ssd` StorageClasses, XFS `noatime` mounts, and `innodb_io_capacity` matching real disk throughput.
Connection pooling and read-write splittingDeploys ProxySQL, HAProxy, or MySQL Router sidecars/deployments and exposes Kubernetes `ClusterIP` Services for writer and reader ports.Tunes connection multiplexing, `max_connections`, query digest rules, replica lag eviction thresholds, and `super_read_only` split-brain guards.
Backups and point-in-time recovery (PITR)Runs scheduled `PerconaXtraDBClusterBackup` or `MySQLBackup` cron jobs and uploads backup artifacts to an object storage bucket.Configures continuous binary log GTID streaming, KMS/AES-256 encryption, bucket lifecycle retention, and timed restore drills in an isolated namespace.
Version upgrades (8.0 EOL to 8.4 LTS)Rolls StatefulSet pods one ordinal at a time when the container image tag changes in the Custom Resource.Audits `mysql_native_password` accounts, removed variables, and query plan regressions with `util.checkForServerUpgrade()` before any image rollout.

SLA response times for Kubernetes MySQL operations

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins.

SeverityResponse SLADefinitionChannel & coverage
P1 · Critical15 minsProduction database down, primary unreachable, data corruption risk, or active failover event.24/7 · Direct PagerDuty, Opsgenie, or phone page plus incident bridge
P2 · High30 minsSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.24/7 · On-call alert plus shared Slack or Teams channel
P3 · Medium60 minsNon-critical slow query regression, staging issue, backup warning, configuration question, or planned operational request.24/7 · Shared Slack or Teams channel or support ticket

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.

Node drain and quorum recovery

How a Kubernetes node drain breaks or preserves MySQL quorum

In a 3-node Percona XtraDB Cluster or InnoDB Cluster StatefulSet, losing two pods at the same time drops consensus below majority and halts writes. Inspect how PodDisruptionBudgets and graceful step-down hooks keep the cluster online.

3-pod MySQL StatefulSet across 3 availability zones

Select a state to inspect pod placement, PVC status, and ProxySQL / MySQL Router routing.

ProxySQL / MySQL Router and Kubernetes Service

ProxySQL / MySQL Router sends writes to mysql-pxc-0 (az-a) and balances reads across mysql-pxc-1 (az-b) and mysql-pxc-2 (az-c).

Quorum 3/3 · RPO = 0
  • mysql-pxc-0 (az-a)

    Writer pod · Local NVMe / EBS PVC

    ONLINE · Primary (R/W)

  • mysql-pxc-1 (az-b)

    Sync member · Separate AZ node

    ONLINE · Certifying commits

  • mysql-pxc-2 (az-c)

    Sync member · Separate AZ node

    ONLINE · Certifying commits

All three StatefulSet pods run on dedicated Kubernetes worker nodes across three availability zones with matched CPU/memory requests and limits and active PITR binlog streaming.

How a MySQL on Kubernetes engagement runs

Step through the five engineering gates from cluster audit to GitOps handover.

5 steps
Cluster audit

Read-only review of K8s nodes, StorageClasses, and MySQL metrics.

Representative deliverable

Production Percona Operator CR, storage class, and PDB configuration

Every recommendation is delivered as a reviewable Kubernetes manifest and SQL diagnostic check, with an explicit rollback plan.

Example production finding from an EKS Percona Operator clusterSample deliverable

Finding

Karpenter node consolidation evicts two PXC pods and triggers OOMKills during nightly XtraBackup

A 3-node PerconaXtraDBCluster ran with soft preferredDuringScheduling anti-affinity, no PodDisruptionBudget, and an innodb_buffer_pool_size set to 85% of the pod memory limit. When nightly xtrabackup ran alongside a node drain, cgroup memory crossed 32Gi (Exit 137) and quorum stalled for 95 seconds.

Node-drain write stall95s → < 4s
Cgroup OOMKills (Exit 137)3/mo → 0

1. Read-only topology and memory verification

kubectl + SQL diagnostic

kubectl get pxc,pdb,pods -n mysql-prod -o wide
kubectl exec -n mysql-prod cluster1-pxc-0 -c pxc -- \
  mysql -e "SELECT MEMBER_HOST, MEMBER_STATE, MEMBER_ROLE FROM performance_schema.replication_group_members;"

2. Hardened PerconaXtraDBCluster CR (pinned memory bounds, AZ anti-affinity, PDB & S3 PITR)

pxc-production.yaml

apiVersion: pxc.percona.com/v1
kind: PerconaXtraDBCluster
metadata:
  name: mysql-prod
  namespace: mysql-prod
spec:
  pxc:
    size: 3
    configuration: |
      [mysqld]
      innodb_buffer_pool_size=20G
      innodb_redo_log_capacity=8G
      innodb_flush_method=O_DIRECT
      max_connections=800
    resources:
      requests: { memory: 32Gi, cpu: "8" }
      limits:   { memory: 32Gi, cpu: "8" }
    affinity:
      antiAffinityTopologyKey: "topology.kubernetes.io/zone"
    podDisruptionBudget:
      maxUnavailable: 1
    volumeSpec:
      persistentVolumeClaim:
        storageClassName: local-nvme-xfs
        resources:
          requests: { storage: 1Ti }
  backup:
    pitr:
      enabled: true
      storageName: s3-us-east-backups
      timeBetweenUploads: 10

3. Rollback command

Rollback via GitOps / kubectl

kubectl rollout undo statefulset/mysql-prod-pxc -n mysql-prod

Ways to work together

Choose the Kubernetes MySQL engagement that fits your team

Start with a free read-only audit of one cluster, a fixed-scope operator architecture or migration project, or ongoing remote DBA and 24/7 on-call coverage.

Scoped projectThis page

Architect, deploy, or migrate onto Kubernetes.

A fixed-scope engagement to deploy Percona or Oracle Operators, tune local NVMe or cloud CSI storage, rehearse node drains, and execute a low-downtime GTID cutover.

Deliverables agreed in writing before work starts

  • Operator CRDs & Helm
  • NVMe & CSI StorageClass
  • PDB & chaos drills
  • ProxySQL / Router
  • S3 PITR automation
Free audit

One Kubernetes MySQL cluster reviewed, free.

A read-only review of your Operator CRDs, StorageClasses, PodDisruptionBudgets, and InnoDB settings, with a prioritized report.

What we inspect on one cluster

  • Operator CRD memory limits vs InnoDB buffer pool
  • PodDisruptionBudget, anti-affinity, and CSI storage
  • S3/GCS XtraBackup and binary log PITR continuity
Ongoing operations

Embedded DBRE and 24/7 on-call.

Routine operator upgrades, schema changes, backup restore drills, and incident response. Support is 24/7.

  1. Page us24/7
  2. 15 minsP1 response SLA
  3. Reviewwritten P1 RCA

For procurement and security

NDA first, read-only by default, and GitOps manifests you keep

We work alongside your platform engineering and SRE teams. Your team approves production changes and keeps every Helm values file, Operator Custom Resource, and recovery runbook.Raguraman, Head of DBSRE · Allen D, Principal Engineer
  • Mutual NDA
  • Written statement of work
  • Named engineers
  • Least-privilege RBAC
  • NDA before access

    Signed before any diagnostic access. The scoping call needs no Kubernetes or MySQL credentials.

  • Written statement of work

    Deliverables, target clusters, acceptance criteria, and fees agreed in writing before work starts.

  • Scoped Kubernetes RBAC

    Namespace-scoped read-only accounts by default, through your bastion or VPN, with audit logging.

  • Manifests and runbooks you keep

    Every CRD manifest, Terraform/Helm module, and failover runbook stays in your repository. 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 MySQL on Kubernetes questions

Answers on Percona and Oracle Operators, PodDisruptionBudgets, CSI local NVMe vs cloud block storage, OOMKills, and S3 XtraBackup PITR.

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)

Should we use Percona Operator for MySQL, Oracle MySQL Operator, or Vitess on Kubernetes?

Use the Percona Operator for MySQL (XtraDB Cluster or Group Replication) when you want open-source multi-AZ high availability with integrated ProxySQL routing, PMM monitoring, and streaming S3 or GCS XtraBackup point-in-time recovery. Use the Oracle MySQL Operator when standardizing on official MySQL InnoDB Cluster with MySQL Shell AdminAPI and MySQL Router. Use Vitess only when your dataset or write throughput exceeds what a single primary with read replicas can handle and requires horizontal sharding.

How do you prevent Kubernetes node drains and autoscalers from breaking MySQL quorum?

We enforce three controls together: required podAntiAffinity and topologySpreadConstraints so no two MySQL pods share a worker node or availability zone, a PodDisruptionBudget with maxUnavailable set to 1 so Kubernetes cannot evict a second pod while any member is recovering, and preStop lifecycle hooks that step down the primary cleanly before kubelet terminates the container.

What Kubernetes StorageClass works best for production MySQL StatefulSets?

For latency-sensitive OLTP workloads, direct-attached local NVMe storage provisioned via TopoLVM or OpenEBS LocalPV with XFS (noatime) eliminates network storage jitter and cloud CSI attach/detach delays, relying on 3-node synchronous replication (Group Replication or Galera) plus S3 XtraBackup for durability. On managed cloud block storage, we use AWS EBS io2 or gp3 with dedicated IOPS, GCP Hyperdisk or pd-ssd, or Azure Premium SSD v2, and separate binary/redo log volumes where needed.

Why do MySQL pods get OOMKilled (Exit 137) on Kubernetes and how do you fix it?

Linux cgroups kill the mysqld process whenever total RSS memory (innodb_buffer_pool_size + per-thread sort/join/binlog buffers + Performance Schema + sidecar backup processes) crosses the pod memory limit. We set MySQL pod resource requests equal to limits, size innodb_buffer_pool_size to 60-65% of container memory, bound max_connections via ProxySQL or MySQL Router multiplexing, and isolate XtraBackup sidecar memory limits.

How do automated backups and point-in-time recovery (PITR) work for MySQL on Kubernetes?

We configure the operator's backup Custom Resource to stream hot physical Percona XtraBackup or MySQL Shell dumps directly to Amazon S3, Google Cloud Storage, or Azure Blob Storage alongside a continuous binary log collector pod that uploads GTID transactions every few seconds. We then schedule automated restore drills into an isolated Kubernetes namespace to measure actual RTO and verify RPO.

Can you migrate our database from Amazon RDS, Cloud SQL, or bare metal onto Kubernetes with minimal downtime?

Yes. We seed the Kubernetes MySQL cluster from a physical XtraBackup or logical mydumper snapshot, establish outbound or inbound GTID binary log replication from your current primary, verify row-level consistency with pt-table-checksum, and cut application traffic over through ProxySQL or MySQL Router while keeping reverse replication ready as a rollback gate.

What are your SLA response times if a Kubernetes MySQL cluster has a production incident?

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.

Next step

Run MySQL on Kubernetes with a tested recovery plan

Tell us which Kubernetes platform and MySQL operator you run or plan to deploy. 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