Repository navigation
Expand file tree
/
Copy pathdefaults.yaml
More file actions
144 lines (115 loc) · 4.9 KB
/
Copy pathdefaults.yaml
File metadata and controls
144 lines (115 loc) · 4.9 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
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
# Default dynamic configuration for Temporal Server (etcd-backed).
#
# This file is embedded into the temporal-etcd-dynconfig binary and applied
# automatically on first start if a key does not already exist in etcd.
# Existing keys are never overwritten — customer values always win.
#
# Format: identical to the OSS file-based dynamic config format.
# Each key maps to a list of constrained values. An entry with no constraints
# applies globally; entries with constraints apply to the matching scope only.
#
# To override any value after the cluster is running:
# etcdctl --endpoints=http://localhost:2379 put temporal/dynamicconfig/<key> '- value: <new-value>'
# ---------------------------------------------------------------------------
# Frontend
# ---------------------------------------------------------------------------
# Maximum RPS across all namespaces for the entire frontend fleet.
frontend.globalRPS:
- value: 6000
# Maximum RPS per namespace across the frontend fleet.
frontend.globalNamespaceRPS:
- value: 1600
# Maximum RPS for visibility (list) operations per namespace.
# Default is 10 — almost always too low for production. Raise if you see
# RESOURCE_EXHAUSTED on Visibility calls.
frontend.namespaceRPS.visibility:
- value: 50
# Maximum RPS for visibility operations fleet-wide.
frontend.globalNamespaceRPS.visibility:
- value: 500
# Maximum concurrent namespaces.
frontend.namespaceCount:
- value: 2000
# Maximum concurrent namespaces fleet-wide.
frontend.globalNamespaceCount:
- value: 20000
# Maximum persistence QPS for frontend.
frontend.persistenceMaxQPS:
- value: 2400
# Minimum time a client must wait before sending a keepalive ping.
frontend.keepAliveMinTime:
- value: 10s
# Allow keepalive pings even when there are no active streams.
frontend.keepAlivePermitWithoutStream:
- value: true
# Percentage of unreachable history hosts that triggers frontend NOT_SERVING.
# For a 2-pod fleet: 1 pod unreachable = 50%, so keep this at or above 0.50.
# Lower this toward 0.20 for larger fleets (5+ pods).
frontend.historyHostErrorPercentage:
- value: 0.50
# ---------------------------------------------------------------------------
# History
# ---------------------------------------------------------------------------
# Enable size-based eviction for the history cache (recommended for production).
history.cacheSizeBasedLimit:
- value: true
# Maximum bytes for the host-level history cache (across all shards on one host).
# 100MB default. Raise on hosts with more memory.
history.hostLevelCacheMaxSizeBytes:
- value: 100000000
# Maximum global persistence QPS across all history hosts.
history.persistenceGlobalMaxQPS:
- value: 36000
# Maximum persistence QPS per history host.
history.persistenceMaxQPS:
- value: 16000
# Maximum persistence QPS per shard per namespace.
history.persistencePerShardNamespaceMaxQPS:
- value: 500
# ---------------------------------------------------------------------------
# Matching
# ---------------------------------------------------------------------------
# Number of read partitions per task queue.
# Raise for high-throughput task queues. Lower for lightly used ones.
matching.numTaskqueueReadPartitions:
- value: 4
constraints: {}
# Number of write partitions per task queue. Keep in sync with read partitions.
matching.numTaskqueueWritePartitions:
- value: 4
constraints: {}
# Maximum pending task appends before backpressure kicks in.
matching.outstandingTaskAppendsThreshold:
- value: 500
# Maximum persistence QPS for matching.
matching.persistenceMaxQPS:
- value: 2400
# Number of priority levels for task queues (requires fairness enabled).
matching.priorityLevels:
- value: 10
# ---------------------------------------------------------------------------
# Worker
# ---------------------------------------------------------------------------
# Maximum RPS for scheduler namespace workflow starts.
worker.schedulerNamespaceStartWorkflowRPS:
- value: 100
# Number of internal worker goroutines per namespace.
worker.perNamespaceWorkerCount:
- value: 4
# Poller and activity concurrency for the internal worker per namespace.
worker.perNamespaceWorkerOptions:
- value:
MaxConcurrentWorkflowTaskPollers: 25
MaxConcurrentActivityTaskPollers: 10
# ---------------------------------------------------------------------------
# Archival
# ---------------------------------------------------------------------------
# history.archivalProcessorArchiveDelay and system.namespaceMinRetentionLocal
# are intentionally NOT seeded here so the server compiled-in defaults apply:
#
# history.archivalProcessorArchiveDelay → 5 min (with full jitter, so 0–5 min)
# system.namespaceMinRetentionLocal → 1 h (floor for local namespace retention)
#
# To test archival quickly, set them temporarily via etcdctl (see
# server/archiver/README.md § "Testing archival locally") then delete them
# when done so normal behaviour is restored.