-
Notifications
You must be signed in to change notification settings - Fork 225
/
test.conf
executable file
·191 lines (159 loc) · 4.59 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
ditto {
mapping-strategy.implementation = "org.eclipse.ditto.things.api.ThingsMappingStrategies"
extensions {
pre-enforcer-provider {
extension-class = org.eclipse.ditto.policies.enforcement.pre.PreEnforcerProvider
extension-config = {
pre-enforcers = [
"org.eclipse.ditto.policies.enforcement.pre.BlockedNamespacePreEnforcer",
"org.eclipse.ditto.policies.enforcement.pre.CommandWithOptionalEntityPreEnforcer"
]
}
}
snapshot-adapter = {
extension-class = "org.eclipse.ditto.things.service.persistence.serializer.ThingMongoSnapshotAdapter"
}
}
mongodb {
uri = "mongodb://localhost:27017/test"
}
things {
include "thing-test"
log-incoming-messages = true
wot {
http {
proxy {
enabled = false
}
}
cache {
maximum-size = 10
}
}
}
enforcement {
buffer-size = 1337
ask-with-retry {
ask-timeout = 33s
}
global-live-response-dispatching = true
}
caches {
ask-timeout = 10s
id {
maximum-size = 80000
expire-after-write = 15m
expire-after-access = 15m
}
enforcer {
maximum-size = 20000
expire-after-write = 15m
expire-after-access = 15m
}
}
}
pekko {
loggers = ["org.apache.pekko.event.slf4j.Slf4jLogger"]
loglevel = "INFO"
logging-filter = "org.apache.pekko.event.DefaultLoggingFilter"
logger-startup-timeout = 60s
# for log messages during the actor system is starting up and shutting down:
stdout-loglevel = "WARNING"
log-config-on-start = off
actor {
serializers {
bson = "org.eclipse.ditto.internal.utils.test.mongo.BsonDocumentSerializer"
}
serialization-bindings {
"org.bson.BsonDocument" = bson
}
}
cluster {
roles = [
"things",
"thing-event-aware",
"live-signal-aware",
"acks-aware",
"blocked-namespaces-aware"
]
}
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 = org.apache.pekko.testkit.CallingThreadDispatcherConfigurator
}
}
}
pekko.contrib.persistence.mongodb.mongo {
driver = "pekko.contrib.persistence.mongodb.driver.ScalaDriverPersistenceExtension"
}
pekko.persistence {
journal.auto-start-journals = [
"pekko-contrib-mongodb-persistence-things-journal"
]
snapshot-store.auto-start-snapshot-stores = [
"pekko-contrib-mongodb-persistence-things-snapshots"
]
}
pekko-contrib-mongodb-persistence-things-journal {
class = "org.apache.pekko.persistence.inmemory.journal.InMemoryAsyncWriteJournal"
plugin-dispatcher = "thing-persistence-dispatcher"
ask-timeout = 10s
event-adapters {
mongodbobject = "org.eclipse.ditto.things.service.persistence.serializer.ThingMongoEventAdapter"
}
event-adapter-bindings {
"org.eclipse.ditto.base.model.signals.events.Event" = mongodbobject
"org.bson.BsonValue" = mongodbobject
}
}
pekko-contrib-mongodb-persistence-things-snapshots {
class = "org.apache.pekko.persistence.inmemory.snapshot.InMemorySnapshotStore"
plugin-dispatcher = "thing-persistence-dispatcher"
ask-timeout = 10s
}
thing-persistence-dispatcher {
type = Dispatcher
executor = "fork-join-executor"
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 = 3.0
# Max number of threads to cap factor-based parallelism number to
parallelism-max = 32
}
throughput = 2
}
wot-dispatcher {
type = Dispatcher
executor = "thread-pool-executor"
}
wot-dispatcher-cache-loader {
type = Dispatcher
executor = "thread-pool-executor"
}
blocked-namespaces-dispatcher {
type = Dispatcher
executor = "fork-join-executor"
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 = 3.0
# Max number of threads to cap factor-based parallelism number to
parallelism-max = 32
parallelism-max = ${?DEFAULT_DISPATCHER_PARALLELISM_MAX}
}
throughput = 5
}