-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapplication.conf
More file actions
37 lines (34 loc) · 1.11 KB
/
Copy pathapplication.conf
File metadata and controls
37 lines (34 loc) · 1.11 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
## 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 so chat history survives restarts.
# The journal file path is set in code (one shared file per cluster
# in `data/chat.db`) — leaving it here would tie users to a single
# working dir. See `backend/main.ts`.
persistence {
journal {
plugin = "actor-ts.persistence.journal.sqlite"
}
snapshot-store {
plugin = "actor-ts.persistence.snapshot-store.in-memory"
}
}
# 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
}
}