-
Notifications
You must be signed in to change notification settings - Fork 441
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
Multiple Memberlists on a single machine #6
Comments
It is a bit confusing. Basically Memberlist requires that the mapping of node Name -> (Addr, Port) being unique. So it means you cannot have two nodes with the same name. Technically the (Addr, Port) tuple should also be unique but I don't think it generates an error for that. The problem is that both of your Memberlist nodes are advertising using the same name (which defaults to the hostname). All you need to do is provide a unique |
You are probably calling |
Ahh, that did it, thanks! After making the change to use a unique name, it's working just fine. Appreciate the quick response. Do you guys prefer questions like this to go to say, the Serf user group, or do issues on Github suffice? |
Issues on Github are fine. But if you prefer the user group, that works too. |
I apologize if I'm having a total brain fart here (stemming from either a Thanksgiving food coma or the fact that this is my first foray into go), but I'm attempting to launch two instances of a service using the Memberlist library on my local machine, using separate ports for Memberlist, but am hitting an error:
Based on the block below (line 586) in the state.go file, it appears as though this configuration may not be supported by Memberlist:
If I read that right, it will print that error and return if the two addresses are NOT the same OR the ports are NOT the same. Should it be the other way around?
The text was updated successfully, but these errors were encountered: