Hazelcast single node quick start for debugging

I am writing an application using Hazelcast. My application starts up very slowly because Hazelcast is trying to talk to other nodes on the network at startup. This is fine for production, but when I debug a single-node, it slows down my edit-compile-debug cycle.

Is there a Hazelcast parameter that tells it that there is only one node, so please start quickly and don’t worry, ping the rest of the network?

+6
source share
2 answers

You can disable connection methods:

<join> <multicast enabled="false"> </multicast> <tcp-ip enabled="false"> </tcp-ip> <aws enabled="false"> </aws> </join> 
+3
source

this will save at least 3 seconds when debugging

 System.setProperty("hazelcast.local.localAddress", "127.0.0.1"); 
+4
source

Source: https://habr.com/ru/post/944728/


All Articles