Free audit

View Audit Scope
JusDBK8ssandraOperator · Cass Operator · Reaper + Medusa · 3-AZ Racks

Production Cassandra on Kubernetes with K8ssandra, Reaper, and Medusa.

JusDB architects and operates production Apache Cassandra clusters on EKS, GKE, AKS, and OpenShift using K8ssandra and Cass Operator. We engineer 3-AZ rack-pinned K8ssandraCluster CRDs, WaitForFirstConsumer NVMe/SSD storage classes, Guaranteed QoS memory boundaries that prevent cgroup OOMKills, and declarative Reaper repair and Medusa backup pipelines.
The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free read-only K8ssandra & manifest audit.
  • NDA before access
  • Read-only by default
  • Written scope before work starts

k8ssandra_operator_control

K8ssandraOperator

Cass Operator + Reaper + Medusa reconciled

Declarative K8ssandraCluster & CassandraTask CRDs reconciled with rack-level safety gates.

Operator Stack
K8ssandra + CassOp
Integrated Cass Operator, Reaper repairs, and Medusa backups
Cgroup Safety
Guaranteed QoS Math
Sized for JVM heap, off-heap memtables, chunk cache, and page cache
Topology & Storage
3-AZ Zone-Pinned PVCs
WaitForFirstConsumer volumes and strict 1-pod-per-node anti-affinity
P1 response SLA (24/7)
15 mins
SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins

Selected clients

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

Kubernetes failure modes we solve

Six reasons Cassandra pods crash or lose quorum on Kubernetes.

Running Apache Cassandra on generic StatefulSets without off-heap cgroup headroom, zone-aware PVC binding, and operator drain hooks turns routine node upgrades into ring outages.

CGROUP_OOMKILL_137

Kubernetes OOMKills Cassandra pods (Exit Code 137) during heavy compactions or repairs

Why it happens
Container memory limits are set close to JVM -Xmx without budgeting 30-50% extra RAM for off-heap memtables, chunk cache, bloom filters, and direct Netty buffers.
How we architect K8ssandra
Enforce Guaranteed QoS (requests == limits) and size JVM heap at roughly 45-50% of the container limit so off-heap allocations and OS page cache never trip the cgroup OOMKiller.
ZONE_PVC_SCHEDULING_DEADLOCK

Replacement Cassandra pod hangs in Pending state after a worker node failure

Why it happens
StorageClass uses volumeBindingMode: Immediate or rack nodeAffinity conflicts with the Availability Zone where the PersistentVolume was provisioned.
How we architect K8ssandra
Configure StorageClasses with volumeBindingMode: WaitForFirstConsumer and map K8ssandra racks 1-to-1 to topology.kubernetes.io/zone labels.
CONCURRENT_KUBELET_DRAIN_OUTAGE

EKS/GKE node-group upgrades evict multiple Cassandra pods across racks, breaking LOCAL_QUORUM

Why it happens
Missing PodDisruptionBudgets or raw StatefulSets allow Karpenter/Cluster Autoscaler to terminate a second pod while the first is still rejoining gossip.
How we architect K8ssandra
Deploy via K8ssandra / Cass Operator with strict maxUnavailable=1 PodDisruptionBudgets and preStop lifecycle hooks that execute nodetool drain.
EBS_GP2_IOPS_THROTTLING

Compaction backlogs climb and p99 read latency spikes above 50 ms inside Kubernetes

Why it happens
Pods run on burstable networked EBS/PD storage with default 256 KB read-ahead and noisy-neighbor CPU contention.
How we architect K8ssandra
Pin Cassandra pods to dedicated NVMe worker nodes (or provisioned high-IOPS gp3/io2/pd-ssd volumes) with hard podAntiAffinity and tuned initContainer block settings.
POD_IP_CHANGE_GOSSIP_STALL

Rescheduled pod gets a new IP address and struggles to rejoin the Cassandra ring cleanly

Why it happens
Vanilla StatefulSet configs hardcode seed IPs or fail to reconcile host-ID replacement when pod network identities change.
How we architect K8ssandra
Use Cass Operator's dynamic seed-service discovery and automated replace-node reconciliation so rescheduled pods re-attach to their existing PVCs seamlessly.
MISSING_REAPER_MEDUSA_WIRING

Cassandra runs in Kubernetes, but anti-entropy repairs and S3 backups are still manual

Why it happens
Teams deploy a bare Cassandra container image without JMX authentication wiring for Reaper or sidecar init/restore containers for Medusa.
How we architect K8ssandra
Enable the integrated Reaper and Medusa specifications inside the K8ssandraCluster CRD with automated CassandraBackup schedules to S3/GCS.

Kubernetes engineering scope

Six workstreams for production K8ssandra deployments.

From initial CRD architecture and storage class design to VM-to-Kubernetes logical datacenter migrations and ongoing GitOps care.

01

K8ssandra & Cass Operator Architecture

Production design and deployment of K8ssandraOperator (v1.x) and Cass Operator custom resources for single-cluster and multi-cluster topologies.

  • Declarative K8ssandraCluster CRDs bundling Cass Operator, Reaper, Medusa, and telemetry
  • CassandraTask CRDs for controlled rolling restarts, cleanup, and upgradesstables
K8ssandraCluster · CassandraDatacenter · CassandraTask
02

PVC Storage Classes, Local NVMe & Cgroup Sizing

Eliminating container OOMKills and storage IOPS bottlenecks on EKS, GKE, AKS, and bare-metal OpenShift.

  • Guaranteed QoS memory math (JVM Heap + Off-Heap Memtables + Chunk Cache + OS Page Cache)
  • WaitForFirstConsumer CSI storage classes over local NVMe or high-IOPS cloud block storage
WaitForFirstConsumer · Guaranteed QoS · Local NVMe CSI
Cassandra performance tuning
03

3-AZ Rack Pinning & Safe Node Drain Automation

Aligning Kubernetes failure domains with Cassandra NetworkTopologyStrategy racks so node drains never break LOCAL_QUORUM.

  • Mapping spec.racks to topology.kubernetes.io/zone with strict podAntiAffinity
  • PodDisruptionBudgets (maxUnavailable: 1) and preStop nodetool drain hooks
spec.racks · PodDisruptionBudget · preStop drain
Cassandra high availability
04

Integrated Reaper Repairs & Medusa S3 Backups

Automating day-2 anti-entropy repair and differential SSTable backup/restore workflows natively via Kubernetes CRDs.

  • Automated Reaper sub-range repair registration and JMX secret management
  • Medusa sidecar configuration with scheduled CassandraBackup / CassandraRestore CRDs
Reaper · Medusa Sidecar · CassandraBackup CRD
Cassandra Remote DBA
05

Multi-Cluster Networking & Client Discovery

Configuring routable pod networking so CQL drivers and multi-datacenter K8ssandra rings communicate without NAT bottlenecks.

  • VPC-native CNI (AWS VPC CNI, GKE Dataplane V2 / Cilium) routable pod IP architecture
  • Multi-cluster K8ssandra control-plane federation across cloud regions
Cilium eBPF · Headless Seed Service · mTLS
06

GitOps, MCAC Telemetry & VM-to-K8s Migration

Wiring K8ssandra into ArgoCD/Flux, Prometheus ServiceMonitors, and live logical-DC migrations from legacy VM rings.

  • Metrics Collector for Apache Cassandra (MCAC) / Vector dashboards and Prometheus alerts
  • Online logical DC expansion from EC2/GCE VMs into K8ssandra pods
ArgoCD · ServiceMonitor · nodetool rebuild
Cassandra migration services

Shared responsibility & SLA response times

Managed Kubernetes control planes vs stateful Cassandra operations.

EKS, GKE, and AKS manage the Kubernetes API server, while JusDB engineers the K8ssandra operator, cgroup memory boundaries, Reaper repairs, and Medusa backups.

Kubernetes control plane & worker node groups
EKS, GKE, or AKS operates control-plane API servers.
Your platform team provisions worker node pools; JusDB defines taints, labels, and storage classes.
K8ssandra / Cass Operator & CRDs
Customer owns operator lifecycle and CRD specs.
JusDB architects K8ssandraCluster CRDs, rack mappings, and CassandraTask workflows.
Container memory limits vs JVM heap math
Kubernetes kills pods that exceed memory.limits.
JusDB sizes Guaranteed QoS pods for JVM heap, off-heap memtables, chunk cache, and page cache.
Reaper anti-entropy & Medusa backup CRDs
Customer must configure and monitor.
JusDB wires Reaper repair schedules and Medusa S3/GCS backup/restore verification.
VM-to-Kubernetes logical DC migration
Never handled by cloud providers.
JusDB joins K8ssandra as a logical DC to your legacy ring and executes nodetool rebuild.
SLA response times by severity

SLA response times for Kubernetes fleets

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.

SeverityConditionResponse SLA (24/7)
P1 · CriticalProduction database down, primary unreachable, data corruption risk, or active failover event.15 mins
P2 · HighSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.30 mins
P3 · MediumNon-critical slow query regression, staging issue, backup warning, configuration question, or planned operational request.60 mins

Response means an on-call engineer is working the incident, not an automated reply.

Your team retains

Cluster & IAM governance

  • 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 (see Terms, section 8)
JusDB owns

K8ssandra & DBRE accountability

  • 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

Kubernetes pod lifecycle simulator

Compare a naive Helm StatefulSet against a K8ssandraCluster deployment.

See how Guaranteed QoS memory boundaries, zone-pinned racks, and Cass Operator health gates prevent OOMKills and quorum loss.

cassandra_k8ssandra_simulator

Application and routing

CQL Driver -> Routable Pod IPs -> 3-AZ Rack-Pinned Pods -> Local NVMe / gp3 PVC

Active
  • dc1-use1a-sts-0 (Rack 1a)

    Guaranteed QoS · 64Gi Pod / 31G Heap

    UN · off-heap + page cache healthy · p99=2.9ms

  • dc1-use1b-sts-0 (Rack 1b)

    Medusa Sidecar + Reaper

    UN · S3 differential backup verified · repair clean

  • dc1-use1c-sts-0 (Rack 1c)

    PDB Locked (maxUnavailable=1)

    UN · WaitForFirstConsumer PVC bound to AZ

K8ssandra pins each StatefulSet rack to a distinct Availability Zone, reserves half the container memory limit for off-heap caches and OS page cache, and runs Reaper and Medusa automatically.

Production K8ssandra manifest & runbook

Declarative K8ssandraCluster CRD with 3-AZ racks, Reaper, and Medusa.

A production-grade K8ssandraCluster specification with Guaranteed QoS memory headroom, off-heap memtables, and CassandraTask day-2 operations.

Kubernetes Blueprint #02 · K8ssandraCRD

Stopping Exit 137 OOMKills and automating Reaper + Medusa on GKE

A GKE cluster running a custom Cassandra StatefulSet suffered repeated OOMKilled container restarts during nightly repairs because the 32Gi pod limit only left 2Gi above the 30Gi JVM heap for off-heap memtables and chunk cache.

Memory & QoS fix: Migrated to K8ssandraCluster on 64Gi nodes with requests == limits: 56Gi, maxHeapSize: 28G, and file_cache_size_in_mb: 8192.
Day-2 automation: Enabled integrated Reaper sub-range repairs and Medusa GCS differential backups via declarative CRDs.
Reconciled via K8ssandraOperator + ArgoCD with zero manual SSH maintenance

01 · Production K8ssandraCluster CRD (3-AZ Racks + Guaranteed QoS + Reaper/Medusa)

apiVersion: k8ssandra.io/v1alpha1
kind: K8ssandraCluster
metadata:
  name: cass-prod
  namespace: k8ssandra-operator
spec:
  cassandra:
    serverVersion: "4.1.6"
    storageConfig:
      cassandraDataVolumeClaimSpec:
        storageClassName: nvme-wait-first
        accessModes: ["ReadWriteOnce"]
        resources:
          requests:
            storage: 1500Gi
    resources:
      requests:
        memory: 56Gi
        cpu: "14"
      limits:
        memory: 56Gi
        cpu: "14"
    config:
      cassandraYaml:
        num_tokens: 16
        allocate_tokens_for_local_replication_factor: 3
        memtable_allocation_type: offheap_objects
        file_cache_size_in_mb: 8192
      jvmOptions:
        heapSize: 28G
    datacenters:
      - metadata:
          name: dc1
        size: 9
        racks:
          - name: use1a
            nodeAffinityLabels:
              topology.kubernetes.io/zone: us-east-1a
          - name: use1b
            nodeAffinityLabels:
              topology.kubernetes.io/zone: us-east-1b
          - name: use1c
            nodeAffinityLabels:
              topology.kubernetes.io/zone: us-east-1c
  reaper: {}
  medusa:
    storageProperties:
      storageProvider: s3
      bucketName: jusdb-cass-prod-backups
      prefix: cass-prod

02 · Declarative CassandraTask for rolling upgradesstables & ring inspection

apiVersion: control.k8ssandra.io/v1alpha1
kind: CassandraTask
metadata:
  name: upgrade-sstables-dc1
  namespace: k8ssandra-operator
spec:
  datacenter:
    name: dc1
  jobs:
    - name: upgradesstables
      command: upgradesstables
      args:
        jobs_count: 2
---
# Verify K8ssandraCluster readiness, rack balance, and CassandraBackup status:
# kubectl -n k8ssandra-operator get k8ssandracluster,cassandradatacenter,cassandrabackup
Architecture Vector JusDB DBREIn-House DBALegacy AgencyDev Generalist
K8ssandra Operator vs Cass-operator Architecture SelectionArchitects enterprise cloud-native Cassandra utilizing K8ssandra Operator and Cass-operator with declarative CassandraDatacenter CRDs, automated Medusa backups, Reaper repairs, and Stargate APIs.Deploys manual StatefulSets or deprecated community Helm charts lacking Cassandra gossip awareness, leading to token ring corruption and orphaned pods during upgrades.Installs static containerized Cassandra nodes with no Kubernetes operator automation, requiring manual SSH intervention during node failures.Treats Cassandra like a generic stateless microservice, missing custom resource controllers, readiness gates, and lifecycle preStop hooks.
Multi-Rack Failure Domain Mapping & Pod Anti-AffinityMaps Cassandra logical racks directly to Kubernetes node topology failure zones (topology.kubernetes.io/zone), enforcing hard anti-affinity so no two replicas share a node or zone.Configures basic soft pod anti-affinity without aligning Cassandra rack topology, causing multiple token replicas to land on the same physical worker node or failure domain.Deploys all cluster pods into a single cloud availability zone to simplify networking, exposing the entire database estate to catastrophic regional outage.Relies on default Kubernetes scheduler round-robin placement without rack awareness, triggering quorum loss when a single physical host crashes.
Local NVMe PersistentVolume StorageClasses & XFS TuningProvisions dedicated local NVMe persistent volumes formatted with XFS and Direct I/O mount options, isolating commitlog and data directories for sub-5ms write latencies.Attaches generic cloud network block storage (standard gp3/ebs) with high I/O latency, causing write queue saturation and dropped mutation storms.Shares host root filesystems across container workloads without I/O throttling, leading to disk full lockouts and crashed Cassandra daemons.Uses dynamic volume provisioners without disk volume expansion plans or IOPS reservations, causing database freezes during peak compaction cycles.
Automated Anti-Entropy Repair (Cassandra Reaper on K8s)Deploys and manages Cassandra Reaper operator custom resources, automating segment-by-segment incremental repair schedules with adaptive throttle controls to eliminate data drift.Executes manual full nodetool repair commands via kubectl exec, saturating cluster network and disk bandwidth during peak business hours.Skips regular anti-entropy repairs entirely until application queries report read consistency exceptions and deleted tombstone resurrections.Configures basic cron jobs that run nodetool repair without segment tracking, failing silently and leaving replicas desynchronized.
Medusa Object Store Backup & Point-in-Time RestoreIntegrates Medusa backup operator streaming encrypted SSTable snapshots directly to cloud object stores (S3/GCS) with automated point-in-time restore (PITR) sandbox drills.Takes ad-hoc node-level volume snapshots without coordinating flush operations or validating token ring consistency, resulting in unrecoverable backups.Relies on external VM-level file backups that cannot handle open SSTable files, corrupting backup archives.Lacks disaster recovery automation; attempts manual rsync copies of data directories that fail during active node mutations.
Low-Downtime Rolling Stateful Pod UpgradesOrchestrates partition-aware rolling pod upgrades with nodetool drain preStop hooks, automated gossip stability verification, and client error-rate checks between pods.Deletes pods sequentially with kubectl delete pod without draining traffic, causing transient client connection drops and dropped mutation timeouts.Demands wide maintenance windows with application downtime to restart all Cassandra nodes simultaneously.Applies Kubernetes StatefulSet rolling update with default timeout budgets, terminating pods while active SSTable compactions are in flight.

Engagement models

Three ways to engage JusDB for Cassandra on Kubernetes.

Whether you are building a greenfield K8ssandra platform or handing off day-2 Kubernetes database operations, we scope clear deliverables upfront. A monthly retainer for a set number of engineering hours, or a monthly fee per database instance, HA cluster, or region; projects are scoped and quoted separately.

Platform Build & Audit

K8ssandra Architecture & Rollout

Design and deployment of K8ssandraCluster CRDs, 3-AZ storage classes, Guaranteed QoS memory boundaries, Reaper repairs, and Medusa S3 backups.

VM-to-K8s Migration

Logical DC Move to K8ssandra

Join K8ssandra as a new logical datacenter to your legacy EC2/GCE/bare-metal ring and migrate traffic online with a rehearsed cutover.

Managed Day-2 Ops

K8ssandra Remote DBA & Support

Named DBREs operating your K8ssandra clusters, coordinating EKS/GKE upgrades, and providing 24/7 P1 incident response.

Procurement and security

Ready for legal and security review.

Mutual NDA before any access, least-privilege credentials in your vault, and security controls aligned with ISO 27001 and SOC 2 Type II.
  • Mutual NDA before any access
  • Named individual accounts only
  • Read-only access by default
  • ISO 27001 & SOC 2 Type II: aligned, certification in progress
  • Mutual NDA before any access

    We sign a mutual NDA before viewing schemas, logs, slow-query captures, or cloud topology.

  • Least-privilege, named credentials

    Engineers connect through your bastion, VPN, or SSM using named accounts with read-only permissions by default.

  • Change control & approval gates

    Production DDL, parameter changes, and failovers follow your change-management workflow with rollback steps prepared first.

  • Named leadership & direct escalation

    Engagements are led by named senior database reliability engineers in India with direct Slack, Teams, and PagerDuty channels.

Cassandra on Kubernetes FAQ

K8ssandra, cgroup OOMs, and PVC storage questions.

Direct technical answers on running stateful Apache Cassandra rings inside Kubernetes.

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 K8ssandra or standalone Cass Operator to run Cassandra on Kubernetes?

K8ssandra Operator (v1.x) is built on top of Cass Operator and is our recommended choice for production. While Cass Operator handles the core CassandraDatacenter StatefulSet lifecycle, K8ssandra bundles Cass Operator together with Cassandra Reaper for automated repairs, Medusa for differential S3/GCS backups, and Prometheus telemetry wiring in a single declarative K8ssandraCluster CRD.

How do you prevent Kubernetes OOMKills (Exit Code 137) on Cassandra pods?

Cassandra uses substantial memory outside the JVM heap: off-heap memtables, off-heap chunk cache, bloom filters, compression metadata, direct Netty network buffers, and the Linux OS page cache. If you give a pod a 32Gi Kubernetes memory limit and set JVM -Xmx to 28G, the Linux cgroup OOMKiller will terminate the pod under load. We configure Guaranteed QoS (requests == limits) and size JVM heap at roughly 45-50% of the pod memory limit.

How does persistent storage work when a Cassandra pod is rescheduled?

Each Cassandra pod binds to a PersistentVolumeClaim (PVC) using a StorageClass configured with volumeBindingMode: WaitForFirstConsumer. Because K8ssandra maps each rack to a specific cloud Availability Zone, when a pod or worker node fails, Kubernetes reschedules the pod in the same AZ and re-attaches its existing PVC (or uses Cass Operator's replace-node automation if local ephemeral NVMe lost a drive).

Can we migrate an existing EC2 or bare-metal Cassandra cluster into Kubernetes online?

Yes. By using a VPC-routable CNI (such as AWS VPC CNI or GKE Dataplane V2) so pod IPs are directly reachable by your existing VM nodes, we join the new K8ssandra cluster as a second logical datacenter inside your existing Cassandra ring. After streaming data via nodetool rebuild and running Reaper repair, your applications flip local-datacenter to the Kubernetes ring during an agreed cutover window.

How do day-2 operations like rolling restarts and upgradesstables work in K8ssandra?

Instead of SSHing into nodes or running manual kubectl exec loops, K8ssandra provides the CassandraTask custom resource. Submitting a CassandraTask CRD for restart, rebuild, cleanup, or upgradesstables instructs the operator to execute the operation sequentially rack by rack while respecting PodDisruptionBudgets and ring health gates.

Can JusDB manage our K8ssandra clusters ongoing after deployment?

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. Yes - we operate K8ssandra fleets continuously under our Cassandra Remote DBA retainer (/databases/cassandra/remote-dba) and provide 24/7 P1 incident escalation (/databases/cassandra/support). A monthly retainer for a set number of engineering hours, or a monthly fee per database instance, HA cluster, or region; projects are scoped and quoted separately.

Cassandra engineering ecosystem

Full-stack Cassandra engineering for cloud-native teams.

Combine K8ssandra operator automation with CQL schema consulting, JVM tuning, and managed Remote DBA operations.

Architecture

Cassandra Consulting

CQL partition modeling, UCS/TWCS/LCS compaction design, and Cassandra 5.0 SAI evaluation.

Explore service
Resilience

Cassandra High Availability

3-AZ rack-aware placement, NetworkTopologyStrategy, and multi-region failover engineering.

Explore service
Optimization

Cassandra Performance Tuning

JVM G1GC/ZGC tuning, off-heap memtables, and NVMe read-ahead optimization inside K8s.

Explore service
Operations

Cassandra Remote DBA

Continuous day-2 stewardship of your K8ssandra clusters, Reaper repairs, and Medusa backups.

Explore service
Support

Cassandra Support Services

15-minute P1 response SLA, 24/7, for pod OOMs and ring outages.

Explore service
Migration

Cassandra Migration Services

Live logical-datacenter migrations from legacy VM rings or DSE into K8ssandra.

Explore service
CQL-compatible

ScyllaDB on Kubernetes

Scylla Operator, NodeConfig local NVMe RAID-0 storage, and CPU pinning for ScyllaDB clusters on EKS, GKE, and AKS.

Explore service

Run stateful Cassandra on Kubernetes without OOMKills or quorum loss

Architect K8ssandra with 3-AZ racks, Reaper repairs, and Medusa backups.

Speak with a senior Cassandra Kubernetes architect. We review your K8ssandraCluster CRDs, storage classes, and JVM/cgroup sizing and deliver a concrete engineering plan.