forked from bitsofinfo/hazelcast-etcd-discovery-spi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexplicitIpPortRegistrator-example.xml
50 lines (41 loc) · 2.28 KB
/
explicitIpPortRegistrator-example.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<hazelcast id="hazelcast-etcd-discovery"
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.6.xsd"
xmlns="http://www.hazelcast.com/schema/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- NOTE! any XML value below can be variables that will be fetched from
-D system properties @see http://docs.hazelcast.org/docs/3.6-EA/manual/html-single/index.html#using-variables -->
<group>
<name>hazelcast-etcd-discovery-spi</name>
<password>haz3lcast1</password>
</group>
<properties>
<property name="hazelcast.discovery.enabled">true</property>
<property name="hazelcast.shutdownhook.enabled">false</property>
</properties>
<network>
<port auto-increment="true">5701</port>
<join>
<multicast enabled="false"/>
<aws enabled="false"/>
<tcp-ip enabled="false" />
<discovery-strategies>
<discovery-strategy enabled="true"
class="org.bitsofinfo.hazelcast.discovery.etcd.EtcdDiscoveryStrategy">
<properties>
<property name="etcd-uris">http://localhost:4001</property>
<property name="etcd-service-name">hz-discovery-test-cluster</property>
<property name="etcd-discovery-delay-ms">10000</property>
<property name="etcd-registrator">org.bitsofinfo.hazelcast.discovery.etcd.ExplicitIpPortRegistrator</property>
<property name="etcd-registrator-config"><![CDATA[
{
"registerWithIpAddress":"192.168.0.208",
"registerWithPort":5701
}
]]></property>
</properties>
</discovery-strategy>
</discovery-strategies>
</join>
</network>
</hazelcast>