/
test.conf
270 lines (222 loc) · 7.42 KB
/
test.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
ditto {
mapping-strategy.implementation = "org.eclipse.ditto.services.models.connectivity.ConnectivityMappingStrategy"
connectivity {
connection {
snapshot {
threshold = 5
}
flush-pending-responses-timeout = 0s
}
mapping {
javascript {
maxScriptSizeBytes = 50000 # 50kB
maxScriptExecutionTime = 500ms
maxScriptStackDepth = 10
}
}
reconnect {
snapshot {
threshold = 5
}
}
client.init-timeout = 1s
}
}
akka {
loggers = ["akka.event.slf4j.Slf4jLogger"]
loglevel = "DEBUG"
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
# for log messages during the actor system is starting up and shutting down:
stdout-loglevel = "WARNING"
log-config-on-start = off
actor {
provider = "akka.cluster.ClusterActorRefProvider"
enable-additional-serialization-bindings = on
# this is only intended for testing.
serialize-messages = off
serialize-creators = off
debug {
lifecycle = on
}
default-dispatcher {
fork-join-executor {
parallelism-min = 4
parallelism-factor = 3.0
parallelism-max = 32
parallelism-max = ${?DEFAULT_DISPATCHER_PARALLELISM_MAX}
}
}
serializers {
json = "org.eclipse.ditto.services.utils.cluster.JsonifiableSerializer"
}
serialization-bindings {
# "java.io.Serializable" = none # must not be set in order to get akka.cluster.sharding.ShardRegion$GetShardRegionStats$ serialized
# Serialize Jsonifiable events with custom JSON serializer:
"org.eclipse.ditto.model.base.json.Jsonifiable" = json
"org.eclipse.ditto.model.base.exceptions.DittoRuntimeException" = json
}
}
extensions = [
"akka.cluster.pubsub.DistributedPubSub"
]
remote {
log-remote-lifecycle-events = on
artery {
enabled = on
transport = tcp
canonical {
# InetAddress.getLocalHost.getHostAddress is used if empty
hostname = "127.0.0.1"
hostname = ${?REMOTE_HOSTNAME}
port = 0
port = ${?REMOTE_PORT}
}
bind {
hostname = ${?BIND_HOSTNAME}
port = ${?BIND_REMOTE_PORT}
}
}
}
cluster {
# Disable legacy metrics in akka-cluster.
metrics.enabled = off
# enable weakly up feature to allow members to join even if some members are unreachable
allow-weakly-up-members = on
# required for akka-management-cluster-bootstrap (to be more robust):
shutdown-after-unsuccessful-join-seed-nodes = 40s
sharding {
state-store-mode = ddata
use-dispatcher = "sharding-dispatcher"
role = "connectivity"
}
roles = [
"connectivity"
]
}
http {
server {
server-header = "" # default: akka-http/${akka.http.version}
max-connections = 4096 # default: 1024
backlog = 100 # default: 100
parsing {
max-uri-length = 8k # default: 2k
max-content-length = 10m # default: 8m
illegal-header-warnings = off # default: on
error-logging-verbosity = simple # default: full
}
}
host-connection-pool {
# The maximum number of open requests accepted into the pool across all
# materializations of any of its client flows.
# Protects against (accidentally) overloading a single pool with too many client flow materializations.
# Note that with N concurrent materializations the max number of open request in the pool
# will never exceed N * max-connections * pipelining-limit.
# Must be a power of 2 and > 0!
max-open-requests = 1024 # default: 32
# The time after which an idle connection pool (without pending requests)
# will automatically terminate itself. Set to `infinite` to completely disable idle timeouts.
idle-timeout = 60s # default: 30s
}
}
test {
# factor by which to scale timeouts during tests, e.g. to account for shared
# build system load
timefactor = 1.0
# duration of EventFilter.intercept waits after the block is finished until
# all required messages are received
filter-leeway = 3s
# duration to wait in expectMsg and friends outside of within() block
# by default
single-expect-default = 3s
# The timeout that is added as an implicit by DefaultTimeout trait
default-timeout = 5s
calling-thread-dispatcher {
type = akka.testkit.CallingThreadDispatcherConfigurator
}
}
}
akka-contrib-mongodb-persistence-connection-journal {
class = "akka.persistence.inmemory.journal.InMemoryAsyncWriteJournal"
plugin-dispatcher = "connection-persistence-dispatcher"
ask-timeout = 10s
event-adapters {
mongodbobject = "org.eclipse.ditto.services.connectivity.messaging.persistence.ConnectivityMongoEventAdapter"
}
event-adapter-bindings {
"org.eclipse.ditto.signals.events.base.Event" = mongodbobject
"com.mongodb.DBObject" = mongodbobject
}
}
akka-contrib-mongodb-persistence-connection-snapshots {
class = "akka.persistence.inmemory.snapshot.InMemorySnapshotStore"
plugin-dispatcher = "connection-persistence-dispatcher"
ask-timeout = 10s
}
akka-contrib-mongodb-persistence-reconnect-journal {
class = "akka.persistence.inmemory.journal.InMemoryAsyncWriteJournal"
plugin-dispatcher = "reconnect-persistence-dispatcher"
ask-timeout = 10s
event-adapters {
mongodbobject = "org.eclipse.ditto.services.connectivity.messaging.persistence.ConnectivityMongoEventAdapter"
}
event-adapter-bindings {
"org.eclipse.ditto.signals.events.base.Event" = mongodbobject
"com.mongodb.DBObject" = mongodbobject
}
}
akka-contrib-mongodb-persistence-reconnect-snapshots {
class = "akka.persistence.inmemory.snapshot.InMemorySnapshotStore"
plugin-dispatcher = "reconnect-persistence-dispatcher"
ask-timeout = 10s
}
connection-persistence-dispatcher {
type = Dispatcher
executor = "fork-join-executor"
fork-join-executor {
parallelism-min = 4
parallelism-factor = 2.0
parallelism-max = 32
parallelism-max = ${?DEFAULT_DISPATCHER_PARALLELISM_MAX}
}
# Throughput defines the maximum number of messages to be
# processed per actor before the thread jumps to the next actor.
# Set to 1 for as fair as possible.
throughput = 2
}
reconnect-persistence-dispatcher {
type = Dispatcher
executor = "fork-join-executor"
fork-join-executor {
parallelism-min = 4
parallelism-factor = 2.0
parallelism-max = 32
parallelism-max = ${?DEFAULT_DISPATCHER_PARALLELISM_MAX}
}
# Throughput defines the maximum number of messages to be
# processed per actor before the thread jumps to the next actor.
# Set to 1 for as fair as possible.
throughput = 2
}
message-mapping-processor-dispatcher {
# Dispatcher is the name of the event-based dispatcher
type = Dispatcher
# What kind of ExecutionService to use
executor = "fork-join-executor"
# Configuration for the fork join pool
fork-join-executor {
# Min number of threads to cap factor-based parallelism number to
parallelism-min = 4
# Parallelism (threads) ... ceil(available processors * factor)
parallelism-factor = 4.0
# Max number of threads to cap factor-based parallelism number to
parallelism-max = 64
}
# Throughput defines the maximum number of messages to be
# processed per actor before the thread jumps to the next actor.
# Set to 1 for as fair as possible.
throughput = 2
}
jms-connection-handling-dispatcher {
type = PinnedDispatcher
executor = "thread-pool-executor"
}