DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

nagasree963_193876 avatar image
nagasree963_193876 asked ·

How do I increase the CPU/memory on nodes in a Kubernetes cluster?

[FOLLOW UP QUESTION TO #6379]

okay. What I want to know actually, there is a field called "size", where it indicates number of nodes. It is a way of horizontal scaling. Is there any way for vertical scaling (increase of CPU/memory).

cass-operator
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered ·

To add to Saravanan's answer, you need to edit the configuration of your cluster using the kubectl edit command. For example:

$ kubectl -n cass-operator edit cassdc dc1

You will need to reconfigure the resources allocated to the nodes. Here is an example allocation in the cassandra-3.11.6/example-cassdc-full.yaml YAML on GitHub:

  resources:
    requests:
      memory: 24Gi
      cpu: 6000m
    limits:
      memory: 24Gi
      cpu: 6000m

When you save the configuration, the cass-operator will apply the changes and perform a rolling restart. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

saravanan.chinnachamy_185977 avatar image
saravanan.chinnachamy_185977 answered ·

Please see the Resources section in the cass-operator yaml

https://github.com/datastax/cass-operator/blob/master/operator/example-cassdc-yaml/dse-6.8.x/example-cassdc-full.yaml

You have the ability to control how much cpu and memory you can allot to each pod. In our case each pod is like a node.

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.