set erasureCoded/replicated settings that fit the smallest cluster

This commit is contained in:
Jean-Baptiste Guerraz committed 2017-11-02 09:58:12 +01:00
1 parent 581ffd97ad
commit b06005ee3e
12 files changed
+22 -22

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@ spec:
size: 3
dataPools:
- erasureCoded:
dataChunks: 6
codingChunks: 2
dataChunks: 2
codingChunks: 1
metadataServer:
activeCount: 1
activeStandby: true
+1 -1
View File
@@ -26,7 +26,7 @@ metadata:
namespace: rook
spec:
replicated:
size: 1
size: 3
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
+1 -1
View File
@@ -32,8 +32,8 @@ spec:
size: 3
dataPools:
- erasureCoded:
codingChunks: 2
dataChunks: 2
codingChunks: 1
metadataServer:
activeCount: 1
activeStandby: true
+2 -2
View File
@@ -29,8 +29,8 @@ spec:
size: 3
dataPool:
erasureCoded:
dataChunks: 6
codingChunks: 2
dataChunks: 2
codingChunks: 1
gateway:
type: s3
sslCertificateRef:
+3 -3
View File
@@ -23,8 +23,8 @@ spec:
size: 3
dataPool:
erasureCoded:
dataChunks: 6
codingChunks: 2
dataChunks: 2
codingChunks: 1
gateway:
type: s3
sslCertificateRef:
@@ -63,7 +63,7 @@ kind: Objectstore
### Pools
The pools allow all of the settings defined in the Pool CRD spec. For more details, see the [Pool CRD](pool-crd.md) settings. In the example above, there must be at least three hosts (size 3) and at least eight devices (6 data + 2 coding chunks) in the cluster.
The pools allow all of the settings defined in the Pool CRD spec. For more details, see the [Pool CRD](pool-crd.md) settings. In the example above, there must be at least three hosts (size 3) and at least three devices (2 data + 1 coding chunks) in the cluster.
- `metadataPool`: The settings used to create all of the object store metadata pools. Must use replication.
- `dataPool`: The settings to create the object store data pool. Can use replication or erasure coding.
+3 -3
View File
@@ -21,8 +21,8 @@ spec:
replicated:
# size: 3
erasureCoded:
codingChunks: 2
dataChunks: 2
codingChunks: 1
```
## Pool Settings
@@ -37,9 +37,9 @@ spec:
- `replicated`: Settings for a replicated pool. If specified, `erasureCoded` settings must not be specified.
- `size`: The number of copies of the data in the pool.
- `erasureCoded`: Settings for an erasure-coded pool. If specified, `replicated` settings must not be specified.
- `codingChunks`: Number of coding chunks per object in an erasure coded storage pool
- `dataChunks`: Number of data chunks per object in an erasure coded storage pool
- `codingChunks`: Number of coding chunks per object in an erasure coded storage pool
- `failureDomain`: The failure domain across which the replicas or chunks of data will be spread. Possible values are `osd` or `host`,
with the default of `host`. For example, if you have replication of size `3` and the failure domain is `host`, all three copies of the data will be
placed on osds that are found on unique hosts. In that case you would be guaranteed to tolerate the failure of two hosts. If the failure domain were `osd`,
you would be able to tolerate the loss of two devices. Similarly for erasure coding, the data and coding chunks would be spread across the requested failure domain.
you would be able to tolerate the loss of two devices. Similarly for erasure coding, the data and coding chunks would be spread across the requested failure domain.
@@ -9,8 +9,8 @@ spec:
# For an erasure-coded pool, comment out the replication size above and uncomment the following settings.
# Make sure you have enough OSDs to support the replica size or erasure code chunks.
#erasureCoded:
# codingChunks: 2
# dataChunks: 2
# codingChunks: 1
---
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
@@ -12,8 +12,8 @@ spec:
dataPools:
- failureDomain: osd
erasureCoded:
dataChunks: 4
codingChunks: 2
dataChunks: 2
codingChunks: 1
# The metadata service (mds) configuration
metadataServer:
# The number of active MDS instances
+2 -2
View File
@@ -14,8 +14,8 @@ spec:
dataPool:
failureDomain: osd
erasureCoded:
dataChunks: 4
codingChunks: 2
dataChunks: 2
codingChunks: 1
# The gaeteway service configuration
gateway:
# type of the gateway (s3)
+1 -1
View File
@@ -12,5 +12,5 @@ spec:
# For an erasure-coded pool, comment out the replicated size above and uncomment the following settings.
# Make sure you have enough OSDs to support the replica size or sum of the erasure coding and data chunks.
#erasureCoded:
# codingChunks: 2
# dataChunks: 2
# codingChunks: 1
@@ -9,8 +9,8 @@ spec:
# For an erasure-coded pool, comment out the replication size above and uncomment the following settings.
# Make sure you have enough OSDs to support the replica size or erasure code chunks.
#erasureCoded:
# codingChunks: 2
# dataChunks: 2
# codingChunks: 1
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
+3 -3
View File
@@ -23,8 +23,8 @@ spec:
size: 3
dataPools:
- erasureCoded:
codingChunks: 2
dataChunks: 2
codingChunks: 1
metadataServer:
activeCount: 1
activeStandby: true
@@ -62,15 +62,15 @@ The pools are the backing data store for the file system and are created with sp
- replicated:
size: 3
- erasureCoded:
codingChunks: 2
dataChunks: 2
codingChunks: 1
```
Multiple data pools can be configured for the file system. Assigning users or files to a pool is left as an exercise for the reader with the [CephFS documentation](http://docs.ceph.com/docs/master/cephfs/file-layouts/).
### Metadata Server
The metadata server settings correspond to the MDS service.
The metadata server settings correspond to the MDS service.
- `activeCount`: The number of active MDS instances. As load increases, CephFS will automatically partition the file system across the MDS instances. Rook will create double the number of MDS instances as requested by the active count. The extra instances will be in standby mode for failover.
- `activeStandby`: If true, the extra MDS instances will be in active standby mode and will keep a warm cache of the file system metadata for faster failover. The instances will be assigned by CephFS in failover pairs. If false, the extra MDS instances will all be on passive standby mode and will not maintain a warm cache of the metadata.
- `placement`: The mds pods can be given standard Kubernetes placement restrictions with `nodeAffinity`, `tolerations`, `podAffinity`, and `podAntiAffinity` similar to placement defined for daemons configured by the [cluster CRD](/cluster/examples/kubernetes/rook-cluster.yaml).