-
Notifications
You must be signed in to change notification settings - Fork 215
/
test.conf
executable file
·119 lines (97 loc) · 2.82 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
ditto {
mongodb {
uri = "mongodb://localhost:27017/test"
}
things {
include "thing-test"
log-incoming-messages = true
wot {
http {
proxy {
enabled = false
}
}
cache {
maximum-size = 10
}
}
}
}
akka {
loggers = ["akka.event.slf4j.Slf4jLogger"]
loglevel = "INFO"
logging-filter = "akka.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
}
}
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.persistence.mongodb.mongo {
driver = "akka.contrib.persistence.mongodb.ScalaDriverPersistenceExtension"
}
akka.persistence {
journal.auto-start-journals = [
"akka-contrib-mongodb-persistence-things-journal"
]
snapshot-store.auto-start-snapshot-stores = [
"akka-contrib-mongodb-persistence-things-snapshots"
]
}
akka-contrib-mongodb-persistence-things-journal {
class = "akka.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
}
}
akka-contrib-mongodb-persistence-things-snapshots {
class = "akka.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"
}