Network traffic: replication versus EC
In the book: Chapter 13
Lab
Network traffic: replication versus EC
Give the client write and read load, the pool type and the NICs, and see how full the public and cluster networks get, how much data rebuilding a lost OSD moves and how many hours it takes.
17.8%public network use
11.9%cluster network use
11.2 TBread to rebuild one OSD
2.1 happroximate rebuild time (disk-bound)
Public3000 / 16875 MB/s
Cluster2000 / 16875 MB/s
| Per byte of client data | |
|---|---|
| Write: client → primary (public) | 1× |
| Write: primary → others (cluster) | 2× |
| Written to disks | 3× |
| Read: chunk gather (cluster) | 0× |
| Rebuild: read per lost byte | 1× |
write: client → primary 1×, primary → 2 replicas × 1 · read: primary only · rebuild: copy 1× · usable ≈ 90% of line rate
EC is cheaper in writes and space but its rebuild needs k times the traffic; that is why a separate cluster network or more bandwidth matters more for large EC pools, and mClock sets the recovery share (chapters 7 and 13).
Follows:
src/osd/ReplicatedBackend.cc :: ReplicatedBackend::issue_opWrite fan-out with replicationsrc/osd/ECBackend.cc, src/osd/ECCommon.cc :: write fan-out, read gather, recovery readsFan-out, gather and rebuild with ECdoc/rados/configuration/network-config-ref.rst :: public and cluster networksPublic and cluster networks