Cluster Operations
IOMesh Cluster can be scaled out and upgraded without interrupting the online services.
Scale IOMesh Storage Cluster
Meta Server
Scale out
Edit meta/replicaCount
in iomesh-values.yaml
. It is recommanded to have 3~5 Meta Servers in a production environment.
Example:
meta:
replicaCount: 3
You may also want to adjust meta/podPolicy
for higher resilience:
meta:
podPolicy:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/e2e-az-name
operator: In
values:
- az1
- az2
Then apply the change:
NOTE: replace
iomesh
with your release name.
helm upgrade --namespace iomesh-system iomesh iomesh/iomesh --values iomesh-values.yaml
Chunk Server
Scale out
Edit chunk/replicaCount
in iomesh-values.yaml
.
chunk:
replicaCount: 5 # <- increase this number to scale Chunk Server
Then apply the change:
NOTE: replace
iomesh
with your release name.
helm upgrade --namespace iomesh-system iomesh iomesh/iomesh --values iomesh-values.yaml
Upgrade IOMesh storage cluster
Follow the following steps to upgrade IOMesh once a new version is released.
NOTE: If you only have 1 replica of meta server or chunk server, the upgrade process will never start.
Export the default config
iomesh-values.yaml
from ChartNOTE: If you already exported the config, you can skip this step.
helm show values iomesh/iomesh > iomesh-values.yaml
Edit
iomesh-values.yaml
# The version of the IOMeshCluster. You get a new release from: http://iomesh.com/docs/release/releases version: v5.0.0-rc5
Upgrade the IOMesh Cluster
NOTE:
iomesh
is the release name, you may modify it.helm upgrade --namespace iomesh-system iomesh iomesh/iomesh --values iomesh-values.yaml
Wait untill the new chunk server pods are ready.
watch kubectl get pod --namespace iomesh-system
Uninstall IOMesh storage cluster
Attention: All data will be lost after you uninstall an IOMesh storage cluster, including PVCs created with IOMesh StorageClass.
Run the following command to uninstall an IOMesh cluster.
NOTE: You may replace
iomesh
with your own name.
helm uninstall --namespace iomesh-system iomesh