Cluster Administration
This document describes administrative operations on a running Alluxio cluster on Kubernetes, such as upgrading to a new version and adding new workers.
Upgrading to a newer Alluxio version
Upgrade the Operator
Upload the new docker images corresponding to the new Alluxio operator version to your image registry and unpack the helm chart of the operator. Refer to the installation doc for details.
Run the following command to apply the new changes to the cluster.
# uninstall the operator. the operator is independent and the status of the operator won't affect the existing Alluxio cluster
$ helm uninstall operator
release "operator" uninstalled
# check if all the resources are removed. the namespace will be the last resource to remove
$ kubectl get ns alluxio-operator
Error from server (NotFound): namespaces "alluxio-operator" not found
# run the command in the new helm chart directory to upgrade the CRDs first
$ kubectl apply -f alluxio-operator/crds 2>/dev/null
customresourcedefinition.apiextensions.k8s.io/alluxioclusters.k8s-operator.alluxio.com configured
customresourcedefinition.apiextensions.k8s.io/underfilesystems.k8s-operator.alluxio.com configured
# use the same operator-config.yaml with only the tag of the image changed to restart the operator
$ helm install operator -f operator-config.yaml alluxio-operator
NAME: operator
LAST DEPLOYED: Thu Jun 27 15:47:44 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: NoneUpgrade the Alluxio cluster
Before the operation you should know:
When the upgrade operation starts, the coordinator, workers, and the DaemonSet FUSE will perform rolling upgrade to use the new image. The existing CSI FUSE pods will not be restarted and upgraded, and only the new pods will use the new image.
While the cluster is being upgraded, the cache hit rate may decrease slightly, but will fully recover once the cluster is fully running again.
Following the steps to upgrade the cluster:
Upload the new docker images corresponding to the new Alluxio version to your image registry. Refer to the installation doc for details.
Update the
imageTagfields inalluxio-cluster.yamlto reflect the new Alluxio version. In the following example the newimageTagwill beAI-3.3-7.0.0.Run the following command to apply the new changes to the cluster.
Scaling the size of the cluster
Scale Up the Workers
Before the operation you should know:
While the cluster is being upgraded, the cache hit rate may decrease slightly, but will fully recover once the cluster is fully running again.
Following the steps to scale up the workers:
Change the
alluxio-cluster.yamlto increase thecountin theworker. In the following example we will scale from 2 workers to 3 workers.Run the following command to apply the new changes to the cluster.
Last updated