-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwenyan.toml.example
More file actions
63 lines (51 loc) · 1.06 KB
/
Copy pathwenyan.toml.example
File metadata and controls
63 lines (51 loc) · 1.06 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[archive]
engine = "sqlite"
path = "./wenyan.dang'an"
[genesis]
node_id = "11111111-1111-4111-8111-111111111111"
genesis_key = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
[gateway]
upstream = "http://127.0.0.1:8787"
[gateway.listen]
host = "127.0.0.1"
port = 8787
[law]
mode = "strict"
[law_cache]
ttl_seconds = 60
preload_types = ["appointment", "classification"]
[distributed]
mode = "single"
node_id = "node-a"
bind_gossip = "127.0.0.1:7946"
seeds = []
fanout = 3
suspicion_timeout_ms = 5000
[consensus]
kind = "none"
replica_set = []
constitutional_threshold = 3
view_change_timeout_ms = 5000
[sync]
batch_size = 200
max_inflight = 4
retry_backoff_ms = 300
[bridge]
enabled = false
mode = "standalone"
[bridge.sync]
mode = "hybrid"
poll_interval_ms = 1000
batch_size = 100
[bridge.circuit_breaker]
failure_rate_threshold = 0.05
cool_down_ms = 30000
max_retries = 10
[[bridge.adapters]]
id = "nats-main"
protocol = "nats"
url = "nats://127.0.0.1:4222"
subject_pattern = ["events.*"]
target_genre = "telemetry"
idempotency_header = "Nats-Msg-Id"
trust_provenance = false