Is it possible to scale the clickhouse deployment ...
# support
d
Is it possible to scale the clickhouse deployment after initial deployment with helm? i want to add these values, but it doesn't seem to scale up
Copy code
clickhouse:
  layout:
    shardsCount: 2
    replicasCount: 2
  zookeeper:
    replicaCount: 3
n
Could you please share the logs from clickhouse-operator pod
d
I tried again today, it is just not updating the CHI, the CHI always states the following:
Copy code
kubectl get chi shared-signoz-clickhouse -n shared-signoz -o yaml \
  | yq '.spec.configuration.clusters[0].layout'

replicasCount: 1
shardsCount: 1
even though my operator is like this:
Copy code
helm get values shared-signoz -n shared-signoz                                                                                        
USER-SUPPLIED VALUES:
alertmanager:
  persistence:
    size: 1Gi
clickhouse:
  layout:
    replicasCount: 2
    shardsCount: 2
  persistence:
    accessModes:
    - ReadWriteOnce
    enabled: true
    size: 200Gi
    storageClass: null
  resources:
    requests:
      cpu: 3
      memory: 8Gi
  zookeeper:
    replicaCount: 3
Now my shared-signoz-schema-migrator-sync-znspd is stuck on the following:
Copy code
waiting for clickhouse with correct shard count
expected shard count: 2, current shard count: 1
waiting for clickhouse with correct shard count
expected shard count: 2, current shard count: 1
waiting for clickhouse with correct shard count
expected shard count: 2, current shard count: 1
waiting for clickhouse with correct shard count
@Nagesh Bansal any tips?
n
Hey @Daan Persoons, can you check the sts once, whether the clickhouse-operator has updated the chi sts
d
What do you mean exactly? It just doesn't update
n
Interesting, let me try it once from my end also
d
Perfect, let me know 🙂
We never had any troubles, so we didn't need to upgrade cluster, but since last upgrade our clickhouse is too slow to manage our inputs, that's why I want to scale
n
Do you see any pods named as
kube-scheduler-*
d
Nope, no pod available
Clickhouse zookeeper does scale correctly though
n
Didn't get it? you meant you're able to scale clickhouse cluster as per mentioned requirement:
Copy code
clickhouse:
  layout:
    shardsCount: 2
    replicasCount: 2
  zookeeper:
    replicaCount: 3
d
Oh shit, I mean zookeeper does scale correctly
n
okay
d
Does it work at your side?
n
Nope, checking on the issue
d
Oke perfect 🙂
Any update?