Cloudflare R2 vs Ceph: when each option fits
If your backup tool or retention rules expect S3 versioning and Object Lock, or your data must sit in a specific facility you control, Cloudflare R2 may not be the right long-term home for those buckets. R2 fits teams that want managed S3-compatible storage with no egress fees and little operational work. Self-hosted Ceph RADOS Gateway fits teams that need a wider S3 feature set, control over hardware and physical location, and who have or can hire storage engineers to run the cluster. Confirm current R2 S3 API coverage in Cloudflare's R2 documentation before you rely on any feature, since the list of supported and unsupported operations changes over time.
Ceph RGW documents support for versioning, lifecycle rules, multipart uploads, ACLs and bucket policies, and bucket replication across zones. Its Object Gateway also offers multisite configuration, Keystone and LDAP authentication, and an Open Policy Agent integration. In practice, the first check is to list every S3 call your applications, backup software and retention tools make, then test each one against a non-production RGW bucket. Object Lock is the feature most often missing from the R2 side of that list, so write down which retention modes and legal holds your compliance team requires before you choose.
The decision turns on three things. First, which S3 features the workload depends on, including versioning, Object Lock and bucket policies. Second, where the data must physically sit, which determines whether owned data centers or a managed region is acceptable. Third, who runs the cluster, because Ceph needs drives, networking, monitoring and upgrades handled by people you employ or contract for, and those costs recur every year. Ask any quote to break out hardware, bandwidth, staff time and support separately, so you can compare it with R2 storage and operation charges on the same basis.
Which option fits which scenario
This table maps common Cloudflare R2 workloads to the better fit between R2 and a self-hosted Ceph RGW cluster, and names the condition that drives each choice. Read each row against your own feature needs, network ownership and staffing, because the deciding factor is usually one requirement rather than overall price.
| Scenario | Better fit | Deciding condition |
|---|---|---|
| Small team serving public assets through a CDN | Cloudflare R2 | Public delivery and edge caching are the main need, and R2 has no egress fees. Ceph adds operating work that a small team may not need. |
| Backup platform that requires Object Lock | Ceph RGW | Object Lock works only in versioned buckets, and R2's S3 API does not implement it. Confirm your backup tool's exact retention requirements before choosing. |
| Regulated workload with strict data residency rules | Ceph RGW in your own data centers | Residency is easier to evidence when you control the hardware, sites and access logs. Confirm what R2's jurisdiction settings guarantee for your regulator. |
| High-egress media delivery | Depends on who owns the network | Heavy outbound traffic favors R2's no-egress model. It favors Ceph only when you already have bandwidth and rack space that make owned delivery cheaper. |
| Existing Kubernetes platform team | Ceph RGW through Rook | Rook is a CNCF Graduated project for running Ceph on Kubernetes. A team that already runs storage on Kubernetes can absorb the operational work more easily. |
| Workloads that rely on S3 versioning or bucket policies | Ceph RGW | Ceph documents versioning, lifecycle, ACLs and bucket policies. R2 does not implement these S3 features, so existing tooling may fail. |
| Workers or edge-bound applications | Cloudflare R2 | R2 bindings and public bucket domains are tied to Cloudflare's edge. Moving to Ceph means replacing those access paths. |
Cloudflare R2 vs Ceph: what the S3 API gaps mean for your data
The S3 API features that matter most for recovery are versioning and Object Lock, because they decide whether a backup copy can be changed or deleted by someone who should not be able to do so. Object Lock works only in versioned buckets and offers governance and compliance retention modes plus legal holds. ACLs and bucket policies decide who can read, write or delete objects and how access is scoped. Ceph's RADOS Gateway documents support for versioning, ACLs, bucket policies and lifecycle rules, as described in the Ceph documentation on the S3 API. Cloudflare R2 is described in this comparison as leaving out versioning, Object Lock, ACLs and bucket policies, so confirm R2's current S3 API coverage against Cloudflare's own documentation before you design around it.
CIS Controls v8.1 Safeguard 11.4 asks for an isolated instance of recovery data, with offline, cloud or off-site, version-controlled backup destinations given as examples. A backup tool written against S3 Object Lock may fail when it sets retention on a bucket that does not support it, or it may report success while retention is never applied. Test this directly: write an object with a retention period, attempt to delete it with the account your backup tool uses, and check the result in the bucket's settings. Map each retention rule your backup software relies on to a specific Ceph RGW setting, and record which ones you cannot reproduce.
On AWS, S3 Object Lock has been assessed by Cohasset Associates for SEC 17a-4, CFTC and FINRA environments, as noted in the Amazon S3 Object Lock documentation. No equivalent third-party assessment of Ceph RGW Object Lock is supplied here. If your regulator or internal audit expects one, ask the Ceph vendor or support provider whether an assessment exists for your release, and if none does, plan your own tests of retention enforcement, legal holds and delete protection, and keep the results as evidence.
Cloudflare R2 vs Ceph capability by capability
This table compares Cloudflare R2 with a self-hosted Ceph RGW cluster on the S3 features that backup tools, retention rules and migrations usually depend on. Where the supplied facts do not settle R2's behavior, the cell says to confirm it in Cloudflare's documentation. Each row names the condition under which the difference matters, so check the rows your tools and policies actually use.
| Capability | Cloudflare R2 | Ceph RGW (self-hosted) |
|---|---|---|
| S3 API coverage | S3-compatible API with gaps; confirm the operation list in Cloudflare's S3 compatibility docs | RESTful API with the basic S3 data access model; also offers a Swift API |
| Versioning and Object Lock | Not implemented in the S3 API as described for this comparison; confirm with Cloudflare. Matters for backup tools that expect versioned buckets | Versioning supported. Confirm Object Lock (governance, compliance, legal hold) against your Ceph release's S3 reference |
| ACLs and bucket policies | Not implemented in the S3 API as described for this comparison; confirm with Cloudflare. Matters if access rules are written as S3 policies | ACLs and bucket policies documented as supported. Matters for per-bucket access rules carried over from S3 |
| Lifecycle and multipart uploads | Confirm lifecycle rule and multipart support in Cloudflare's docs. Matters for large backup objects and expiry rules | Lifecycle and multipart uploads documented as supported. Test expiry rules against your retention schedule |
| Server-side encryption | Confirm encryption-at-rest and S3 SSE options in Cloudflare's docs. Matters for key ownership requirements | Confirm the SSE options and key management for your release. Matters if keys must stay in your own key management system |
| Multisite and cross-location replication | Managed by Cloudflare; regional options depend on account and jurisdiction settings. Confirm placement controls | Multisite configuration documented; bucket replication runs only between zones. Matters for copies across sites |
| Identity integration | Access managed through Cloudflare API tokens. Confirm how tokens map to your identity provider | Keystone and LDAP authentication, MFA, Open Policy Agent and AWS STS, IAM and SNS APIs. Dashboard supports SAML 2.0 SSO |
| License and edition model | Commercial managed service billed on usage; no source code to inspect | Source under LGPL-2.1 or LGPL-3 with bundled components under other licenses; no paid edition from the project |
How a Ceph RGW cluster serves S3 requests
The path starts with client applications and backup tools sending S3 requests to the RADOS Gateway on the client-facing network. RGW then writes objects into RADOS, which spreads data across OSDs on separate hosts while Monitors and Managers keep cluster state. The trust boundary sits between the client network and the storage network, and TLS typically ends at the gateway. Check where msgr2 secure mode is enabled between daemons, and treat zone replication as the only bucket replication Ceph documents when you plan multisite recovery.
Request path through RGW, RADOS and cluster daemons, with the trust boundary and replication path.
Cloudflare R2 vs Ceph on control, hosting and compliance
R2 and a self-hosted Ceph Object Gateway differ most on where objects live, who controls identity and keys, and who produces the evidence an auditor asks for. The cards below set out the decisions that follow from those differences and what to confirm before you choose.
Data location and jurisdiction
R2 runs in Cloudflare's infrastructure, and Cloudflare offers jurisdiction options that keep objects in a chosen region. With Ceph, you choose the facility, the country and the cloud account where every OSD and gateway runs. Ask Cloudflare which jurisdiction settings apply to your buckets, and map each Ceph site to the data residency rules your regulator or contract names.
Ceph Object Gateway docsIdentity and access integration
Ceph RGW can authenticate through Keystone or LDAP, enforce multi-factor authentication, evaluate Open Policy Agent rules, and issue temporary credentials through the AWS STS API. The Ceph Dashboard supports SAML 2.0 single sign-on, and OAuth2 when cephadm runs the Management Gateway and OAuth2 Proxy services. Confirm which identity source your administrators and applications will use before you size the integration work.
Ceph Dashboard docsEncryption in transit between nodes
The Ceph messenger v2 protocol listens on port 3300, and its secure mode encrypts all traffic after authentication with AES-GCM and adds integrity checks. This covers traffic between monitors, OSDs and gateways inside the cluster. Client connections to RGW are governed by the TLS configuration you set on the gateway, so verify both paths in your own design and in your network diagrams.
Messenger v2 docsAudit logs and control evidence
With R2, Cloudflare operates the storage platform and its logging, and your team consumes the records it exposes. With Ceph, your team must collect gateway access logs, administrator actions, key issuance and configuration history, then retain and review them. Plan the log pipeline, retention period and access controls before an assessment begins, because the evidence is your responsibility once the cluster is yours.
Who holds the encryption keys
Key custody decides whether the provider or your organization can read stored objects in a legal or incident scenario. R2 keys and encryption are managed by Cloudflare under its service terms, while a Ceph deployment lets you decide where key material lives, who can issue it and how it is rotated. Document the key hierarchy and confirm with Cloudflare exactly which keys it controls before you rely on that answer in a security review.
What DeployOpen prepares and what it does not
DeployOpen plans, implements, hardens and documents self-hosted Ceph inside your cloud accounts or data centers, and prepares the systems, controls and evidence your assessors will request. DeployOpen does not issue audit reports, attestations or certifications, and independent auditors or certification bodies perform those reviews. Ask for the written scope to name the controls and evidence in scope.
Cloudflare R2 vs Ceph cost of ownership by component
One-time costs for a Ceph RGW cluster are the capital and setup work you pay before the first object is stored. Hardware is the largest line. The Ceph hardware recommendations advise a dedicated drive for each OSD, so the drive count follows your capacity and failure-domain plan. On HDD-based OSDs, the guidance moves WAL and DB to shared SSDs, and it recommends enterprise-class SSDs for metadata. Network links should be bonded across two switches so a single switch failure does not take the cluster offline. Memory should be sized for peak use rather than calm periods.
- Servers and drives: Quote the node count, drive count per node, and drive class separately, so you can see the OSD layout.
- Metadata and WAL/DB SSDs: Ask for the shared SSD layout for HDD-based OSDs and the enterprise-class rating of each device.
- Network hardware: Include bonded NICs and two switches, with the cabling and optics needed for both paths.
- Design and benchmarking: The hardware guidance says to benchmark before buying, since no two clusters are alike. Ask who runs the benchmark and what workload it models.
- Migration work: Price the bucket inventory, data copy, key re-creation and endpoint cutover as separate line items.
Ask the vendor or integrator to state which of these items are included and which are your responsibility.
Recurring costs continue for as long as the data is stored. On R2, you pay for stored volume and for Class A and Class B operations, and Cloudflare does not charge egress fees for data leaving R2. On a self-hosted cluster, the recurring lines are power, rack space, bandwidth, hardware refresh, staff time and any support contract you buy. The cost of staff time is often the largest recurring item, because someone must patch, monitor, upgrade and test restores on a schedule.
- R2 storage and operations: Stored volume and Class A and Class B operation counts are billed by Cloudflare. Check the current rate card at the time of purchase.
- Egress: R2 has no egress fees, while your own transit or cross-connect costs apply to data that leaves your network.
- Power, space and bandwidth: Ask for the power draw, rack units and committed bandwidth attributed to the cluster.
- Hardware refresh: Drives and nodes age out. Ask for the expected replacement cycle and the spares you hold on site.
- Support and staff time: A support contract is optional. Staff time is not, and it should be estimated in hours per month for upgrades, incidents and restore tests.
Ask for an annual total that separates recurring infrastructure from labor, so the comparison with R2 is like for like.
The balance between R2 and Ceph shifts with a small set of drivers. Stored volume drives R2 storage charges and the size of your Ceph hardware. Operation counts drive R2 Class A and Class B charges, but on Ceph they only affect how much of the cluster's capacity you use. The request mix matters because reads, writes and list calls load the cluster differently. Transfer volume that leaves your network drives your bandwidth bill on the Ceph side and has no equivalent charge on R2.
- Stored volume: Growth in terabytes increases R2 storage charges linearly and requires more drives and nodes on Ceph, often in steps.
- Operation counts: High counts of Class A and Class B operations raise R2 charges, which is where the balance can move toward owned hardware.
- Request mix: Small-object and list-heavy workloads stress metadata more than large sequential transfers. Ask how the vendor sizes metadata for your mix.
- Transfer volume leaving your network: Egress from your own cluster to users or other clouds carries your transit cost, which R2 does not charge.
- Durability target and site count: Replica or erasure coding choices and multisite design increase the drive count and network needs.
Illustrative example: a workload that writes many small objects and lists buckets often will load Ceph metadata more heavily than a workload that stores a few large archives.
Who runs a Ceph cluster and what it asks of them
Cloudflare R2 removes the need for a storage team to keep disks, daemons and networks alive, because Cloudflare operates that layer and bills you for usage. A self-hosted Ceph cluster does not remove that work, it moves it to you. Someone must run the Monitors that hold cluster maps, the Managers that expose status and modules, the OSDs that sit on each drive, and the Ceph Object Gateway (RGW) that serves the S3 API. That team also handles drive failures and rebuilds, capacity planning, upgrades, and backups of the cluster metadata, which a bucket-level copy does not cover. Before you choose Ceph, confirm that you have named owners for each of these duties, including an on-call rota that covers storage incidents.
Most teams deploy with cephadm, which manages a cluster as containers. A new cluster starts as a single node with one Monitor and one Manager, and you then add hosts and services one by one. cephadm was introduced in v15.2.0 (Octopus) and does not support older releases, so any legacy build must be migrated before you can use it. If your platform runs on Kubernetes, the cephadm documentation points to Rook as the alternative deployment route. The CNCF lists Rook as a Graduated project since October 7, 2020, which matters if your platform team already runs operators and GitOps pipelines. Ask which deployment model your staff can support, because the operational skills differ between the two.
Plan the upgrade cadence before go-live. According to the Ceph releases page, Tentacle (20.2.x) was first released November 18, 2025, with an estimated end of life of June 1, 2027, and Squid (19.2.x) has an estimated end of life of October 31, 2026. Maintained releases receive periodic backports and security fixes, so an unpatched cluster falls behind quickly. Each version change means testing, a rolling upgrade across Monitors, Managers, OSDs and RGW, and a rollback plan. Confirm with your team how often they can schedule maintenance windows, and whether they will track the end-of-life dates against your own change calendar. Verify the current release status on the releases page at the time you plan.
What moving from Cloudflare R2 to Ceph involves
The sequence turns an R2 footprint into a Ceph RGW cluster that owns the data, the users, the retention rules and the endpoints, with each step closed by a check you can run. The detailed copy procedure sits on the sibling migration page, so this sequence shows the order and the dependencies that decide how long the move takes.
Inventory buckets, objects and dependencies
Start by listing every R2 bucket, its object count and total size, its lifecycle rules and any bucket lock rules. Then trace what reads or writes each bucket: backup jobs, application code, Workers bindings, r2.dev or custom public domains, and CI pipelines. Record which access paths Cloudflare provides at the edge, because those have no direct equivalent in Ceph and need a replacement plan. The step is done when you have a written inventory signed off by the teams that own each consumer, and every bucket has an owner and a cutover method.
Size and build the Ceph cluster
Size the cluster from the inventory and from a benchmark on hardware you intend to buy, since the Ceph hardware recommendations advise benchmarking before purchase and sizing memory for peak use. Plan a dedicated drive per OSD, shared SSDs for WAL and DB on HDD-based OSDs, enterprise SSDs for metadata, and bonded network links across two switches. Deploy with cephadm on a supported release, then add RADOS Gateway services and place an HTTPS load balancer in front of them. The step closes when the cluster reports healthy under test load and an RGW endpoint answers S3 requests from your network.
Map R2 API tokens to RGW users
Replace each Cloudflare API token with an RGW user and access key pair scoped to the buckets that consumer needs. Ceph supports ACLs and bucket policies, so write the policy for each bucket explicitly rather than copying a broad token. Decide where credentials live, such as a secrets manager, and confirm that rotation and revocation work before any client uses them. The step is done when every consumer in the inventory has a named RGW user, the least-privilege policy is tested with a denied request and an allowed request, and the old R2 tokens are marked for revocation.
Copy data with rclone and verify checksums
Run rclone against the R2 S3 endpoint as the source and the RGW endpoint as the destination, since rclone documents Ceph as a supported S3 provider. Copy in batches per bucket, keep logs of each run, and compare object counts, sizes and checksums between source and destination. Reconcile objects that changed during the copy by running a second incremental pass before cutover. The step closes when each bucket shows matching counts and checksums in the verification report, and the team has recorded any object that failed and why.
Rebuild retention as Object Lock settings
R2 bucket locks do not map one to one onto S3 Object Lock, which Ceph RGW supports on versioned buckets. Enable versioning on each destination bucket first, then translate each retention rule into governance or compliance retention settings, and add legal holds where legal or audit teams require them. Confirm with the owners of the retention policy which mode applies, since compliance mode cannot be shortened once set. The step is done when a test object written to each bucket shows the expected retention and legal hold state, and the policy owners have approved the mapping in writing.
Replace r2.dev and Workers access paths
Public bucket domains and Workers bindings have no direct equivalent in a self-hosted cluster, so each one needs a named replacement. Options include exposing a bucket through a reverse proxy in front of RGW, moving edge logic into your own application or gateway, or keeping a Cloudflare front end that proxies to your RGW endpoint. Confirm with the team that owns each Worker how it reads the data, how caching and headers behave, and how errors reach users. The step closes when each public path returns the same objects and status codes in a staging test, and the Workers owners have signed off the replacement.
Switch clients and monitor the cutover
Change each client's endpoint, region and credentials from the inventory list, one consumer group at a time, and keep the R2 buckets read-only during the switch so writes do not diverge. Watch RGW logs, latency and error rates while each group moves, and keep a documented rollback path to R2 until the owners confirm success. The step is done when every consumer in the inventory writes to and reads from the Ceph endpoints, and the monitoring shows no unexplained errors for the agreed observation window.
Decommission R2 and document the cluster
After the observation window, delete or archive the R2 buckets according to the retention and legal hold decisions made earlier, then revoke the old tokens. Write the operating runbook covering backups of the Ceph cluster, upgrade paths for supported releases, key rotation, and on-call escalation. Confirm the backup copy of critical data sits in an isolated destination, which CIS Control 11 describes as recovery data kept apart from production. The step closes with a signed decommission record and a runbook that the operations team has used at least once in a drill.
Questions buyers ask before choosing Ceph over R2
What does a move from Cloudflare R2 to Ceph actually cost?
The cost is driven by the components you buy and the people who run them, not by a single line item. Ceph costs include servers, drives (one dedicated drive per OSD is the baseline), SSDs for WAL and DB or metadata, network switches and bonded links, plus the staff time to operate the cluster and any support contract you choose. R2 costs are billed on stored data and Class A and B operations, with no egress fees. Storage and operation volume favor R2 at low scale, while sustained high operation counts or large stored volumes shift the balance toward owned hardware. Ask any quote for each component separately, what is one-time (hardware, initial build, migration) and what recurs (power, hosting, staff, support, hardware refresh), and confirm current R2 rates directly with Cloudflare.
How long does a Ceph migration from R2 take?
Duration depends on how much data and how many buckets you move, how fast your network can carry the copy, how many access paths must be rebuilt, and how much validation your change process requires. Copying with rclone over the S3 API is usually not the long pole. The longer work is planning the cluster, sizing it through benchmarking, mapping R2 API tokens to RGW users, rebuilding bucket lock rules as Object Lock settings, and replacing r2.dev domains and Workers bindings with endpoints you control. Ask for a timeline tied to a written scope, and confirm your total stored volume, object count and the number of applications reading each bucket before agreeing to dates.
Can our team run Ceph without outside help?
Yes, if you have people who can operate distributed storage in production, but that is the main question to answer honestly before deciding. Cephadm manages a cluster as containers and bootstraps from one Monitor and one Manager, then adds hosts and services. On Kubernetes, the cephadm documentation points to Rook as the alternative deployment path. Required skills include Linux and networking, drive and failure-domain planning, upgrade management across Ceph releases, RGW tuning, monitoring, backup design and incident response. Confirm whether you have at least one engineer who can own this on call, and whether you want a retainer for upgrades and continuous testing instead of building that depth in house.
What work must our own staff provide during a Ceph project?
Your staff provide the decisions and access that only your organization can give. That includes the inventory of buckets, users, tokens, lifecycle rules and lock rules; the data classification and retention requirements; network design and switch access; the hardware procurement or data center placement; identity integration for SSO and admin access; and the application owners who must test cutover. They also own the change windows, the rollback plan and sign-off on the evidence you will show auditors. Ask any proposal to name these inputs explicitly so you can schedule the people involved before the work starts.
Can Ceph give us the same egress terms R2 offers?
Ceph does not charge egress, but the cost you actually pay depends on the network you own. With R2, Cloudflare does not bill egress fees. With Ceph in your own data center or cloud account, outbound traffic is paid through your bandwidth contract or your cloud provider's transfer charges if the cluster runs there. Moving data out of a public cloud provider is a separate cost to check. Confirm your committed bandwidth, the transfer terms of any hosting provider, and the expected read volume from each application. Ceph removes a vendor egress line item, but it does not remove network cost.
Does Ceph provide Object Lock for backup retention?
Yes, Ceph RGW documents support for versioning, lifecycle and bucket policies, which are the building blocks for retention. R2's S3 API does not implement S3 versioning or Object Lock, so backup tools expecting those features may need changes after a move. Ceph's documentation should be checked for the exact Object Lock behavior, including governance and compliance retention modes and legal holds, and for how the feature interacts with your backup software. Test a restore and a retention-expiry scenario in a staging cluster before relying on it. Keep an isolated, version-controlled backup copy as well, since the CIS Controls v8.1 Safeguard 11.4 expects recovery data to be isolated from the primary environment.
Will an independent assessor accept Ceph controls for our audit?
An independent auditor decides whether controls are acceptable, and no vendor or implementation partner can promise the outcome. Auditors typically examine access control, encryption in transit, logging, backup and retention, change management and evidence of operation. Ceph supports features that can support those controls, including the msgr2 secure mode that encrypts post-authentication traffic with AES-GCM, SSO for the Dashboard through SAML 2.0 or OAuth2, and RGW integrations for LDAP, Keystone and multi-factor authentication. DeployOpen prepares systems, controls and evidence for compliance assessments but does not issue audit reports or certifications. Confirm the assessor's scope with them early and ask them which evidence they need from the storage layer.
How DeployOpen helps you evaluate, implement or migrate to Ceph
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Ceph RADOS Gateway clusters in your data centers or cloud accounts. For Cloudflare R2 vs Ceph, we start from the S3 features your backup tools, retention rules and applications actually use, then build and document the storage that replaces them.
How we scope
- Inventory the R2 buckets, S3 calls, tokens, Workers bindings and public domains your applications depend on.
- Confirm which features you need from Ceph RGW, such as versioning, Object Lock, ACLs or bucket policies, before any hardware is ordered.
- Agree deliverables, timelines and acceptance tests in writing for a fixed-scope engagement, with ongoing support available as a retainer.
How we build
- Design the Ceph cluster with dedicated drives per OSD, WAL and DB placement, bonded network links and memory sized for peak load.
- Benchmark the proposed hardware against your own object sizes and request patterns before purchase commitments are made.
- Configure RGW users, buckets, versioning, Object Lock settings and access controls, with SSO and audit logging where your policies require them.
How we hand over
- Document the architecture, failure domains, backup destinations and the operational runbooks your storage team will follow.
- Run restore tests and security testing of the S3 endpoints, then deliver findings with fixes and a retest.
- Provide evidence that compliance assessors can review, while noting that independent auditors and certification bodies issue any formal reports.
How we support
- Plan Ceph upgrades against the published release lifecycle so your cluster stays on maintained releases.
- Support cluster monitoring, periodic restore verification and access reviews through a retainer agreed in writing.
- Re-test the object store after material changes, such as new applications, new buckets or changes to network or identity settings.

