Skip to content
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

Group Membership fails if Host runs as a domain name #5666

Open
dbrimley opened this issue Jul 7, 2015 · 5 comments
Open

Group Membership fails if Host runs as a domain name #5666

dbrimley opened this issue Jul 7, 2015 · 5 comments

Comments

@dbrimley
Copy link
Contributor

dbrimley commented Jul 7, 2015

If cluster members run in the cluster using their domain names and you have partition groups configured using IP addresses the cluster starts and then throws the following exception ....

“No member group is available to assign partition ownership"

It seems the code mandates using IP address for members and partition groups....

https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/partition/membergroup/ConfigMemberGroupFactory.java#L52

It would be useful if prior to this check a IP lookup was performed if the member is a domain name.

If this is not possible at least throw a more descriptive warning saying that you cannot mix domain name and ip address.

@pveentjer
Copy link
Contributor

Using hostnames in HZ is a pain. Best to run with ip addresses.

@rjsalicco
Copy link
Contributor

Is there a way to use a load balanced DNS entry to route to HZ instances during client or node startup for cluster discovery? For example:

<cluster-members>
            <!--initial cluster members to connect-->
            <address>cache.mycompany.com</address>
</cluster-members>

@mdogan
Copy link
Contributor

mdogan commented Nov 26, 2015

@dbrimley: You can only use either an IP address or a domain name for a single member (at least currently this is how Hazelcast works).
Address (or domain name) is identity of the member in the cluster. If you mix IP and domain name for a member, then we need to do the same check/resolution on every place member's address is used.
For example, opposite of your setup should be valid too, configure members with IP addresses and partition groups with domain names.
To me this makes things very complicated but still can be considered as an enhancement.

@mdogan mdogan modified the milestones: 3.7, 3.6 Nov 26, 2015
@jerrinot jerrinot modified the milestones: Backlog, 3.7 May 30, 2016
@burakcelebi burakcelebi added the Source: Internal PR or issue was opened by an employee label Dec 30, 2017
@mahenderd2
Copy link

Is this issue resolved? seems it's long time issue is been open status

@Holmistr
Copy link
Contributor

@mahenderd2 Unfortunately, there is currently no good resolution for this. It requires non-trivial effort to actually make it working with hostnames. There are plans to address that in future releases, but we have no specific plan as for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants