Maintenance Tasks

How to install Altinity.Cloud Anywhere on Google Cloud Platform Google Kubernetes Engine (GKE).

8 May 2023 · Read time 4 min


This section lists adminstration tasks to:

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:

  • CPU
  • Node Storage size
  • Volumes
  • Number of Shards
  • Number of Replicas

To rescale your GKE cluster using the Altinity Cloud Manager cluster tools:

  1. Select Clusters from the ACM left pane then select a running cluster to rescale.
  2. Select the menu ACTIONS 》Rescale item.
  3. 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)
  1. Select OK, then CONFIRM at the Rescale Confirmation window.
  2. 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

  1. In the ACM, select Environments from the left-hand navigation pane.
  2. From the environment menu located beside your login name at the top right of the ACM, select your environment name.
  3. 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

More Information

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  n2-standard-4  1.24.10-gke.2300  6          RUNNING
gcloud container clusters delete cluster-1 --zone=us-west1

More Information

Last modified 2023.05.11: Added Google GKE Installation instructions