96f97cd0c8772dfd8889fd6ca7ec40393d424af3
[controller.git] / opendaylight / md-sal / sal-clustering-config / src / main / resources / initial / akka.conf
1
2 odl-cluster-data {
3   bounded-mailbox {
4     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
5     mailbox-capacity = 1000
6     mailbox-push-timeout-time = 100ms
7   }
8
9   metric-capture-enabled = true
10
11   akka {
12     loglevel = "INFO"
13     loggers = ["akka.event.slf4j.Slf4jLogger"]
14     logger-startup-timeout = 300s
15
16     actor {
17       provider = "akka.cluster.ClusterActorRefProvider"
18       serializers {
19         java = "akka.serialization.JavaSerializer"
20         proto = "akka.remote.serialization.ProtobufSerializer"
21         readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
22       }
23
24       serialization-bindings {
25         "com.google.protobuf.Message" = proto
26         "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
27       }
28
29       default-dispatcher {
30         # Setting throughput to 1 makes the dispatcher fair. It processes 1 message from
31         # the mailbox before moving on to the next mailbox
32         throughput = 1
33       }
34
35       default-mailbox {
36         # When not using a BalancingDispatcher it is recommended that we use the SingleConsumerOnlyUnboundedMailbox
37         # as it is the most efficient for multiple producer/single consumer use cases
38         mailbox-type="akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
39       }
40     }
41     remote {
42       log-remote-lifecycle-events = off
43       netty.tcp {
44         hostname = "127.0.0.1"
45         port = 2550
46         maximum-frame-size = 419430400
47         send-buffer-size = 52428800
48         receive-buffer-size = 52428800
49       }
50     }
51
52     cluster {
53       seed-nodes = ["akka.tcp://opendaylight-cluster-data@127.0.0.1:2550"]
54
55       auto-down-unreachable-after = 30s
56
57       roles = [
58         "member-1"
59       ]
60
61     }
62
63     persistence {
64       # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
65       # modifying the following two properties. The directory location specified may be a relative or absolute path. 
66       # The relative path is always relative to KARAF_HOME.
67
68       # snapshot-store.local.dir = "target/snapshots"
69       # journal.leveldb.dir = "target/journal"
70
71     }
72   }
73 }