Fix shard deadlock in 3 nodes
[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       warn-about-java-serializer-usage = false
9     }
10 }
11
12 in-memory-journal {
13     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
14 }
15
16 in-memory-snapshot-store {
17   # Class name of the plugin.
18   class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
19   # Dispatcher for the plugin actor.
20   plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
21 }
22
23 bounded-mailbox {
24   mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
25   mailbox-capacity = 1000
26   mailbox-push-timeout-time = 100ms
27 }
28
29 test-config {
30   bounded-mailbox {
31     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
32     mailbox-capacity = 1000
33     mailbox-push-timeout-time = 100ms
34   }
35
36   in-memory-journal {
37     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
38   }
39
40   in-memory-snapshot-store {
41     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
42     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
43   }
44
45   shard-dispatcher {
46     type = Dispatcher
47     executor = "default-executor"
48     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
49   }
50
51   akka {
52     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
53     persistence.journal.plugin = "in-memory-journal"
54
55     loglevel = "INFO"
56
57     actor {
58       provider = "akka.cluster.ClusterActorRefProvider"
59
60       serializers {
61           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
62       }
63
64       serialization-bindings {
65           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
66       }
67
68       warn-about-java-serializer-usage = false
69     }
70     remote {
71       log-remote-lifecycle-events = off
72       artery {
73         enabled = on
74         canonical.hostname = "127.0.0.1"
75         canonical.port = 2565
76       }
77
78       netty.tcp {
79         hostname = "127.0.0.1"
80         port = 2565
81       }
82     }
83
84     cluster {
85       auto-down-unreachable-after = 100s
86       retry-unsuccessful-join-after = 100ms
87
88       roles = [
89         "member-1"
90       ]
91     }
92   }
93 }
94
95 Member1 {
96   bounded-mailbox {
97     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
98     mailbox-capacity = 1000
99     mailbox-push-timeout-time = 100ms
100   }
101
102   in-memory-journal {
103     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
104   }
105
106   in-memory-snapshot-store {
107     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
108     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
109   }
110
111   shard-dispatcher {
112     type = Dispatcher
113     executor = "default-executor"
114     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
115   }
116
117   akka {
118     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
119     persistence.journal.plugin = "in-memory-journal"
120
121     loglevel = "INFO"
122
123     actor {
124       provider = "akka.cluster.ClusterActorRefProvider"
125
126       serializers {
127           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
128       }
129
130       serialization-bindings {
131           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
132       }
133
134       warn-about-java-serializer-usage = false
135     }
136     remote {
137       log-remote-lifecycle-events = off
138       artery {
139         enabled = on
140         canonical.hostname = "127.0.0.1"
141         canonical.port = 2558
142       }
143
144       netty.tcp {
145         hostname = "127.0.0.1"
146         port = 2558
147       }
148     }
149
150     cluster {
151       retry-unsuccessful-join-after = 100ms
152
153       roles = [
154         "member-1"
155       ]
156     }
157   }
158 }
159
160 Member2 {
161   bounded-mailbox {
162     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
163     mailbox-capacity = 1000
164     mailbox-push-timeout-time = 100ms
165   }
166
167   in-memory-journal {
168     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
169   }
170
171   in-memory-snapshot-store {
172     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
173     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
174   }
175
176   shard-dispatcher {
177     type = Dispatcher
178     executor = "default-executor"
179     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
180   }
181
182   akka {
183     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
184     persistence.journal.plugin = "in-memory-journal"
185
186     actor {
187       provider = "akka.cluster.ClusterActorRefProvider"
188
189       serializers {
190           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
191       }
192
193       serialization-bindings {
194           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
195       }
196
197       warn-about-java-serializer-usage = false
198     }
199     remote {
200       log-remote-lifecycle-events = off
201       artery {
202         enabled = on
203         canonical.hostname = "127.0.0.1"
204         canonical.port = 2559
205       }
206
207       netty.tcp {
208         hostname = "127.0.0.1"
209         port = 2559
210       }
211     }
212
213     cluster {
214       retry-unsuccessful-join-after = 100ms
215
216       roles = [
217         "member-2"
218       ]
219     }
220   }
221 }
222
223 Member3 {
224   bounded-mailbox {
225     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
226     mailbox-capacity = 1000
227     mailbox-push-timeout-time = 100ms
228   }
229
230   in-memory-journal {
231     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
232   }
233
234   in-memory-snapshot-store {
235     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
236     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
237   }
238
239   shard-dispatcher {
240     type = Dispatcher
241     executor = "default-executor"
242     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
243   }
244
245   akka {
246     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
247     persistence.journal.plugin = "in-memory-journal"
248
249     loglevel = "INFO"
250
251     actor {
252       provider = "akka.cluster.ClusterActorRefProvider"
253
254       serializers {
255           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
256       }
257
258       serialization-bindings {
259           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
260       }
261
262       warn-about-java-serializer-usage = false
263     }
264     remote {
265       log-remote-lifecycle-events = off
266       artery {
267         enabled = on
268         canonical.hostname = "127.0.0.1"
269         canonical.port = 2557
270       }
271
272       netty.tcp {
273         hostname = "127.0.0.1"
274         port = 2557
275       }
276     }
277
278     cluster {
279       retry-unsuccessful-join-after = 100ms
280
281       roles = [
282         "member-3"
283       ]
284     }
285   }
286 }
287
288 Member4 {
289   bounded-mailbox {
290     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
291     mailbox-capacity = 1000
292     mailbox-push-timeout-time = 100ms
293   }
294
295   in-memory-journal {
296     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
297   }
298
299   in-memory-snapshot-store {
300     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
301     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
302   }
303
304   shard-dispatcher {
305     type = Dispatcher
306     executor = "default-executor"
307     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
308   }
309
310   akka {
311     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
312     persistence.journal.plugin = "in-memory-journal"
313
314     loglevel = "INFO"
315
316     actor {
317       provider = "akka.cluster.ClusterActorRefProvider"
318
319       serializers {
320           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
321       }
322
323       serialization-bindings {
324           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
325       }
326
327       warn-about-java-serializer-usage = false
328     }
329     remote {
330       log-remote-lifecycle-events = off
331       artery {
332         enabled = on
333         canonical.hostname = "127.0.0.1"
334         canonical.port = 2560
335       }
336
337       netty.tcp {
338         hostname = "127.0.0.1"
339         port = 2560
340       }
341     }
342
343     cluster {
344       retry-unsuccessful-join-after = 100ms
345
346       roles = [
347         "member-4"
348       ]
349     }
350   }
351 }
352
353 Member5 {
354   bounded-mailbox {
355     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
356     mailbox-capacity = 1000
357     mailbox-push-timeout-time = 100ms
358   }
359
360   in-memory-journal {
361     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
362   }
363
364   in-memory-snapshot-store {
365     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
366     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
367   }
368
369   shard-dispatcher {
370     type = Dispatcher
371     executor = "default-executor"
372     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
373   }
374
375   akka {
376     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
377     persistence.journal.plugin = "in-memory-journal"
378
379     loglevel = "INFO"
380
381     actor {
382       provider = "akka.cluster.ClusterActorRefProvider"
383
384       serializers {
385           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
386       }
387
388       serialization-bindings {
389           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
390       }
391
392       warn-about-java-serializer-usage = false
393     }
394     remote {
395       log-remote-lifecycle-events = off
396       artery {
397         enabled = on
398         canonical.hostname = "127.0.0.1"
399         canonical.port = 2561
400       }
401
402       netty.tcp {
403         hostname = "127.0.0.1"
404         port = 2561
405       }
406     }
407
408     cluster {
409       retry-unsuccessful-join-after = 100ms
410
411       roles = [
412         "member-5"
413       ]
414     }
415   }
416 }
417
418 Member256 {
419   bounded-mailbox {
420     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
421     mailbox-capacity = 1000
422     mailbox-push-timeout-time = 100ms
423   }
424
425   in-memory-journal {
426     class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal"
427   }
428
429   in-memory-snapshot-store {
430     class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore"
431     plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
432   }
433
434   shard-dispatcher {
435     type = Dispatcher
436     executor = "default-executor"
437     mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox"
438   }
439
440   akka {
441     persistence.snapshot-store.plugin = "in-memory-snapshot-store"
442     persistence.journal.plugin = "in-memory-journal"
443
444     loglevel = "INFO"
445
446     actor {
447       provider = "akka.cluster.ClusterActorRefProvider"
448
449       serializers {
450           readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
451       }
452
453       serialization-bindings {
454           "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
455       }
456
457       warn-about-java-serializer-usage = false
458     }
459     remote {
460       log-remote-lifecycle-events = off
461       artery {
462         enabled = on
463         canonical.hostname = "127.0.0.1"
464         canonical.port = 2562
465       }
466
467       netty.tcp {
468         hostname = "127.0.0.1"
469         port = 2562
470       }
471     }
472
473     cluster {
474       retry-unsuccessful-join-after = 100ms
475
476       roles = [
477         "member-256"
478       ]
479     }
480   }
481 }
482
483 Member1-without-artery {
484   akka.remote.artery.enabled = off
485 }
486
487 Member2-without-artery {
488   akka.remote.artery.enabled = off
489 }
490
491 Member3-without-artery {
492   akka.remote.artery.enabled = off
493 }
494
495 Member4-without-artery {
496   akka.remote.artery.enabled = off
497 }
498
499 Member5-without-artery {
500   akka.remote.artery.enabled = off
501 }