Red HatVishnu ChallaBenchmark
Sharding etcd on hosted control planes and what the numbers actually say
Summary
Sharding etcd on hosted control planes splits the key-value store into multiple instances by resource kind, a tech preview feature tested with a main shard for cluster state and a dedicated events shard on Red Hat OpenShift 4.21 with HyperShift. Under event pressure from synthetic storms and realistic crashlooping pods, the sharded configuration showed up to 96% fewer slow applies, faster compaction and raft snapshot durations, and 60% more WAL fsyncs and 90% more backend commits combined. The sharded arm never failed the event storm workload, while the standard arm occasionally did. Pod-ready latencies and workload finish times remained comparable across both configurations. The trade-offs are roughly 1.8 to 2.3 times the etcd container memory and a compaction regression under large custom resource quota pressure that is still under investigation.
Context
The post evaluates etcd sharding, a tech preview feature for hosted control planes, by comparing a two-shard configuration (main and events) against a single etcd instance under four workload variants on Red Hat OpenShift 4.21 with HyperShift.
Approach / What changed
Split etcd into two shards: a main shard holding cluster state and a dedicated events shard, routing resources by kind.
Takeaways
Sharding reduces slow applies by up to 96% under event pressure, with faster compaction and raft snapshots.
Sharding increases total write throughput (60% more WAL fsyncs, 90% more backend commits) but costs 1.8–2.3x etcd container memory.
The only regression is a compaction slowdown under large custom resource quota pressure, still under investigation.
FAQ
What is the memory cost of etcd sharding?
Roughly 1.8 to 2.3 times the etcd container memory, unexplained by DB-sizing metrics, possibly a per-container floor rather than a per-shard cost.
Does sharding affect end-user pod latency?
No, pod-ready latencies and workload finish times were comparable across both configurations in all workload variants tested.
What workload caused a regression in sharding?
The db-quota-pressure workload with large custom resources showed a compaction regression, with the sharded arm taking 2.5x longer to compact, still under investigation.
Source and freshness
- Source
- developers.redhat.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.