-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to set up a cluster with more than two nodes locally(Mac) #144
Comments
Most likely you are running out of memory. By default Cassandra will use 40-50% of total memory. You'll want to set Duplicate of #114, #128. See also https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html |
Thanks, it works after I set MAX_HEAP_SIZE=512m |
Cassandra uses this formula to allocate memory to a Cassandra docker instance So if you have other process comsuming memory and free memory is less than the output of the formula then cassandra docker container will exit with 137 without any logs. In order to resolve this issue the docker container needs to be start by allocating minimum memory. Here is a command to set enviroment variables for alloating memory. Command |
Hi,
I want to set up a local cluster with three nodes locally in my laptop for debugging.
I was following this instruction "Make a cluster" of https://hub.docker.com/_/cassandra/
Only difference is I want every node to expose CQL/thrift ports.
But every time I added the 3rd node, it is broken. The first node (seed node) would exit without any useful information.
First command to spin up 1st node:
Second command to spin up 2nd node:
After everything looks fine in the console output of the above two commands, I started the 3rd command:
Then suddenly the first node would exit. Only left information:
And the 3rd node also exit as well because it couldn't connect to the seed. The 2nd keep alive since it already connected to seed node before.
Some other environment info:
The text was updated successfully, but these errors were encountered: