cscetbon / casskop

This Kubernetes operator automates Cassandra operations such as deploying rack aware clusters, scaling up and down, configuring C* and its JVM, upgrading JVM and C*, backup/restores and many more...
https://cscetbon.github.io/casskop/
Apache License 2.0
13 stars 8 forks source link

Allow to configure resources for backrest-sidecar container #107

Closed tomix86 closed 1 year ago

tomix86 commented 1 year ago

Feature Request

Is your feature request related to a problem? Please describe. We are utilizing our own backup implementation for Cassandra and the real resources usage by backrest-sidecar container is substantially below the requests/limits currently set. We have confirmed this by inspecting the historical data in our monitoring solution. Therefore, we'd like to lower the requests/limits for the backrest-sidecar so that we can assign them to the primary cassandra container, while keeping Guaranteed QoS class. The business justification for that is to optimize the utilization of nodes and consequently lower the costs by having to scale-out later.

Describe the solution you'd like to see A possibility to set resources for backrest-sidecar via values.yaml

Describe alternatives you've considered There's no alternative currently as resources are hardcoded in casskop code.

AKamyshnikova commented 1 year ago

@tomix86 You can set resources via cassandraclusters custom resource

spec:
   backRestSidecar:
      resources:
cscetbon commented 1 year ago

@tomix86 as indicated by @AKamyshnikova you can change that as you can see at https://github.com/cscetbon/casskop/blob/master/charts/casskop/crds/db.orange.com_cassandraclusters.yaml#L44-L64.

tomix86 commented 1 year ago

That solves my use-case indeed and I can confirm that it works, thank you for assistance.