8 May 2023 · Read time 4 min
This section lists adminstration tasks to:
- Use the ACM to rescale your GKE clusters
- Use the ACM to reset an Altinity.Cloud Anywhere connection to a remote GKE cluster
- Use the gcloud terminal to delete ClickHouse namespaces and instances
- Use the gcloud terminal to delete your GKE cluster
How to rescale a GKE-hosted ClickHouse Cluster using the Altinity Cloud Manager
To see detail instructions with screenshots to rescale your GKE cluster using the Altinity Cloud Manager cluster tools, follow the instructions on this page:
Use the Altinity Cloud Manager menu in your cluster: Actions 》Rescale to change:
- Node Storage size
- Number of Shards
- Number of Replicas
To rescale your GKE cluster using the Altinity Cloud Manager cluster tools:
- Select Clusters from the ACM left pane then select a running cluster to rescale.
- Select the menu ACTIONS 》Rescale item.
- In the Rescale Cluster window, adjust the following settings as needed in the column labelled Desired:
- Number of Shards (Example: 2)
- Number of Replicas (Example: 2)
- Node Type (Example: n2d-standard-32)
- Node Storage (GB) > (Example: 50)
- Number of Volumes > (Example: 2)
- Select OK, then CONFIRM at the Rescale Confirmation window.
- Confirm that the new values appear in your cluster dashboard panel. NOTE: Cluster Node Storage size may not be decreased, only increased by at least 10%.
How to reset your Anywhere environment
Resetting your Altinity.Cloud anywhere ClickHouse cluster from the ACM and your GKE environment will let you create a new connection.
In the Environment section, selecting your Anywhere environment name displays the Connection Setup wizard.
use the ACM Reset Anywhere function, then run the terminal commands to delete the ClickHouse
- In the ACM, select Environments from the left-hand navigation pane.
- From the environment menu located beside your login name at the top right of the ACM, select your environment name.
- In the ACTION menu, select Reset Anywhere.
The result is that you will see the Anywhere Connection Setup screen and provisioning wizard that shows you the connection string to copy and paste to deploy a new Anywhere environment.
How to delete your Anywhere cluster
This section covers how to delete your GKE cluster using the ACM’s Reset Anywhere function, then removing the altinity-cloud namespaces from your GKE environment.
Check your namespaces to confirm that the altinity-cloud namespaces are present.
kubectl get ns NAME STATUS AGE altinity-cloud-managed-clickhouse Active 12d altinity-cloud-system Active 12d default Active 12d kube-node-lease Active 12d kube-public Active 12d kube-system Active 12d
To delete ClickHouse services and altinity-cloud namespaces, run the following commands in sequence:
kubectl delete chi --all -n altinity-cloud-managed-clickhouse kubectl delete ns altinity-cloud-managed-clickhouse kubectl delete ns altinity-cloud-system
Check the namespace to verify the two with the prefix altinity-cloud are deleted.
kubectl get ns NAME STATUS AGE default Active 12d kube-node-lease Active 12d kube-public Active 12d kube-system Active 12d
How to delete your GKE Cluster
From your glcoud terminal, delete your GKE cluster as follows:
gcloud container clusters list cluster-1 us-west1 1.24.10-gke.2300 126.96.36.199 n2-standard-4 1.24.10-gke.2300 6 RUNNING gcloud container clusters delete cluster-1 --zone=us-west1
Was this page helpful?
Glad to hear it!
Sorry to hear that. We'll track this issue and see how we can improve.