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

how to create multiple clusters in one helm deployment #457

Open
amanda45762 opened this issue Jan 27, 2025 · 1 comment
Open

how to create multiple clusters in one helm deployment #457

amanda45762 opened this issue Jan 27, 2025 · 1 comment

Comments

@amanda45762
Copy link

amanda45762 commented Jan 27, 2025

Hi,
How can I create multiple clusters (e.g. one named 'test_cache_1' and one named 'test_cache_2') on the same k8s statefulset nodes (meaning one helm deployment). Is there a way to use multiple different hazelcast.yaml configuration files in one deployment? I have a lot of logical groups (clusters) and don't want to have to deploy a whole different statefulset per cluster.

I see it is possible to have multiple clusters/instances in one JVM based on the docs here https://docs.hazelcast.com/hazelcast/5.5/clusters/creating-clusters

@amanda45762 amanda45762 changed the title how to create multiple clusters on the same k8s statefulset nodes how to create multiple clusters in one helm deployment Jan 27, 2025
@amanda45762
Copy link
Author

amanda45762 commented Jan 29, 2025

Is this newHazelcastInstance method exposed anywhere except java? Seems strange that we would have to write a custom wrapper to start multiple instances on the same jvm, instead of using the default hazelcast jar. https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/core/Hazelcast.java#L60

this example looks as close as I'm going to get to exposing the newHazelcastInstance method: https://github.com/hazelcast/hazelcast-code-samples/blob/master/clients/user-code-deployment/user-code-deployment-member/src/main/java/Member.java

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

No branches or pull requests

1 participant