Can't add server to cluster
Hi
I've installed the Membase Community Edition on 3 Windows 32 bit PCs on the same network. The first one I setup as a new cluster and then the other 2 I tried to add to the cluster, but both failed to connect, so I set them up as a new cluster. I then tried to add each of the servers to any of the other 2 cluster, both via the web interface and via command line, but have so far been unsuccessful.
An example of the error I receive, when trying to add via the web console, is the following: "Attention - Got error response from remote node: Failed to reach erlang port mapper at your node. Error: timeout" and the log displays the following: "During node join, the remote host "192.168.2.28" on port 8091 returned failure."
The only thing that I can see that might be a problem is the each of the clusters have a server running on localhost, but the IP address that it claims to have is not the host's IP address and is in fact on a completely different subnet.
I disable the firewall on all 3 PCs in case that was blocking traffic and haven't changed any of the default configuration.
How can I setup a cluster with more than one server in it?
It sounds like the first problem caused the configuration to get corrupted (they both think they are part of a cluster that they actually aren't).
I'm looking into what caused this, but a clean uninstall/reinstall should clear it up for you.
Let me know if that works.
Perry
Hi Perry
Thank you for your response.
I uninstalled membase on all 3 PCs and reinstalled but still have the same problems listed above, however I did realise what the problem was. VMware happened to be install on all 3 PCs and so Membase was selecting one of the virtual network IPs. I disabled all the network connections expect for the one I want Membase to work from and reinstalled Membase and it used the correct subnet.
I then stopped the service on the one PC and delete the config (C:\Program Files\Membase\Server\config\ns_1), data (C:\Program Files\Membase\Server\data\ns_1) and bucket (C:\Program Files\Membase\Server\Mnesia.ns_1@192.168.198.1) folders and start the service and connected to the cluster, but the PC still said the server was on the 192.168.198.1 network.
I then reinstalled the Membase on that PC and it then selected the correct subnet.
I would be great if I could select the network interface I want Membase to work from.
Thanks for the feedback. I just updated the instructions at http://wiki.membase.org/display/membase/Using+Membase+in+the+Cloud to add instructions for Windows.
Let me know if that helps.
Perry
I found that 2 of the servers needed me to create the C:\Program Files\Membase\Server\tmp folder. When trying to connect those 2 together, they now report that "The server is already part of this cluster", but only 1 server is listed on the web console of both PCs, although it appears that both PCs have their memcache server IP address as the same IP address (both are different from their host PC's IP address). Is there a way for me to change the IP address that membase runs the on?
The first PC still reports the above error.