diff --git a/Documentation/filesystem-crd.md b/Documentation/filesystem-crd.md index 620091366..f5f3a49d2 100644 --- a/Documentation/filesystem-crd.md +++ b/Documentation/filesystem-crd.md @@ -23,8 +23,8 @@ spec: size: 3 dataPools: - erasureCoded: - dataChunks: 6 - codingChunks: 2 + dataChunks: 2 + codingChunks: 1 metadataServer: activeCount: 1 activeStandby: true diff --git a/Documentation/k8s-block.md b/Documentation/k8s-block.md index 4ee4c61b7..830e7b5a1 100644 --- a/Documentation/k8s-block.md +++ b/Documentation/k8s-block.md @@ -26,7 +26,7 @@ metadata: namespace: rook spec: replicated: - size: 1 + size: 3 --- apiVersion: storage.k8s.io/v1 kind: StorageClass diff --git a/Documentation/k8s-filesystem.md b/Documentation/k8s-filesystem.md index 4b12682e9..5530c1395 100644 --- a/Documentation/k8s-filesystem.md +++ b/Documentation/k8s-filesystem.md @@ -32,8 +32,8 @@ spec: size: 3 dataPools: - erasureCoded: - codingChunks: 2 dataChunks: 2 + codingChunks: 1 metadataServer: activeCount: 1 activeStandby: true diff --git a/Documentation/k8s-object.md b/Documentation/k8s-object.md index ae58de99a..182c834a5 100644 --- a/Documentation/k8s-object.md +++ b/Documentation/k8s-object.md @@ -29,8 +29,8 @@ spec: size: 3 dataPool: erasureCoded: - dataChunks: 6 - codingChunks: 2 + dataChunks: 2 + codingChunks: 1 gateway: type: s3 sslCertificateRef: diff --git a/Documentation/object-store-crd.md b/Documentation/object-store-crd.md index bb0b4b188..a087d48da 100644 --- a/Documentation/object-store-crd.md +++ b/Documentation/object-store-crd.md @@ -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. diff --git a/Documentation/pool-crd.md b/Documentation/pool-crd.md index 127826d67..2fe2f950d 100644 --- a/Documentation/pool-crd.md +++ b/Documentation/pool-crd.md @@ -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. \ No newline at end of file +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. diff --git a/cluster/examples/kubernetes/1.5/rook-storageclass.yaml b/cluster/examples/kubernetes/1.5/rook-storageclass.yaml index f61abb153..a0267fb5b 100644 --- a/cluster/examples/kubernetes/1.5/rook-storageclass.yaml +++ b/cluster/examples/kubernetes/1.5/rook-storageclass.yaml @@ -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 diff --git a/cluster/examples/kubernetes/rook-filesystem.yaml b/cluster/examples/kubernetes/rook-filesystem.yaml index 220bc7866..f8da76ae7 100644 --- a/cluster/examples/kubernetes/rook-filesystem.yaml +++ b/cluster/examples/kubernetes/rook-filesystem.yaml @@ -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 diff --git a/cluster/examples/kubernetes/rook-object.yaml b/cluster/examples/kubernetes/rook-object.yaml index ecc1847c7..64b6deb16 100644 --- a/cluster/examples/kubernetes/rook-object.yaml +++ b/cluster/examples/kubernetes/rook-object.yaml @@ -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) diff --git a/cluster/examples/kubernetes/rook-pool.yaml b/cluster/examples/kubernetes/rook-pool.yaml index 5298a3c70..ffd72fb35 100644 --- a/cluster/examples/kubernetes/rook-pool.yaml +++ b/cluster/examples/kubernetes/rook-pool.yaml @@ -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 diff --git a/cluster/examples/kubernetes/rook-storageclass.yaml b/cluster/examples/kubernetes/rook-storageclass.yaml index 2c3125364..2ec3b83a1 100644 --- a/cluster/examples/kubernetes/rook-storageclass.yaml +++ b/cluster/examples/kubernetes/rook-storageclass.yaml @@ -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 diff --git a/design/filesystem.md b/design/filesystem.md index 0e7a6a2a1..d3816fb76 100644 --- a/design/filesystem.md +++ b/design/filesystem.md @@ -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).