b15b5bc30cec2dc9be6d6488da3e8a6f75a60e05
[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   notification-dispatcher {
12     # Dispatcher is the name of the event-based dispatcher
13     type = Dispatcher
14     # What kind of ExecutionService to use
15     executor = "fork-join-executor"
16     # Configuration for the fork join pool
17     fork-join-executor {
18       # Min number of threads to cap factor-based parallelism number to
19       parallelism-min = 2
20       # Parallelism (threads) ... ceil(available processors * factor)
21       parallelism-factor = 3.0
22       # Max number of threads to cap factor-based parallelism number to
23       parallelism-max = 15
24     }
25     # Throughput defines the maximum number of messages to be
26     # processed per actor before the thread jumps to the next actor.
27     # Set to 1 for as fair as possible.
28     throughput = 1
29   }
30
31   akka {
32     loglevel = "INFO"
33     loggers = ["akka.event.slf4j.Slf4jLogger"]
34     logger-startup-timeout = 300s
35
36     actor {
37       provider = "akka.cluster.ClusterActorRefProvider"
38       serializers {
39         java = "akka.serialization.JavaSerializer"
40         proto = "akka.remote.serialization.ProtobufSerializer"
41         readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
42       }
43
44       serialization-bindings {
45         "com.google.protobuf.Message" = proto
46         "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
47       }
48
49       default-dispatcher {
50         # Setting throughput to 1 makes the dispatcher fair. It processes 1 message from
51         # the mailbox before moving on to the next mailbox
52         throughput = 1
53       }
54
55       default-mailbox {
56         # When not using a BalancingDispatcher it is recommended that we use the SingleConsumerOnlyUnboundedMailbox
57         # as it is the most efficient for multiple producer/single consumer use cases
58         mailbox-type="akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
59       }
60     }
61     remote {
62       log-remote-lifecycle-events = off
63       netty.tcp {
64         hostname = "127.0.0.1"
65         port = 2550
66         maximum-frame-size = 419430400
67         send-buffer-size = 52428800
68         receive-buffer-size = 52428800
69       }
70     }
71
72     cluster {
73       seed-nodes = ["akka.tcp://opendaylight-cluster-data@127.0.0.1:2550"]
74       
75       seed-node-timeout = 12s
76
77       auto-down-unreachable-after = 30s
78
79       roles = [
80         "member-1"
81       ]
82
83     }
84
85     persistence {
86       # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
87       # modifying the following two properties. The directory location specified may be a relative or absolute path. 
88       # The relative path is always relative to KARAF_HOME.
89
90       # snapshot-store.local.dir = "target/snapshots"
91       # journal.leveldb.dir = "target/journal"
92
93       journal {
94         leveldb {
95           # Set native = off to use a Java-only implementation of leveldb.
96           # Note that the Java-only version is not currently considered by Akka to be production quality.
97
98           # native = off
99         }
100       }
101     }
102   }
103 }