pool: support CRUSH MSR rules for EC pools

Added failureDomains and osdsPerDomain fields to the
ErasureCodedSpec, which maps to the crush-num-failure-domains and
crush-osds-per-failure-domain Ceph EC profile parameters. This enables
creating EC pools that distribute chunks across fewer, larger hosts
without needing one host per data chunk.

Signed-off-by: Prabhala Tara Aasrita <taraprabhala@Prabhalas-MacBook-Pro.local>
(cherry picked from commit 715f38de91)
This commit is contained in:
Prabhala Tara Aasrita authored and Mergify committed 2026-07-28 19:46:04 +00:00
1 parent 3b678364c8
commit ebf90170bc
6 files changed
+336 -7

No files matched your search

+28
View File
@@ -7199,6 +7199,34 @@ k8s.io/apimachinery/pkg/api/resource.Quantity
Value must be a multiple of 4096 (4Ki).</p>
</td>
</tr>
<tr>
<td>
<code>crushNumFailureDomains</code><br/>
<em>
int32
</em>
</td>
<td>
<em>(Optional)</em>
<p>Number of failure domains to use for erasure coded chunk placement.
When specified along with crushOSDsPerFailureDomain, a CRUSH MSR rule will be created
that distributes chunks across this many failure domains.</p>
</td>
</tr>
<tr>
<td>
<code>crushOSDsPerFailureDomain</code><br/>
<em>
int32
</em>
</td>
<td>
<em>(Optional)</em>
<p>Number of OSDs allowed per failure domain for erasure coded chunk placement.
When specified along with crushNumFailureDomains, a CRUSH MSR rule will be created
that allows up to this many chunks on OSDs within each failure domain.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="ceph.rook.io/v1.ExternalSpec">ExternalSpec