Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

I have two Kubernetes clusters. I have created hazelcast-cluster with members A,B,C in East AKS cluster and hazelcast-cluster with members D,E,F in West AKS cluster. Now I want A,B,C to discover D,E,F. How can I do that? #285

Open
AayushiKhandelwal123 opened this issue Dec 17, 2020 · 6 comments

Comments

@AayushiKhandelwal123
Copy link

Both Kubernetes clusters are in different network. I saw this #141 but it has been closed. So I was looking for a solution other than using hazelcast enterprise feature or having one AKS cluster in two regions.

@leszko
Copy link

leszko commented Dec 17, 2020

So you'd like to have one Hazelcast cluster stretched across multiple Kubernetes clusters, right?

Technically, you could do it by using host network or host port (but it's not a recommended approach). Also, if you have one Hazelcast cluster across multiple regions, the performance will be terrible, so you shouldn't do it at all.

The proper way to do it is to have 2 separate Hazelcast cluster with the WAN replication in between. WAN, however is an enterprise feature. If you're interested more in WAN, please check this guide: https://guides.hazelcast.org/kubernetes-wan/.

@AayushiKhandelwal123
Copy link
Author

@leszko I am pretty much naive with Hazelcast. Going for enterprise feature is not an option for me.
So please explain more on using host network ( I tried TCP/IP discovery strategy but it didn't work)
Please tell does the below approach can work?
Have two clients( one in the East Region and one in the West Region) for each Hazelcluster.
Now let's assume I have East Hazelcast cluster ( members A, B, C) and one hazelcast client (Client X) in the East region.
Similarly, I have West Hazelcast cluster ( members D, E, F) and one hazelcast client (Client Y) in the west region.
Now, can Client X or Y get/put data in East Hazelcast Cluster as well as West Hazelcast Cluster using client REST API?

@paritalagt
Copy link

I also have the same problem please let us know the solution if its possible

@paritalagt
Copy link

paritalagt commented Feb 8, 2021

@AayushiKhandelwal123 and @leszko , please let me know if you have any solution .

@AayushiKhandelwal123
Copy link
Author

AayushiKhandelwal123 commented Feb 8, 2021 via email

@dunstanmillwright
Copy link

Updating old issue. as we have similar situation using enterprise HZ.

Wondering whether we can use stretched cluster using TCP proxy thru HTTPROXY kubernetes definition. Basically exposing public addressable ingress endpoint for respective cluster and route the traffic to respective pod by using custom POD selector in the respective K8s cluster.

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

No branches or pull requests

4 participants