-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapplication.conf
More file actions
40 lines (37 loc) · 1.3 KB
/
Copy pathapplication.conf
File metadata and controls
40 lines (37 loc) · 1.3 KB
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
## actor-ts chat sample — HOCON configuration.
##
## Fields here are read by the framework on `ActorSystem.create(...)`.
## CLI flags from `backend/config.ts` win over anything set here when
## the chat sample wires the cluster up; this file is the place to
## tune knobs that don't change per-node (gossip cadence, journal
## plugin, log level).
actor-ts {
# Logging. Accepted values: debug, info, warn, error, off.
logger {
level = "debug"
}
# Persistence — SQLite journal and snapshot store, so chat history and
# room recovery both survive a restart. These two ids are what selects
# them: `backend/main.ts` calls registerSqlitePlugins(), which registers
# the plug-ins under exactly these names.
# The two file paths are set in code (under `--data-dir`, default
# `data/`) — putting them here would tie every reader to one working
# directory. See `backend/main.ts`.
persistence {
journal {
plugin = "actor-ts.persistence.journal.sqlite"
}
snapshot-store {
plugin = "actor-ts.persistence.snapshot-store.sqlite"
}
}
# Cluster gossip cadence — modest defaults for a 3-node local demo.
cluster {
failure-detector {
heartbeat-interval-ms = 300
unreachable-after-ms = 1500
down-after-ms = 4000
}
gossip-interval-ms = 500
}
}