RE: Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Manu Chadha
The operator doesn’t accept 0. Changing the size in example-cass-dc-minimal.yaml doesn't work as I get error `The CassandraDatacenter "dc1" is invalid: spec.size: Invalid value: 1: spec.size in body should be greater than or equal to 1` Sent from Mail

Re: Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Erick Ramirez
I stand corrected. Happy to be schooled by one of the authors of cass-operator. :) On Thu, 8 Oct 2020 at 15:54, Christopher Bradford wrote: > This isn’t really a scaling operation. It’s a start / stop operation. In > my mind scaling the cluster would change the tokens / replicas. Here the > requ

Re: Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Christopher Bradford
This isn’t really a scaling operation. It’s a start / stop operation. In my mind scaling the cluster would change the tokens / replicas. Here the request seems to be all or nothing. On a side note scale down operations were merged 3 days ago in PR #265 ( https://github.com/datastax/cass-operator/p

Re: Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Christopher Bradford
cass-operator has a parameter spec.stopped ( https://github.com/datastax/cass-operator/blob/master/operator/example-cassdc-yaml/cassandra-3.11.x/example-cassdc-full.yaml#L65) when set to true the underlying stateful sets are scaled down to 0 while keeping the persistent volumes. This allows you to

Re: Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Erick Ramirez
The cass-operator does not support scaling down at this point, only scaling up. So the operation you're after isn't possible. Cheers! >

Re: Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Oleksandr Shulgin
On Thu, Oct 8, 2020 at 12:21 AM Manu Chadha wrote: > Hi > > > > I have created a Cassandra cluster on Kubernetes using cass-operator on > gcp. It is for my personal experimentation. To avoid incurring cost, I > want to stop the cluster when I am not using it and start it when I need it > without

Reducing no. of nodes to 0 without losing data

2020-10-07 Thread Manu Chadha
Hi I have created a Cassandra cluster on Kubernetes using cass-operator on gcp. It is for my personal experimentation. To avoid incurring cost, I want to stop the cluster when I am not using it and start it when I need it without losing data. Is there a way to do so? Would setting number of siz