-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Clustering - Not working? #1389
Comments
This probably should go into the discussions instead, but I'll try to answer here. The clustering is very sensitive to any changes, I've noticed. Change an IP-adress? It breaks. Scrap a node and rebuild it? It breaks. So my best tip after fiddling around with Gravity for some months now, is to just scrap everything (remove containers, compose files and persistent storage) you did and do it all again from beginning; deploy the first node and then the others. It'll probably work fine. While this "scrap everything and begin all over again" approach might appear unconventional I found it to be of not much bother; the cluster is very fast to set up if you have pre-made compose-files and then you can populate the database with dhcp/dns-entries with the API or Gravity CLI. It's a matter of less than a minute to deploy the complete cluster if you have all the files prepared in advance. |
Thanks @tompaah you got me on the right track whilst removing and reinstalling, I spotted the issue ... When creating the config for the 2nd/3rd node, even though I had all options (roles) selected it defaults to just the API in the generated docker-compose ...
Once I amended this to include the extra features it connected and sync'd up fine.
|
I've installed a new Gravity (0.19.0+d971e3b5) in Docker using the default docker compose from the documentation on a Raspberry Pi ARM64 and this is running fine. I've tried to create a cluster by going into Nodes and then Join - I've entered the IP of the host I want to add it onto too and created the docker-compose file for that node. The original node was 10.2.20.24.
When I spin up the docker compose up -d and then check the logs all I have is (this is another Raspberry ARM64 device):
gravity-1 | {"level":"info","ts":1735507101.6110024,"logger":"instance","msg":"Gravity starting","instance":"10.2.20.22","version":"0.19.0+d971e3b5","instance":"10.2.20.22","version":"0.19.0+d971e3b5"}
The text was updated successfully, but these errors were encountered: