Bug 4823: Offload generation of DCNs from Shard
[controller.git] / opendaylight / md-sal / sal-clustering-config / src / main / resources / initial / factory-akka.conf
1
2 odl-cluster-data {
3   bounded-mailbox {
4     mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox"
5     mailbox-capacity = 5000
6     mailbox-push-timeout-time = 10ms
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       warn-about-java-serializer-usage = off
38       provider = "akka.cluster.ClusterActorRefProvider"
39       serializers {
40         java = "akka.serialization.JavaSerializer"
41         proto = "akka.remote.serialization.ProtobufSerializer"
42         readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer"
43       }
44
45       serialization-bindings {
46         "com.google.protobuf.Message" = proto
47         "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal
48       }
49
50       default-dispatcher {
51         # Setting throughput to 1 makes the dispatcher fair. It processes 1 message from
52         # the mailbox before moving on to the next mailbox
53         throughput = 1
54       }
55
56       default-mailbox {
57         # When not using a BalancingDispatcher it is recommended that we use the SingleConsumerOnlyUnboundedMailbox
58         # as it is the most efficient for multiple producer/single consumer use cases
59         mailbox-type="akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
60       }
61     }
62     remote {
63       log-remote-lifecycle-events = off
64       netty.tcp {
65         hostname = "127.0.0.1"
66         port = 2550
67         maximum-frame-size = 419430400
68         send-buffer-size = 52428800
69         receive-buffer-size = 52428800
70       }
71     }
72
73     cluster {
74       seed-nodes = ["akka.tcp://opendaylight-cluster-data@127.0.0.1:2550"]
75
76       seed-node-timeout = 12s
77
78       auto-down-unreachable-after = 30s
79
80       roles = [
81         "member-1"
82       ]
83
84     }
85
86     persistence {
87       journal.plugin = akka.persistence.journal.leveldb
88       snapshot-store.plugin = akka.persistence.snapshot-store.local
89     }
90   }
91 }