Files
my-rook-config/deploy/examples/object-shared-pools.yaml
Travis Nielsen c05768feb3 docs: add pool parameter for erasure code optimizations
Ceph Tentacle v20 comes with erasure coding optimizations
that must be enabled explicitly with a setting on the pool.
Add this setting to the docs and examples.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-12-04 11:42:07 -07:00

53 lines
1.6 KiB
YAML

#################################################################################################################
# Create the pools that can be shared by multiple object stores. A minimum of 3 hosts with
# OSDs are required in this example. This example shows two object stores being created with the same
# shared metadata and data pools. The pool sharing will utilize RADOS namespaces to keep the object store
# data independent, while avoiding the growth of PGs in the cluster.
# kubectl create -f object-shared-pools.yaml
# kubectl create -f object-a.yaml -f object-b.yaml
#################################################################################################################
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: rgw-root
namespace: rook-ceph # namespace:cluster
spec:
name: .rgw.root
failureDomain: host
replicated:
size: 3
requireSafeReplicaSize: false
parameters:
pg_num: "8"
application: rgw
---
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: rgw-meta-pool
namespace: rook-ceph # namespace:cluster
spec:
failureDomain: host
replicated:
size: 3
requireSafeReplicaSize: false
parameters:
pg_num: "8"
application: rgw
---
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: rgw-data-pool
namespace: rook-ceph # namespace:cluster
spec:
failureDomain: osd
erasureCoded:
# For production it is recommended to use more chunks, such as 4+2 or 8+4
dataChunks: 2
codingChunks: 1
application: rgw
parameters:
# Ceph Tentacle v20 has optimizations that need to be explicitly enabled
# allow_ec_optimizations: "true"