Skip to content

Commit

Permalink
add documentation for separated storage
Browse files Browse the repository at this point in the history
  • Loading branch information
aerokite committed May 10, 2018
1 parent 123826d commit 19b53e4
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion docs/guides/elasticsearch/clustering/topology.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ spec:
data:
prefix: data
replicas: 2
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
client:
prefix: client
replicas: 2
Expand Down Expand Up @@ -184,6 +191,9 @@ Three StatefulSets are created

- `spec.replicas` is set to `2`. Two dedicated nodes is created as client.
- Label `node.role.client: set` is added in Pods
- Each Pod will receive a single PersistentVolume with a StorageClass of **standard** and **50Mi** of provisioned storage.

> Default `spec.storage` will be used in Client nodes as no dedicated storage specification is provided

- data-topology-es

Expand All @@ -193,11 +203,20 @@ Three StatefulSets are created
data:
prefix: data
replicas: 2
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
```

This configuration creates a StatefulSet named `data-topology-es` for data node

- `spec.replicas` is set to `2`. Two dedicated nodes is created for data.
- Label `node.role.data: set` is added in Pods
- Each Pod will receive a single PersistentVolume with a StorageClass of **standard** and **1 Gib** of provisioned storage.

- master-topology-es

Expand All @@ -213,7 +232,7 @@ Three StatefulSets are created

- `spec.replicas` is set to `1`. One dedicated node is created as master.
- Label `node.role.master: set` is added in Pods

- Each Pod will receive a single PersistentVolume with a StorageClass of **standard** and **50Mi** of provisioned storage.

> Note: StatefulSet name format: `{topology-prefix}-{elasticsearch-name}`

Expand Down

0 comments on commit 19b53e4

Please sign in to comment.