The Simplest Way to Make Ceph and YugabyteDB Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running ceph and yugabytedb together pairs shared storage with a fast distributed database. YugabyteDB runs live transactions while Ceph stores block volumes and object backups. This setup lets teams scale compute and storage at different speeds. Database nodes read and write to Ceph block pools or send snapshots to object buckets. When you set up roles and network rules well, both systems run fast and stay safe. How data and keys flow between ceph and yugabytedb These two systems talk to ea

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Running ceph and yugabytedb together pairs shared storage with a fast distributed database. YugabyteDB runs live transactions while Ceph stores block volumes and object backups.

This setup lets teams scale compute and storage at different speeds. Database nodes read and write to Ceph block pools or send snapshots to object buckets. When you set up roles and network rules well, both systems run fast and stay safe.

How data and keys flow between ceph and yugabytedb

These two systems talk to each other in two main ways. First, YugabyteDB nodes can mount Ceph block devices for their main data disks. Second, the database can send full snapshots to Ceph object storage for safe backups.

Each path needs its own login keys and access rules. For block storage, the host system uses a Ceph client key to mount the volume. The database process then writes raw table files straight to that mounted disk.

For object backups, YugabyteDB uses object storage keys to talk to the Ceph gateway. The database nodes send backup files over the network to a chosen bucket. You should create one Ceph user for block mounts and another for backup buckets.

Network traffic also follows two distinct paths in this setup. Live database queries hit YugabyteDB first, which then writes blocks to the storage cluster. Backup traffic goes straight from each database node to the object storage endpoints. Putting storage traffic on its own private network keeps client queries fast.

Common failure modes and how to scope roles

Many teams use one shared admin key for every database node and backup job. If someone steals that broad key, they can delete live volumes and all backups. Shared service accounts also make it hard to see who ran a bad command.

Broad network access is another common trap in large clusters. If developer machines can reach the storage network, someone might read raw disk blocks. Unlogged database queries make things worse when sensitive data sits in those tables. Masking rules can rewrite emails, phone numbers, card numbers, and national IDs in query results.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix storage risk, give each database cluster its own Ceph pool and namespace. Grant the block client key read and write rights only to that single pool. For object backups, give the backup key write rights to one bucket only. Do not let the normal backup account delete old snapshots on its own.

On the database side, stop sharing the main admin role across your team. Map each engineer to a distinct role with clear read or write limits. Log every query and admin action so you can audit changes during an incident.

Keeping performance steady across storage and database nodes

Running a distributed database on shared network storage requires careful tuning. Both systems replicate data to keep it safe when hardware fails. If both layers copy the same data three times, you waste disk space and network speed.

Decide early which layer handles failure recovery for your live data. Many teams use local disks for live YugabyteDB nodes and Ceph for object backups. This split gives you fast local disk speed and cheap, deep backup storage.

If you run live database nodes on Ceph block volumes, watch your network latency. Slow storage switches will cause database leader elections to fail under heavy write loads. Test your backup restore flow every month to make sure your keys and buckets work.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Should YugabyteDB use Ceph for live data or just backups?

Most teams use local disks for live data and Ceph object storage for backups. If you use Ceph block storage for live nodes, use fast networks to avoid slow writes.

How do we limit damage if a backup key leaks?

Scope the Ceph object key to one bucket and remove delete permissions. Use storage lifecycle rules on the Ceph side to clear old backups instead.

How can we protect sensitive fields during database checks?

Use dynamic data masking to rewrite emails, phone numbers, and card numbers in query results. This lets engineers check live tables while keeping sensitive fields safe.

The query runs. The emails stay hidden.