Use Akka artery for remote transport
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / resources / application.conf
1 akka {
2     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
3     persistence.journal.plugin = "in-memory-journal"
4
5     loggers = ["akka.testkit.TestEventListener", "akka.event.slf4j.Slf4jLogger"]
6
7     actor {
8          serializers {
9                   java = "akka.serialization.JavaSerializer"
10                   proto = "akka.remote.serialization.ProtobufSerializer"
11          }
12
13         serialization-bindings {
14             "org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification" = java
15             "com.google.protobuf.Message" = proto
16
17         }
18     }
19 }
20
21 in-memory-journal {
22     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
23 }
24
25 in-memory-snapshot-store {
26   # Class name of the plugin.
27   class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
28   # Dispatcher for the plugin actor.
29   plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
30 }
31
32 bounded-mailbox {
33   mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
34   mailbox-capacity = 1000
35   mailbox-push-timeout-time = 100ms
36 }
37
38 Member1 {
39   bounded-mailbox {
40     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
41     mailbox-capacity = 1000
42     mailbox-push-timeout-time = 100ms
43   }
44
45   in-memory-journal {
46     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
47   }
48
49   in-memory-snapshot-store {
50     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
51     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
52   }
53
54   akka {
55     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
56     persistence.journal.plugin = "in-memory-journal"
57
58     loglevel = "INFO"
59
60     actor {
61       provider = "akka.cluster.ClusterActorRefProvider"
62
63       serializers {
64           java = "akka.serialization.JavaSerializer"
65           proto = "akka.remote.serialization.ProtobufSerializer"
66           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
67       }
68
69       serialization-bindings {
70           "com.google.protobuf.Message" = proto
71           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
72       }
73     }
74     remote {
75       log-remote-lifecycle-events = off
76       artery {
77         enabled = on
78         canonical.hostname = "127.0.0.1"
79         canonical.port = 2558
80       }
81
82       netty.tcp {
83         hostname = "127.0.0.1"
84         port = 2558
85       }
86     }
87
88     cluster {
89       retry-unsuccessful-join-after = 100ms
90
91       roles = [
92         "member-1"
93       ]
94     }
95   }
96 }
97
98 Member2 {
99   bounded-mailbox {
100     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
101     mailbox-capacity = 1000
102     mailbox-push-timeout-time = 100ms
103   }
104
105   in-memory-journal {
106     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
107   }
108
109   in-memory-snapshot-store {
110     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
111     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
112   }
113
114   akka {
115     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
116     persistence.journal.plugin = "in-memory-journal"
117
118     actor {
119       provider = "akka.cluster.ClusterActorRefProvider"
120
121       serializers {
122           java = "akka.serialization.JavaSerializer"
123           proto = "akka.remote.serialization.ProtobufSerializer"
124           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
125       }
126
127       serialization-bindings {
128           "com.google.protobuf.Message" = proto
129           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
130       }
131     }
132     remote {
133       log-remote-lifecycle-events = off
134       artery {
135         enabled = on
136         canonical.hostname = "127.0.0.1"
137         canonical.port = 2559
138       }
139
140       netty.tcp {
141         hostname = "127.0.0.1"
142         port = 2559
143       }
144     }
145
146     cluster {
147       retry-unsuccessful-join-after = 100ms
148
149       roles = [
150         "member-2"
151       ]
152     }
153   }
154 }
155
156 Member3 {
157   bounded-mailbox {
158     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
159     mailbox-capacity = 1000
160     mailbox-push-timeout-time = 100ms
161   }
162
163   in-memory-journal {
164     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
165   }
166
167   in-memory-snapshot-store {
168     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
169     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
170   }
171
172   akka {
173     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
174     persistence.journal.plugin = "in-memory-journal"
175
176     loglevel = "INFO"
177
178     actor {
179       provider = "akka.cluster.ClusterActorRefProvider"
180
181       serializers {
182           java = "akka.serialization.JavaSerializer"
183           proto = "akka.remote.serialization.ProtobufSerializer"
184           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
185       }
186
187       serialization-bindings {
188           "com.google.protobuf.Message" = proto
189           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
190       }
191     }
192     remote {
193       log-remote-lifecycle-events = off
194       artery {
195         enabled = on
196         canonical.hostname = "127.0.0.1"
197         canonical.port = 2557
198       }
199
200       netty.tcp {
201         hostname = "127.0.0.1"
202         port = 2557
203       }
204     }
205
206     cluster {
207       retry-unsuccessful-join-after = 100ms
208
209       roles = [
210         "member-3"
211       ]
212     }
213   }
214 }
215
216 Member4 {
217   bounded-mailbox {
218     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
219     mailbox-capacity = 1000
220     mailbox-push-timeout-time = 100ms
221   }
222
223   in-memory-journal {
224     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
225   }
226
227   in-memory-snapshot-store {
228     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
229     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
230   }
231
232   akka {
233     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
234     persistence.journal.plugin = "in-memory-journal"
235
236     loglevel = "INFO"
237
238     actor {
239       provider = "akka.cluster.ClusterActorRefProvider"
240
241       serializers {
242           java = "akka.serialization.JavaSerializer"
243           proto = "akka.remote.serialization.ProtobufSerializer"
244           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
245       }
246
247       serialization-bindings {
248           "com.google.protobuf.Message" = proto
249           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
250       }
251     }
252     remote {
253       log-remote-lifecycle-events = off
254       artery {
255         enabled = on
256         canonical.hostname = "127.0.0.1"
257         canonical.port = 2560
258       }
259
260       netty.tcp {
261         hostname = "127.0.0.1"
262         port = 2560
263       }
264     }
265
266     cluster {
267       retry-unsuccessful-join-after = 100ms
268
269       roles = [
270         "member-4"
271       ]
272     }
273   }
274 }
275
276 Member5 {
277   bounded-mailbox {
278     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
279     mailbox-capacity = 1000
280     mailbox-push-timeout-time = 100ms
281   }
282
283   in-memory-journal {
284     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
285   }
286
287   in-memory-snapshot-store {
288     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
289     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
290   }
291
292   akka {
293     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
294     persistence.journal.plugin = "in-memory-journal"
295
296     loglevel = "INFO"
297
298     actor {
299       provider = "akka.cluster.ClusterActorRefProvider"
300
301       serializers {
302           java = "akka.serialization.JavaSerializer"
303           proto = "akka.remote.serialization.ProtobufSerializer"
304           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
305       }
306
307       serialization-bindings {
308           "com.google.protobuf.Message" = proto
309           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
310       }
311     }
312     remote {
313       log-remote-lifecycle-events = off
314       artery {
315         enabled = on
316         canonical.hostname = "127.0.0.1"
317         canonical.port = 2561
318       }
319
320       netty.tcp {
321         hostname = "127.0.0.1"
322         port = 2561
323       }
324     }
325
326     cluster {
327       retry-unsuccessful-join-after = 100ms
328
329       roles = [
330         "member-5"
331       ]
332     }
333   }
334 }
335
336 Member1-without-artery {
337   akka.remote.artery.enabled = off
338 }
339
340 Member2-without-artery {
341   akka.remote.artery.enabled = off
342 }
343
344 Member3-without-artery {
345   akka.remote.artery.enabled = off
346 }
347
348 Member4-without-artery {
349   akka.remote.artery.enabled = off
350 }
351
352 Member5-without-artery {
353   akka.remote.artery.enabled = off
354 }