2f8f9cd1988a08f1bbeaeb5053b570f3468868f2
[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       seed-node-timeout = 12s
56
57       auto-down-unreachable-after = 30s
58
59       roles = [
60         "member-1"
61       ]
62
63     }
64
65     persistence {
66       # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
67       # modifying the following two properties. The directory location specified may be a relative or absolute path. 
68       # The relative path is always relative to KARAF_HOME.
69
70       # snapshot-store.local.dir = "target/snapshots"
71       # journal.leveldb.dir = "target/journal"
72
73       journal {
74         leveldb {
75           # Set native = off to use a Java-only implementation of leveldb.
76           # Note that the Java-only version is not currently considered by Akka to be production quality.
77
78           # native = off
79         }
80       }
81     }
82   }
83 }