Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideCloudera / Data Services & AI7 min read

Apache Ozone sizing and erasure coding: a planning guide

Raw disk, nodes and protection schemes in one place

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: Private AI & Data Architecture
On this page
  1. Sizing
  2. Erasure coding vs replication
  3. Nodes
  4. Worked method with placeholders
  5. Checklist

Size an Ozone cluster from four numbers: the logical data you hold, the protection scheme you choose, the free-space headroom you keep and the number of nodes the scheme needs. Three-way replication needs about three times the logical size in raw disk. Erasure coding with six data and three parity blocks needs about one and a half times, but needs at least nine DataNodes for each stripe.

Sizing

Work from your data, not from vendor hardware guides. Gather these inputs first:

  • Logical data today, by dataset, and expected growth per year.
  • File and object count today, and how many small files you will keep. See the small files runbook.
  • Access pattern: hot data read often, or warm and cold data read rarely.
  • Durability and recovery needs: how many failures you must survive, and how fast you must recover.
  • Network speed between nodes, since recovery and reads cross it.

Then calculate in this order:

  1. Raw disk = logical data x protection factor.
  2. Usable target = keep headroom, so the cluster is never run to full. Pick the headroom with your operations team, as recovery needs free space.
  3. Node count = raw disk with headroom divided by disk per node, then raised to at least the stripe width if you use erasure coding, and to a number that survives your target node failures.
  4. Metadata sizing = memory and fast storage for the Ozone Manager and Storage Container Manager, sized to key count, not terabytes.

Cloudera documents up to 400 TB per Ozone DataNode, and the same page compares it with 100 TB for HDFS, as covered in Ozone vs HDFS. A dense node reduces the node count, and increases the data to rebuild if one fails. Plan network and recovery with that in mind.

Erasure coding vs replication

Ozone's default protection is three-way replication. It also supports erasure coding. The Apache Ozone erasure coding page and Cloudera's overview describe the details.

SchemeDisk for dataOverheadNodes needed per stripeNotes
Replication, three copies (RATIS/THREE)3 timesAbout 200 percent3Simple, the default, strong for small files and hot data
Erasure coding RS-3-2-1024kAbout 1.67 timesAbout 67 percent5Smaller layout for smaller clusters
Erasure coding RS-6-3-1024k1.5 times50 percent9Apache calls it the most recommended built-in option
Erasure coding RS-10-4-1024k1.4 times40 percent14Needs a large cluster

The overhead figures follow from the scheme names: data blocks plus parity blocks, divided by data blocks. The Apache documentation gives the example that a six-block file takes 18 blocks under three-way replication and 9 under erasure coding with six data and three parity. Points to weigh:

  • The documentation suggests erasure coding for warm and cold data with low I/O, and bucket-level settings.
  • Changing a bucket's scheme affects new files only, and a file's scheme cannot be changed after creation.
  • A read after a failure rebuilds data from parity, which is slower than a normal read.
  • Files smaller than one stripe gain less, so test with your size mix.
  • Cloudera notes Ozone does not support ISA-L.

Nodes

A cluster needs at least as many DataNodes as the stripe width, and in practice more, so that a node failure leaves somewhere to rebuild. Metadata services run on their own nodes. High availability usually means three Ozone Managers and three Storage Container Managers, so confirm the layout in your release guide.

RoleTypical practiceCheck
Ozone ManagerThree for high availability, on fast storageMemory sized to key count
Storage Container ManagerThree for high availabilityContainer count growth
DataNodeAs many as the stripe width needs plus spareDisk per node and rebuild time
S3 GatewayTwo or more behind a load balancer if S3 is usedCapacity and health checks
NetworkFast, with room for rebuild trafficLink speed and oversubscription

Worked method with placeholders

Suppose you hold a placeholder 1,000 TB of logical data, and plan to keep 700 TB of it as large warm files and 300 TB as hot or small-file data. Use these as inputs to your own sheet, not as advice.

  • Hot and small-file data under three-way replication: 300 TB x 3 = 900 TB raw.
  • Warm data under RS-6-3: 700 TB x 1.5 = 1,050 TB raw.
  • Raw total: 1,950 TB, against 3,000 TB if everything used three-way replication.
  • Add your headroom, divide by disk per node, then check the node count is at least nine for the erasure coded buckets.

The arithmetic follows from the scheme definitions. The headroom, node size and growth are yours to supply.

Checklist

  1. Profile logical data, file counts and size bands.
  2. Choose protection per bucket class: replication for hot and small-file data, erasure coding for large warm and cold data.
  3. Calculate raw disk, headroom and node count, and check the stripe width.
  4. Size the metadata nodes for key count.
  5. Plan failure tests: a DataNode, a rack and a metadata node.
  6. Write the rebuild-time estimate down and share it with operations.
  7. Review sizing every six months against real growth.

Duczer East does this work in Apache Ozone sizing and design. For a scenario, see on-premises object storage with Ozone. Before you commit, compare the cost side in Ozone storage cost on premises.

Frequently asked questions

How do I size an Apache Ozone cluster?

Multiply logical data by the protection factor, add headroom, divide by disk per node, and raise the node count to at least the erasure coding stripe width. Size metadata services by key count.

How much disk does erasure coding save?

Erasure coding with six data and three parity blocks uses about 1.5 times the data, against about 3 times for three-way replication.

How many nodes does RS-6-3 need?

At least nine DataNodes for each stripe, and more in practice so a failed node has somewhere to rebuild.

Should small files use erasure coding?

Usually not. Files smaller than a stripe gain less, so use replication for small-file and hot data and test your own mix.

Can I change a bucket's erasure coding scheme later?

Changes apply to new files only, and an existing file's scheme cannot be changed.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote