7

I'm writing an app that uses Hazelcast. My app is really slow to start because Hazelcast tries to talk to other nodes on the network on startup. This is fine for production, but when I'm doing single-node debugging it really slows down my edit-compile-run-debug cycle.

Is there a Hazelcast setting that tells it that there's only one node so please start quickly and don't bother pinging the rest of the network?

ccleve
  • 15,239
  • 27
  • 91
  • 157

2 Answers2

5

this will save you at least 3 sec while debugging

System.setProperty("hazelcast.local.localAddress", "127.0.0.1");
ali
  • 876
  • 4
  • 9
5

You can disable join methods:

    <join>
        <multicast enabled="false">
        </multicast>
        <tcp-ip enabled="false">
        </tcp-ip>
        <aws enabled="false">
        </aws>
    </join>
enesness
  • 3,123
  • 5
  • 31
  • 33