blob: 160eaa6ba667393f6a6d13ffe7a2a5d8a96700ff (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<!--
**********************************************************************
Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
This copy of Ice is licensed to you under the terms described in the
ICE_LICENSE file included in this distribution.
**********************************************************************
-->
<icegrid>
<application name="Test" import-default-templates="true">
<!--
This is the IceStorm-HA template, except we use a variable
substitution for the icebox executable.
-->
<server-template id="IceStorm-HA-withsub">
<parameter name="instance-name" default="${application}.IceStorm"/>
<parameter name="node-id"/>
<parameter name="topic-manager-endpoints" default="default"/>
<parameter name="publish-endpoints" default="default"/>
<parameter name="node-endpoints" default="default"/>
<parameter name="flush-timeout" default="1000"/>
<parameter name="publish-replica-group"/>
<parameter name="topic-manager-replica-group"/>
<icebox id="${instance-name}${node-id}" exe="${icebox.exe}" activation="on-demand">
<service-instance template="IceStorm-HA"
instance-name="${instance-name}"
node-id="${node-id}"
topic-manager-endpoints="${topic-manager-endpoints}"
publish-endpoints="${publish-endpoints}"
node-endpoints="${node-endpoints}"
flush-timeout="${flush-timeout}"
publish-replica-group="${publish-replica-group}"
topic-manager-replica-group="${topic-manager-replica-group}">
<properties>
<property name="${service}.LMDB.MapSize" value="1"/>
</properties>
</service-instance>
</icebox>
</server-template>
<replica-group id="PublishReplicaGroup">
</replica-group>
<replica-group id="TopicManagerReplicaGroup">
<object identity="Test.IceStorm/TopicManager" type="::IceStorm::TopicManager"/>
</replica-group>
<node name="localnode">
<server-instance template="IceStorm-HA-withsub"
node-id="1" publish-replica-group="PublishReplicaGroup"
topic-manager-replica-group="TopicManagerReplicaGroup"/>
<icebox id="Test.IceStorm" exe="${icebox.exe}" activation="on-demand">
<service-instance template="IceStorm-HA"
node-id="2"
publish-replica-group="PublishReplicaGroup"
topic-manager-replica-group="TopicManagerReplicaGroup">
<properties>
<property name="${service}.LMDB.MapSize" value="1"/>
</properties>
</service-instance>
<service-instance template="IceStorm-HA"
node-id="3"
publish-replica-group="PublishReplicaGroup"
topic-manager-replica-group="TopicManagerReplicaGroup">
<properties>
<property name="${service}.LMDB.MapSize" value="1"/>
</properties>
</service-instance>
</icebox>
</node>
</application>
</icegrid>
|