forked from temporalio/temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
3404 lines (3326 loc) · 153 KB
/
Copy pathconstants.go
File metadata and controls
3404 lines (3326 loc) · 153 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package dynamicconfig
import (
"math"
"os"
"time"
sdkworker "go.temporal.io/sdk/worker"
"go.temporal.io/server/common/debug"
"go.temporal.io/server/common/primitives"
"go.temporal.io/server/common/retrypolicy"
"go.temporal.io/server/common/util"
"go.temporal.io/server/service/matching/counter"
)
var (
// keys for dynamic config itself
DynamicConfigSubscriptionPollInterval = NewGlobalDurationSetting(
"dynamicconfig.subscriptionPollInterval",
time.Minute,
`Poll interval for emulating subscriptions on non-subscribable Client.`,
)
// keys for admin
AdminEnableListHistoryTasks = NewGlobalBoolSetting(
"admin.enableListHistoryTasks",
true,
`AdminEnableListHistoryTasks is the key for enabling listing history tasks`,
)
AdminMatchingNamespaceToPartitionDispatchRate = NewNamespaceFloatSetting(
"admin.matchingNamespaceToPartitionDispatchRate",
10000,
`AdminMatchingNamespaceToPartitionDispatchRate is the max qps of any task queue partition for a given namespace`,
)
AdminMatchingNamespaceTaskqueueToPartitionDispatchRate = NewTaskQueueFloatSetting(
"admin.matchingNamespaceTaskqueueToPartitionDispatchRate",
1000,
`AdminMatchingNamespaceTaskqueueToPartitionDispatchRate is the max qps of a task queue partition for a given namespace & task queue`,
)
// keys for system
VisibilityPersistenceMaxReadQPS = NewGlobalIntSetting(
"system.visibilityPersistenceMaxReadQPS",
9000,
`VisibilityPersistenceMaxReadQPS is the max QPC system host can query visibility DB for read.`,
)
VisibilityPersistenceMaxWriteQPS = NewGlobalIntSetting(
"system.visibilityPersistenceMaxWriteQPS",
9000,
`VisibilityPersistenceMaxWriteQPS is the max QPC system host can query visibility DB for write.`,
)
VisibilityPersistenceSlowQueryThreshold = NewGlobalDurationSetting(
"system.visibilityPersistenceSlowQueryThreshold",
time.Second,
`VisibilityPersistenceSlowQueryThreshold is the threshold above which a query is considered slow and logged.`,
)
EnableReadFromSecondaryVisibility = NewNamespaceBoolSetting(
"system.enableReadFromSecondaryVisibility",
false,
`EnableReadFromSecondaryVisibility is the config to enable read from secondary visibility`,
)
VisibilityEnableShadowReadMode = NewGlobalBoolSetting(
"system.visibilityEnableShadowReadMode",
false,
`VisibilityEnableShadowReadMode is the config to enable shadow read from secondary visibility`,
)
SecondaryVisibilityWritingMode = NewGlobalStringSetting(
"system.secondaryVisibilityWritingMode",
"off",
`SecondaryVisibilityWritingMode is key for how to write to secondary visibility`,
)
VisibilityDisableOrderByClause = NewNamespaceBoolSetting(
"system.visibilityDisableOrderByClause",
true,
`VisibilityDisableOrderByClause is the config to disable ORDERY BY clause for Elasticsearch`,
)
VisibilityEnableManualPagination = NewNamespaceBoolSetting(
"system.visibilityEnableManualPagination",
true,
`VisibilityEnableManualPagination is the config to enable manual pagination for Elasticsearch`,
)
VisibilityAllowList = NewNamespaceBoolSetting(
"system.visibilityAllowList",
true,
`VisibilityAllowList is the config to allow list of values for regular types`,
)
SuppressErrorSetSystemSearchAttribute = NewNamespaceBoolSetting(
"system.suppressErrorSetSystemSearchAttribute",
false,
`SuppressErrorSetSystemSearchAttribute suppresses errors when trying to set
values in system search attributes.`,
)
VisibilityEnableUnifiedQueryConverter = NewGlobalBoolSetting(
"system.visibilityEnableUnifiedQueryConverter",
false,
`VisibilityEnableUnifiedQueryConverter enables the unified query converter for parsing the
query.`,
)
HistoryArchivalState = NewGlobalStringSetting(
"system.historyArchivalState",
"", // actual default is from static config
`HistoryArchivalState is key for the state of history archival`,
)
EnableReadFromHistoryArchival = NewGlobalBoolSetting(
"system.enableReadFromHistoryArchival",
false, // actual default is from static config
`EnableReadFromHistoryArchival is key for enabling reading history from archival store`,
)
VisibilityArchivalState = NewGlobalStringSetting(
"system.visibilityArchivalState",
"", // actual default is from static config
`VisibilityArchivalState is key for the state of visibility archival`,
)
EnableReadFromVisibilityArchival = NewGlobalBoolSetting(
"system.enableReadFromVisibilityArchival",
false, // actual default is from static config
`EnableReadFromVisibilityArchival is key for enabling reading visibility from archival store`,
)
EnableNamespaceNotActiveAutoForwarding = NewNamespaceBoolSetting(
"system.enableNamespaceNotActiveAutoForwarding",
true,
`EnableNamespaceNotActiveAutoForwarding whether enabling DC auto forwarding to active cluster
for signal / start / signal with start API if namespace is not active`,
)
ForceNamespaceSelectedAPIAutoForwarding = NewNamespaceBoolSetting(
"system.forceNamespaceSelectedAPIAutoForwarding",
false,
`ForceNamespaceSelectedAPIAutoForwarding forces selective (whitelist) API forwarding for the namespace when true, overriding all-apis-forwarding policy for that namespace`,
)
EnableNamespaceHandoverWait = NewNamespaceBoolSetting(
"system.enableNamespaceHandoverWait",
false,
`EnableNamespaceHandoverWait whether waiting for namespace replication state update before serve the request`,
)
TransactionSizeLimit = NewGlobalIntSetting(
"system.transactionSizeLimit",
primitives.DefaultTransactionSizeLimit,
`TransactionSizeLimit is the largest allowed transaction size to persistence`,
)
DisallowQuery = NewNamespaceBoolSetting(
"system.disallowQuery",
false,
`DisallowQuery is the key to disallow query for a namespace`,
)
EnableCrossNamespaceCommands = NewGlobalBoolSetting(
"system.enableCrossNamespaceCommands",
false,
`EnableCrossNamespaceCommands is the key to enable commands for external namespaces`,
)
DisableStreamingAuthorizer = NewGlobalBoolSetting(
"system.disableStreamingAuthorizer",
false,
`DisableStreamingAuthorizer is the key to disable the auth on streaming endpoint`,
)
ClusterMetadataRefreshInterval = NewGlobalDurationSetting(
"system.clusterMetadataRefreshInterval",
time.Minute,
`ClusterMetadataRefreshInterval is config to manage cluster metadata table refresh interval`,
)
ForceSearchAttributesCacheRefreshOnRead = NewGlobalBoolSetting(
"system.forceSearchAttributesCacheRefreshOnRead",
false,
`ForceSearchAttributesCacheRefreshOnRead forces refreshing search attributes cache on a read operation, so we always
get the latest data from DB. This effectively bypasses cache value and is used to facilitate testing of changes in
search attributes. This should not be turned on in production.`,
)
EnableRingpopTLS = NewGlobalBoolSetting(
"system.enableRingpopTLS",
false,
`EnableRingpopTLS controls whether to use TLS for ringpop, using the same "internode" TLS
config as the other services.`,
)
RingpopApproximateMaxPropagationTime = NewGlobalDurationSetting(
"system.ringpopApproximateMaxPropagationTime",
3*time.Second,
`RingpopApproximateMaxPropagationTime is used for timing certain startup and shutdown processes.
(It is not and doesn't have to be a guarantee.)`,
)
RingpopReplicaPoints = NewGlobalIntSetting(
"system.ringpopReplicaPoints",
100,
`RingpopReplicaPoints is the number of virtual nodes (replica points) per physical host
in the consistent hash ring used by ringpop. Changing it may cause service disruption during deployment.`,
)
EnableParentClosePolicyWorker = NewGlobalBoolSetting(
"system.enableParentClosePolicyWorker",
true,
`EnableParentClosePolicyWorker decides whether or not enable system workers for processing parent close policy task`,
)
EnableStickyQuery = NewNamespaceBoolSetting(
"system.enableStickyQuery",
true,
`EnableStickyQuery indicates if sticky query should be enabled per namespace`,
)
EnableActivityEagerExecution = NewNamespaceBoolSetting(
"system.enableActivityEagerExecution",
false,
`EnableActivityEagerExecution indicates if activity eager execution is enabled per namespace`,
)
EnableCancelActivityWorkerCommand = NewGlobalBoolSetting(
"system.enableCancelActivityWorkerCommand",
false,
`EnableCancelActivityWorkerCommand enables pushing activity cancellation to workers via Nexus worker commands`,
)
NamespaceMinRetentionGlobal = NewGlobalDurationSetting(
"system.namespaceMinRetentionGlobal",
24*time.Hour,
`Minimum retention duration for global namespaces. This value should only be lowered for testing purposes.`,
)
NamespaceMinRetentionLocal = NewGlobalDurationSetting(
"system.namespaceMinRetentionLocal",
time.Hour,
`Minimum retention duration for local namespaces. This value should only be lowered for testing purposes.`,
)
EnableActivityRetryStampIncrement = NewGlobalBoolSetting(
"system.enableActivityRetryStampIncrement",
false,
`EnableActivityRetryStampIncrement indicates if activity retry stamp increment is enabled`,
)
EnableEagerWorkflowStart = NewNamespaceBoolSetting(
"system.enableEagerWorkflowStart",
true,
`Toggles "eager workflow start" - returning the first workflow task inline in the
response to a StartWorkflowExecution request and skipping the trip through matching.`,
)
NamespaceCacheRefreshInterval = NewGlobalDurationSetting(
"system.namespaceCacheRefreshInterval",
2*time.Second,
`NamespaceCacheRefreshInterval is the key for namespace cache refresh interval dynamic config`,
)
PersistenceHealthSignalMetricsEnabled = NewGlobalBoolSetting(
"system.persistenceHealthSignalMetricsEnabled",
true,
`PersistenceHealthSignalMetricsEnabled determines whether persistence shard RPS metrics are emitted`,
)
HistoryHealthSignalMetricsEnabled = NewGlobalBoolSetting(
"system.historyHealthSignalMetricsEnabled",
true,
`HistoryHealthSignalMetricsEnabled determines whether history service RPC metrics are emitted`,
)
PersistenceHealthSignalAggregationEnabled = NewGlobalBoolSetting(
"system.persistenceHealthSignalAggregationEnabled",
true,
`PersistenceHealthSignalAggregationEnabled determines whether persistence latency and error averages are tracked`,
)
PersistenceHealthSignalWindowSize = NewGlobalDurationSetting(
"system.persistenceHealthSignalWindowSize",
10*time.Second,
`PersistenceHealthSignalWindowSize is the time window size in seconds for aggregating persistence signals`,
)
PersistenceHealthSignalBufferSize = NewGlobalIntSetting(
"system.persistenceHealthSignalBufferSize",
5000,
`PersistenceHealthSignalBufferSize is the maximum number of persistence signals to buffer in memory per signal key`,
)
OperatorRPSRatio = NewGlobalFloatSetting(
"system.operatorRPSRatio",
0.2,
`OperatorRPSRatio is the percentage of the rate limit provided to priority rate limiters that should be used for
operator API calls (highest priority). Should be >0.0 and <= 1.0 (defaults to 20% if not specified)`,
)
// TODO: The following 2 configs should be removed once server keepalive and client keepalive are enabled by default
EnableInternodeServerKeepAlive = NewGlobalBoolSetting(
"system.enableInternodeServerKeepAlive",
false,
`enableInternodeServerKeepAlive is the config to enable keep alive for inter-node connections on server side.`,
)
EnableInternodeClientKeepAlive = NewGlobalBoolSetting(
"system.enableInternodeClientKeepAlive",
false,
`enableInternodeClientKeepAlive is the config to enable keep alive for inter-node connections on client side.`,
)
PersistenceQPSBurstRatio = NewGlobalFloatSetting(
"system.persistenceQPSBurstRatio",
1.0,
`PersistenceQPSBurstRatio is the burst ratio for persistence QPS. This flag controls the burst ratio for all services.`,
)
EnableDataLossMetrics = NewGlobalBoolSetting(
"system.enableDataLossMetrics",
false,
`EnableDataLossMetrics determines whether dataloss metrics are emitted when dataloss errors are encountered`,
)
// deadlock detector
DeadlockDumpGoroutines = NewGlobalBoolSetting(
"system.deadlock.DumpGoroutines",
true,
`Whether the deadlock detector should dump goroutines`,
)
DeadlockFailHealthCheck = NewGlobalBoolSetting(
"system.deadlock.FailHealthCheck",
false,
`Whether the deadlock detector should cause the grpc server to fail health checks`,
)
DeadlockAbortProcess = NewGlobalBoolSetting(
"system.deadlock.AbortProcess",
false,
`Whether the deadlock detector should abort the process`,
)
DeadlockInterval = NewGlobalDurationSetting(
"system.deadlock.Interval",
60*time.Second,
`How often the detector checks each root.`,
)
DeadlockMaxWorkersPerRoot = NewGlobalIntSetting(
"system.deadlock.MaxWorkersPerRoot",
10,
`How many extra goroutines can be created per root.`,
)
NumConsecutiveWorkflowTaskProblemsToTriggerSearchAttribute = NewNamespaceIntSetting(
"system.numConsecutiveWorkflowTaskProblemsToTriggerSearchAttribute",
5,
`NumConsecutiveWorkflowTaskProblemsToTriggerSearchAttribute is the number of consecutive workflow task problems to trigger the TemporalReportedProblems search attribute.
Setting this to 0 prevents the search attribute from being set when a problem is detected, and unset when the problem is resolved.`,
)
PollWaitForNamespaceRateLimitToken = NewNamespaceBoolSetting(
"system.pollWaitForNamespaceRateLimitToken",
false,
`PollWaitForNamespaceRateLimitToken controls whether poll requests wait for
a namespace RPS rate limit token to become available instead of immediately rejecting
with ResourceExhausted. When enabled, poll requests block until a token is available
or the request context deadline is reached. The concurrent request rate limiter fires
before this limiter and will still reject requests that exceed the concurrent limit.`,
)
// keys for size limit
BlobSizeLimitError = NewNamespaceIntSetting(
"limit.blobSize.error",
2*1024*1024,
`BlobSizeLimitError is the per event blob size limit`,
)
BlobSizeLimitWarn = NewNamespaceIntSetting(
"limit.blobSize.warn",
512*1024,
`BlobSizeLimitWarn is the per event blob size limit for warning`,
)
MemoSizeLimitError = NewNamespaceIntSetting(
"limit.memoSize.error",
2*1024*1024,
`MemoSizeLimitError is the per event memo size limit`,
)
MemoSizeLimitWarn = NewNamespaceIntSetting(
"limit.memoSize.warn",
2*1024,
`MemoSizeLimitWarn is the per event memo size limit for warning`,
)
NumPendingChildExecutionsLimitError = NewNamespaceIntSetting(
"limit.numPendingChildExecutions.error",
2000,
`NumPendingChildExecutionsLimitError is the maximum number of pending child workflows a workflow can have before
StartChildWorkflowExecution commands will fail.`,
)
NumPendingActivitiesLimitError = NewNamespaceIntSetting(
"limit.numPendingActivities.error",
2000,
`NumPendingActivitiesLimitError is the maximum number of pending activities a workflow can have before
ScheduleActivityTask will fail.`,
)
NumPendingSignalsLimitError = NewNamespaceIntSetting(
"limit.numPendingSignals.error",
2000,
`NumPendingSignalsLimitError is the maximum number of pending signals a workflow can have before
SignalExternalWorkflowExecution commands from this workflow will fail.`,
)
NumPendingCancelRequestsLimitError = NewNamespaceIntSetting(
"limit.numPendingCancelRequests.error",
2000,
`NumPendingCancelRequestsLimitError is the maximum number of pending requests to cancel other workflows a workflow can have before
RequestCancelExternalWorkflowExecution commands will fail.`,
)
HistorySizeLimitError = NewNamespaceIntSetting(
"limit.historySize.error",
50*1024*1024,
`HistorySizeLimitError is the per workflow execution history size limit`,
)
HistorySizeLimitWarn = NewNamespaceIntSetting(
"limit.historySize.warn",
10*1024*1024,
`HistorySizeLimitWarn is the per workflow execution history size limit for warning`,
)
HistorySizeSuggestContinueAsNew = NewNamespaceIntSetting(
"limit.historySize.suggestContinueAsNew",
4*1024*1024,
`HistorySizeSuggestContinueAsNew is the workflow execution history size limit to suggest
continue-as-new (in workflow task started event)`,
)
HistoryCountLimitError = NewNamespaceIntSetting(
"limit.historyCount.error",
50*1024,
`HistoryCountLimitError is the per workflow execution history event count limit`,
)
HistoryCountLimitWarn = NewNamespaceIntSetting(
"limit.historyCount.warn",
10*1024,
`HistoryCountLimitWarn is the per workflow execution history event count limit for warning`,
)
MutableStateActivityFailureSizeLimitError = NewNamespaceIntSetting(
"limit.mutableStateActivityFailureSize.error",
4*1024,
`MutableStateActivityFailureSizeLimitError is the per activity failure size limit for workflow mutable state.
If exceeded, failure will be truncated before being stored in mutable state.`,
)
MutableStateActivityFailureSizeLimitWarn = NewNamespaceIntSetting(
"limit.mutableStateActivityFailureSize.warn",
2*1024,
`MutableStateActivityFailureSizeLimitWarn is the per activity failure size warning limit for workflow mutable state`,
)
MutableStateSizeLimitError = NewGlobalIntSetting(
"limit.mutableStateSize.error",
8*1024*1024,
`MutableStateSizeLimitError is the per workflow execution mutable state size limit in bytes`,
)
MutableStateSizeLimitWarn = NewGlobalIntSetting(
"limit.mutableStateSize.warn",
1*1024*1024,
`MutableStateSizeLimitWarn is the per workflow execution mutable state size limit in bytes for warning`,
)
MutableStateTombstoneCountLimit = NewGlobalIntSetting(
"limit.mutableStateTombstoneCountLimit",
16,
`MutableStateTombstoneCountLimit is the maximum number of deleted sub state machines tracked in mutable state.`,
)
HistoryCountSuggestContinueAsNew = NewNamespaceIntSetting(
"limit.historyCount.suggestContinueAsNew",
4*1024,
`HistoryCountSuggestContinueAsNew is the workflow execution history event count limit to
suggest continue-as-new (in workflow task started event)`,
)
HistoryMaxPageSize = NewNamespaceIntSetting(
"limit.historyMaxPageSize",
primitives.GetHistoryMaxPageSize,
`HistoryMaxPageSize is default max size for GetWorkflowExecutionHistory in one page`,
)
MaxIDLengthLimit = NewGlobalIntSetting(
"limit.maxIDLength",
1000,
`MaxIDLengthLimit is the length limit for various IDs, including: Namespace, TaskQueue, WorkflowID, ActivityID, TimerID,
WorkflowType, ActivityType, SignalName, MarkerName, ErrorReason/FailureReason/CancelCause, Identity, RequestID`,
)
WorkerBuildIdSizeLimit = NewGlobalIntSetting(
"limit.workerBuildIdSize",
255,
`WorkerBuildIdSizeLimit is the byte length limit for a worker build id as used in the rpc methods for updating
the version sets for a task queue.
Do not set this to a value higher than 255 for clusters using SQL based persistence due to predefined VARCHAR
column width.`,
)
VersionCompatibleSetLimitPerQueue = NewNamespaceIntSetting(
"limit.versionCompatibleSetLimitPerQueue",
10,
`VersionCompatibleSetLimitPerQueue is the max number of compatible sets allowed in the versioning data for a task
queue. Update requests which would cause the versioning data to exceed this number will fail with a
FailedPrecondition error.`,
)
VersionBuildIdLimitPerQueue = NewNamespaceIntSetting(
"limit.versionBuildIdLimitPerQueue",
100,
`VersionBuildIdLimitPerQueue is the max number of build IDs allowed to be defined in the versioning data for a
task queue. Update requests which would cause the versioning data to exceed this number will fail with a
FailedPrecondition error.`,
)
AssignmentRuleLimitPerQueue = NewNamespaceIntSetting(
"limit.wv.AssignmentRuleLimitPerQueue",
100,
`AssignmentRuleLimitPerQueue is the max number of Build ID assignment rules allowed to be defined in the
versioning data for a task queue. Update requests which would cause the versioning data to exceed this number
will fail with a FailedPrecondition error.`,
)
RedirectRuleLimitPerQueue = NewNamespaceIntSetting(
"limit.wv.RedirectRuleLimitPerQueue",
500,
`RedirectRuleLimitPerQueue is the max number of compatible redirect rules allowed to be defined
in the versioning data for a task queue. Update requests which would cause the versioning data to exceed this
number will fail with a FailedPrecondition error.`,
)
RedirectRuleMaxUpstreamBuildIDsPerQueue = NewNamespaceIntSetting(
"limit.wv.RedirectRuleMaxUpstreamBuildIDsPerQueue",
50,
`RedirectRuleMaxUpstreamBuildIDsPerQueue is the max number of compatible redirect rules allowed to be connected
in one chain in the versioning data for a task queue. Update requests which would cause the versioning data
to exceed this number will fail with a FailedPrecondition error.`,
)
MatchingDeletedRuleRetentionTime = NewNamespaceDurationSetting(
"matching.wv.DeletedRuleRetentionTime",
14*24*time.Hour,
`MatchingDeletedRuleRetentionTime is the length of time that deleted Version Assignment Rules and
Deleted Redirect Rules will be kept in the DB (with DeleteTimestamp). After this time, the tombstones are deleted at the next time update of versioning data for the task queue.`,
)
PollerHistoryTTL = NewNamespaceDurationSetting(
"matching.PollerHistoryTTL",
5*time.Minute,
`PollerHistoryTTL is the time to live for poller histories in the pollerHistory cache of a physical task queue. Poller histories are fetched when
requiring a list of pollers that polled a given task queue.`,
)
ReachabilityBuildIdVisibilityGracePeriod = NewNamespaceDurationSetting(
"matching.wv.ReachabilityBuildIdVisibilityGracePeriod",
3*time.Minute,
`ReachabilityBuildIdVisibilityGracePeriod is the time period for which deleted versioning rules are still considered active
to account for the delay in updating the build id field in visibility. Not yet supported for GetDeploymentReachability. We recommend waiting
at least 2 minutes between changing the current deployment and calling GetDeployment, so that newly started workflow executions using the
recently-current deployment can arrive in visibility.`,
)
VersionDrainageStatusVisibilityGracePeriod = NewNamespaceDurationSetting(
"matching.wv.VersionDrainageStatusVisibilityGracePeriod",
3*time.Minute,
`VersionDrainageStatusVisibilityGracePeriod is the time period for which non-current / non-ramping worker deployment versions
are still considered active to account for the delay in updating the build id field in visibility.`,
)
VersionDrainageStatusRefreshInterval = NewNamespaceDurationSetting(
"matching.wv.VersionDrainageStatusRefreshInterval",
3*time.Minute,
`VersionDrainageStatusRefreshInterval is the interval at which each draining deployment version refreshes its
Drainage Status by querying visibility for open pinned workflows using that version.`,
)
ReachabilityTaskQueueScanLimit = NewGlobalIntSetting(
"limit.reachabilityTaskQueueScan",
20,
`ReachabilityTaskQueueScanLimit limits the number of task queues to scan when responding to a
GetWorkerTaskReachability query.`,
)
ReachabilityQueryBuildIdLimit = NewGlobalIntSetting(
"limit.reachabilityQueryBuildIds",
5,
`ReachabilityQueryBuildIdLimit limits the number of build ids that can be requested in a single call to the
DescribeTaskQueue API with ReportTaskQueueReachability==true, or to the GetWorkerTaskReachability API.`,
)
ReachabilityCacheOpenWFsTTL = NewGlobalDurationSetting(
"matching.wv.reachabilityCacheOpenWFsTTL",
time.Minute,
`ReachabilityCacheOpenWFsTTL is the TTL for the reachability open workflows cache.`,
)
ReachabilityCacheClosedWFsTTL = NewGlobalDurationSetting(
"matching.wv.reachabilityCacheClosedWFsTTL",
10*time.Minute,
`ReachabilityCacheClosedWFsTTL is the TTL for the reachability closed workflows cache.`,
)
ReachabilityQuerySetDurationSinceDefault = NewGlobalDurationSetting(
"frontend.reachabilityQuerySetDurationSinceDefault",
5*time.Minute,
`ReachabilityQuerySetDurationSinceDefault is the minimum period since a version set was demoted from being the
queue default before it is considered unreachable by new workflows.
This setting allows some propagation delay of versioning data for the reachability queries, which may happen for
the following reasons:
1. There are no workflows currently marked as open in the visibility store but a worker for the demoted version
is currently processing a task.
2. There are delays in the visibility task processor (which is asynchronous).
3. There's propagation delay of the versioning data between matching nodes.`,
)
TaskQueuesPerBuildIdLimit = NewNamespaceIntSetting(
"limit.taskQueuesPerBuildId",
20,
`TaskQueuesPerBuildIdLimit limits the number of task queue names that can be mapped to a single build id.`,
)
NexusEndpointNameMaxLength = NewGlobalIntSetting(
"limit.endpointNameMaxLength",
200,
`NexusEndpointNameMaxLength is the maximum length of a Nexus endpoint name.`,
)
NexusEndpointExternalURLMaxLength = NewGlobalIntSetting(
"limit.endpointExternalURLMaxLength",
4*1024,
`NexusEndpointExternalURLMaxLength is the maximum length of a Nexus endpoint external target URL.`,
)
NexusEndpointDescriptionMaxSize = NewNamespaceIntSetting(
"limit.endpointDescriptionMaxSize",
20000,
`Maximum size of Nexus Endpoint description payload in bytes including data and metadata.`,
)
NexusEndpointListDefaultPageSize = NewGlobalIntSetting(
"limit.endpointListDefaultPageSize",
100,
`NexusEndpointListDefaultPageSize is the default page size for listing Nexus endpoints.`,
)
NexusEndpointListMaxPageSize = NewGlobalIntSetting(
"limit.endpointListMaxPageSize",
1000,
`NexusEndpointListMaxPageSize is the maximum page size for listing Nexus endpoints.`,
)
RemovableBuildIdDurationSinceDefault = NewGlobalDurationSetting(
"worker.removableBuildIdDurationSinceDefault",
time.Hour,
`RemovableBuildIdDurationSinceDefault is the minimum duration since a build id was last default in its containing
set for it to be considered for removal, used by the build id scavenger.
This setting allows some propagation delay of versioning data, which may happen for the following reasons:
1. There are no workflows currently marked as open in the visibility store but a worker for the demoted version
is currently processing a task.
2. There are delays in the visibility task processor (which is asynchronous).
3. There's propagation delay of the versioning data between matching nodes.`,
)
BuildIdScavengerVisibilityRPS = NewGlobalFloatSetting(
"worker.buildIdScavengerVisibilityRPS",
1.0,
`BuildIdScavengerVisibilityRPS is the rate limit for visibility calls from the build id scavenger`,
)
// keys for frontend
FrontendAllowedExperiments = NewNamespaceTypedSetting(
"frontend.allowedExperiments",
[]string(nil),
`FrontendAllowedExperiments is a list of experiment names that can be enabled via the temporal-experiment header for a specific namespace.`,
)
FrontendHTTPAllowedHosts = NewGlobalTypedSettingWithConverter(
"frontend.httpAllowedHosts",
ConvertWildcardStringListToRegexp,
MatchAnythingRE,
`HTTP API Requests with a "Host" header matching the allowed hosts will be processed, otherwise rejected.
Wildcards (*) are expanded to allow any substring. By default any Host header is allowed.
Concrete type should be list of strings.`,
)
FrontendPersistenceMaxQPS = NewGlobalIntSetting(
"frontend.persistenceMaxQPS",
2000,
`FrontendPersistenceMaxQPS is the max qps frontend host can query DB`,
)
FrontendPersistenceGlobalMaxQPS = NewGlobalIntSetting(
"frontend.persistenceGlobalMaxQPS",
0,
`FrontendPersistenceGlobalMaxQPS is the max qps frontend cluster can query DB`,
)
FrontendPersistenceNamespaceMaxQPS = NewNamespaceIntSetting(
"frontend.persistenceNamespaceMaxQPS",
0,
`FrontendPersistenceNamespaceMaxQPS is the max qps each namespace on frontend host can query DB`,
)
FrontendPersistenceGlobalNamespaceMaxQPS = NewNamespaceIntSetting(
"frontend.persistenceGlobalNamespaceMaxQPS",
0,
`FrontendPersistenceGlobalNamespaceMaxQPS is the max qps each namespace in frontend cluster can query DB`,
)
FrontendPersistenceDynamicRateLimitingParams = NewGlobalTypedSetting(
"frontend.persistenceDynamicRateLimitingParams",
DefaultDynamicRateLimitingParams,
`FrontendPersistenceDynamicRateLimitingParams is a struct that contains all adjustable dynamic rate limiting params.
Fields: Enabled, RefreshInterval, LatencyThreshold, ErrorThreshold, RateBackoffStepSize, RateIncreaseStepSize, RateMultiMin, RateMultiMax.
See DynamicRateLimitingParams comments for more details.`,
)
FrontendVisibilityMaxPageSize = NewNamespaceIntSetting(
"frontend.visibilityMaxPageSize",
1000,
`FrontendVisibilityMaxPageSize is default max size for ListWorkflowExecutions in one page`,
)
FrontendHistoryMaxPageSize = NewNamespaceIntSetting(
"frontend.historyMaxPageSize",
primitives.GetHistoryMaxPageSize,
`FrontendHistoryMaxPageSize is default max size for GetWorkflowExecutionHistory in one page`,
)
FrontendRPS = NewGlobalIntSetting(
"frontend.rps",
2400,
`FrontendRPS is workflow rate limit per second per-instance`,
)
FrontendGlobalRPS = NewGlobalIntSetting(
"frontend.globalRPS",
0,
`FrontendGlobalRPS is workflow rate limit per second for the whole cluster`,
)
FrontendNamespaceReplicationInducingAPIsRPS = NewGlobalIntSetting(
"frontend.rps.namespaceReplicationInducingAPIs",
20,
`FrontendNamespaceReplicationInducingAPIsRPS limits the per second request rate for namespace replication inducing
APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility).
This config is EXPERIMENTAL and may be changed or removed in a later release.`,
)
FrontendMaxNamespaceRPSPerInstance = NewNamespaceIntSetting(
"frontend.namespaceRPS",
2400,
`FrontendMaxNamespaceRPSPerInstance is workflow namespace rate limit per second`,
)
FrontendMaxNamespaceBurstRatioPerInstance = NewNamespaceFloatSetting(
"frontend.namespaceBurstRatio",
2,
`FrontendMaxNamespaceBurstRatioPerInstance is workflow namespace burst limit as a ratio of namespace RPS. The RPS
used here will be the effective RPS from global and per-instance limits. The value must be 1 or higher.`,
)
FrontendGlobalWorkerDeploymentReadRPS = NewNamespaceIntSetting(
"frontend.globalNamespaceWorkerDeploymentReadRPS",
50,
`FrontendGlobalWorkerDeploymentReadRPS is the global, per-namespace rate limit for Worker Deployment Read APIs (DescribeWorkerDeployment, DescribeWorkerDeploymentVersion). The limit is evenly distributed among available frontend service instances.`,
)
FrontendMaxConcurrentLongRunningRequestsPerInstance = NewNamespaceIntSetting(
"frontend.namespaceCount",
1200,
`FrontendMaxConcurrentLongRunningRequestsPerInstance limits concurrent long-running requests per-instance,
per-API. Example requests include long-poll requests, and 'Query' requests (which need to wait for WFTs). The
limit is applied individually to each API method. This value is ignored if
FrontendGlobalMaxConcurrentLongRunningRequests is greater than zero. Warning: setting this to zero will cause all
long-running requests to fail. The name 'frontend.namespaceCount' is kept for backwards compatibility with
existing deployments even though it is a bit of a misnomer. This does not limit the number of namespaces; it is a
per-_namespace_ limit on the _count_ of long-running requests. Requests are only throttled when the limit is
exceeded, not when it is only reached.`,
)
FrontendGlobalMaxConcurrentLongRunningRequests = NewNamespaceIntSetting(
"frontend.globalNamespaceCount",
0,
`FrontendGlobalMaxConcurrentLongRunningRequests limits concurrent long-running requests across all frontend
instances in the cluster, for a given namespace, per-API method. If this is set to 0 (the default), then it is
ignored. The name 'frontend.globalNamespaceCount' is kept for consistency with the per-instance limit name,
'frontend.namespaceCount'.`,
)
FrontendMaxNamespaceVisibilityRPSPerInstance = NewNamespaceIntSetting(
"frontend.namespaceRPS.visibility",
10,
`FrontendMaxNamespaceVisibilityRPSPerInstance is namespace rate limit per second for visibility APIs.
This config is EXPERIMENTAL and may be changed or removed in a later release.`,
)
FrontendMaxNamespaceNamespaceReplicationInducingAPIsRPSPerInstance = NewNamespaceIntSetting(
"frontend.namespaceRPS.namespaceReplicationInducingAPIs",
1,
`FrontendMaxNamespaceNamespaceReplicationInducingAPIsRPSPerInstance is a per host/per namespace RPS limit for
namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility).
This config is EXPERIMENTAL and may be changed or removed in a later release.`,
)
FrontendMaxNamespaceVisibilityBurstRatioPerInstance = NewNamespaceFloatSetting(
"frontend.namespaceBurstRatio.visibility",
1,
`FrontendMaxNamespaceVisibilityBurstRatioPerInstance is namespace burst limit for visibility APIs as a ratio of
namespace visibility RPS. The RPS used here will be the effective RPS from global and per-instance limits. This
config is EXPERIMENTAL and may be changed or removed in a later release. The value must be 1 or higher.`,
)
FrontendMaxNamespaceNamespaceReplicationInducingAPIsBurstRatioPerInstance = NewNamespaceFloatSetting(
"frontend.namespaceBurstRatio.namespaceReplicationInducingAPIs",
10,
`FrontendMaxNamespaceNamespaceReplicationInducingAPIsBurstRatioPerInstance is a per host/per namespace burst limit for
namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility)
as a ratio of namespace ReplicationInducingAPIs RPS. The RPS used here will be the effective RPS from global and
per-instance limits. This config is EXPERIMENTAL and may be changed or removed in a later release. The value must
be 1 or higher.`,
)
FrontendGlobalNamespaceRPS = NewNamespaceIntSetting(
"frontend.globalNamespaceRPS",
0,
`FrontendGlobalNamespaceRPS is namespace rate limit per second for the whole cluster.
The limit is evenly distributed among available frontend service instances.
If this is set, it overwrites per instance limit "frontend.namespaceRPS".`,
)
InternalFrontendGlobalNamespaceRPS = NewNamespaceIntSetting(
"internal-frontend.globalNamespaceRPS",
0,
`InternalFrontendGlobalNamespaceRPS is workflow namespace rate limit per second across
all internal-frontends.`,
)
FrontendGlobalNamespaceVisibilityRPS = NewNamespaceIntSetting(
"frontend.globalNamespaceRPS.visibility",
0,
`FrontendGlobalNamespaceVisibilityRPS is workflow namespace rate limit per second for the whole cluster for visibility API.
The limit is evenly distributed among available frontend service instances.
If this is set, it overwrites per instance limit "frontend.namespaceRPS.visibility".
This config is EXPERIMENTAL and may be changed or removed in a later release.`,
)
FrontendGlobalNamespaceNamespaceReplicationInducingAPIsRPS = NewNamespaceIntSetting(
"frontend.globalNamespaceRPS.namespaceReplicationInducingAPIs",
10,
`FrontendGlobalNamespaceNamespaceReplicationInducingAPIsRPS is a cluster global, per namespace RPS limit for
namespace replication inducing APIs (e.g. RegisterNamespace, UpdateNamespace, UpdateWorkerBuildIdCompatibility).
The limit is evenly distributed among available frontend service instances.
If this is set, it overwrites the per instance limit configured with
"frontend.namespaceRPS.namespaceReplicationInducingAPIs".
This config is EXPERIMENTAL and may be changed or removed in a later release.`,
)
InternalFrontendGlobalNamespaceVisibilityRPS = NewNamespaceIntSetting(
"internal-frontend.globalNamespaceRPS.visibility",
0,
`InternalFrontendGlobalNamespaceVisibilityRPS is workflow namespace rate limit per second
across all internal-frontends.
This config is EXPERIMENTAL and may be changed or removed in a later release.`,
)
FrontendThrottledLogRPS = NewGlobalIntSetting(
"frontend.throttledLogRPS",
20,
`FrontendThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger`,
)
FrontendShutdownDrainDuration = NewGlobalDurationSetting(
"frontend.shutdownDrainDuration",
0*time.Second,
`FrontendShutdownDrainDuration is the duration of traffic drain during shutdown`,
)
FrontendShutdownFailHealthCheckDuration = NewGlobalDurationSetting(
"frontend.shutdownFailHealthCheckDuration",
0*time.Second,
`FrontendShutdownFailHealthCheckDuration is the duration of shutdown failure detection`,
)
FrontendMaxBadBinaries = NewNamespaceIntSetting(
"frontend.maxBadBinaries",
10,
`FrontendMaxBadBinaries is the max number of bad binaries in namespace config`,
)
FrontendMaskInternalErrorDetails = NewNamespaceBoolSetting(
"frontend.maskInternalErrorDetails",
true,
`MaskInternalOrUnknownErrors is whether to replace internal/unknown errors with default error`,
)
FrontendContextMetadataSetTrailer = NewGlobalBoolSetting(
"frontend.contextMetadataSetTrailer",
false,
`FrontendContextMetadataSetTrailer controls whether frontend gRPC handlers emit context metadata in response trailers. This is read when constructing the frontend ContextMetadataInterceptor.`,
)
HistoryHostErrorPercentage = NewGlobalFloatSetting(
"frontend.historyHostErrorPercentage",
0.5,
`HistoryHostErrorPercentage is the proportion of hosts that are unhealthy through observation external to the host and internal host health checks`,
)
HistoryHostSelfErrorProportion = NewGlobalFloatSetting(
"frontend.historyHostSelfErrorProportion",
0.05,
`HistoryHostStartingProportion is the proportion of hosts that have marked themselves as not ready -- this could due to waiting to acquire all shards on startup, or an internal health check failure`,
)
SendRawWorkflowHistory = NewNamespaceBoolSetting(
"frontend.sendRawWorkflowHistory",
false,
`SendRawWorkflowHistory is whether to enable raw history retrieving`,
)
SearchAttributesNumberOfKeysLimit = NewNamespaceIntSetting(
"frontend.searchAttributesNumberOfKeysLimit",
100,
`SearchAttributesNumberOfKeysLimit is the limit of number of keys`,
)
SearchAttributesSizeOfValueLimit = NewNamespaceIntSetting(
"frontend.searchAttributesSizeOfValueLimit",
2*1024,
`SearchAttributesSizeOfValueLimit is the size limit of each value`,
)
SearchAttributesTotalSizeLimit = NewNamespaceIntSetting(
"frontend.searchAttributesTotalSizeLimit",
40*1024,
`SearchAttributesTotalSizeLimit is the size limit of the whole map`,
)
VisibilityArchivalQueryMaxPageSize = NewGlobalIntSetting(
"frontend.visibilityArchivalQueryMaxPageSize",
10000,
`VisibilityArchivalQueryMaxPageSize is the maximum page size for a visibility archival query`,
)
EnableServerVersionCheck = NewGlobalBoolSetting(
"frontend.enableServerVersionCheck",
os.Getenv("TEMPORAL_VERSION_CHECK_DISABLED") == "",
`EnableServerVersionCheck is a flag that controls whether or not periodic version checking is enabled`,
)
EnableTokenNamespaceEnforcement = NewGlobalBoolSetting(
"frontend.enableTokenNamespaceEnforcement",
true,
`EnableTokenNamespaceEnforcement enables enforcement that namespace in completion token matches namespace of the request`,
)
DisableListVisibilityByFilter = NewNamespaceBoolSetting(
"frontend.disableListVisibilityByFilter",
false,
`DisableListVisibilityByFilter is config to disable list open/close workflow using filter`,
)
ExposeAuthorizerErrors = NewGlobalBoolSetting(
"frontend.exposeAuthorizerErrors",
false,
`ExposeAuthorizerErrors controls whether the frontend authorization interceptor will pass through errors returned by
the Authorizer component. If false, a generic PermissionDenied error without details will be returned. Default false.`,
)
EnablePrincipalPropagation = NewNamespaceBoolSetting(
"frontend.enablePrincipalPropagation",
false,
`EnablePrincipalPropagation controls whether the authorization interceptor propagates the authenticated
principal identity as gRPC headers.`,
)
KeepAliveMinTime = NewGlobalDurationSetting(
"frontend.keepAliveMinTime",
10*time.Second,
`KeepAliveMinTime is the minimum amount of time a client should wait before sending a keepalive ping.`,
)
KeepAlivePermitWithoutStream = NewGlobalBoolSetting(
"frontend.keepAlivePermitWithoutStream",
true,
`KeepAlivePermitWithoutStream If true, server allows keepalive pings even when there are no active
streams(RPCs). If false, and client sends ping when there are no active
streams, server will send GOAWAY and close the connection.`,
)
KeepAliveMaxConnectionIdle = NewGlobalDurationSetting(
"frontend.keepAliveMaxConnectionIdle",
2*time.Minute,
`KeepAliveMaxConnectionIdle is a duration for the amount of time after which an
idle connection would be closed by sending a GoAway. Idleness duration is
defined since the most recent time the number of outstanding RPCs became
zero or the connection establishment.`,
)
KeepAliveMaxConnectionAge = NewGlobalDurationSetting(
"frontend.keepAliveMaxConnectionAge",
5*time.Minute,
`KeepAliveMaxConnectionAge is a duration for the maximum amount of time a
connection may exist before it will be closed by sending a GoAway. A
random jitter of +/-10% will be added to MaxConnectionAge to spread out
connection storms.`,
)
KeepAliveMaxConnectionAgeGrace = NewGlobalDurationSetting(
"frontend.keepAliveMaxConnectionAgeGrace",
70*time.Second,
`KeepAliveMaxConnectionAgeGrace is an additive period after MaxConnectionAge after
which the connection will be forcibly closed.`,
)
KeepAliveTime = NewGlobalDurationSetting(
"frontend.keepAliveTime",
1*time.Minute,
`KeepAliveTime After a duration of this time if the server doesn't see any activity it
pings the client to see if the transport is still alive.
If set below 1s, a minimum value of 1s will be used instead.`,
)
KeepAliveTimeout = NewGlobalDurationSetting(
"frontend.keepAliveTimeout",
10*time.Second,
`KeepAliveTimeout After having pinged for keepalive check, the server waits for a duration
of Timeout and if no activity is seen even after that the connection is closed.`,
)
FrontendEnableSchedules = NewNamespaceBoolSetting(
"frontend.enableSchedules",
true,
`FrontendEnableSchedules enables schedule-related RPCs in the frontend`,
)
// [cleanup-wv-pre-release]
EnableDeployments = NewNamespaceBoolSetting(
"system.enableDeployments",
false,
`EnableDeployments enables deployments (deprecated versioning v3 pre-release) in all services,
including deployment-related RPCs in the frontend, deployment entity workflows in the worker,
and deployment interaction in matching and history.`,
)
EnableDeploymentVersions = NewNamespaceBoolSetting(
"system.enableDeploymentVersions",
true,
`EnableDeploymentVersions enables deployment versions (versioning v3) in all services,
including deployment-related RPCs in the frontend, deployment version entity workflows in the worker,
and deployment interaction in matching and history.`,
)
UseRevisionNumberForWorkerVersioning = NewNamespaceBoolSetting(
"system.useRevisionNumberForWorkerVersioning",
true,
`UseRevisionNumberForWorkerVersioning enables the use of revision number to resolve consistency problems that may arise during task dispatch time.`,
)
EnableSuggestCaNOnNewTargetVersion = NewNamespaceBoolSetting(
"system.enableSuggestCaNOnNewTargetVersion",
false,
`EnableSuggestCaNOnNewTargetVersion lets Pinned workflows receive SuggestContinueAsNew when a new target version is available.`,
)
EnableSendTargetVersionChanged = NewNamespaceBoolSetting(
"system.enableSendTargetVersionChanged",
true,
`EnableSendTargetVersionChanged lets Pinned workflows receive TargetWorkerDeploymentVersionChanged=true when a new target version is available for that workflow.`,
)
AllowDeleteNamespaceIfNexusEndpointTarget = NewGlobalBoolSetting(
"frontend.allowDeleteNamespaceIfNexusEndpointTarget",
false,
`If set to true (default is false), namespaces that are Nexus endpoint targets will be prevented from being deleted.`,
)
RefreshNexusEndpointsLongPollTimeout = NewGlobalDurationSetting(
"system.refreshNexusEndpointsLongPollTimeout",
5*time.Minute,
`RefreshNexusEndpointsLongPollTimeout is the maximum duration of background long poll requests to update Nexus endpoints.`,
)
RefreshNexusEndpointsMinWait = NewGlobalDurationSetting(
"system.refreshNexusEndpointsMinWait",
1*time.Second,
`RefreshNexusEndpointsMinWait is the minimum wait time between background long poll requests to update Nexus endpoints.`,
)
ForceNexusEndpointRefreshOnRead = NewGlobalBoolSetting(
"system.forceNexusEndpointRefreshOnRead",
false,
`ForceNexusEndpointRefreshOnRead forces the Nexus endpoint registry to refresh from matching service on read.
This effectively bypasses the cache so that endpoint writes are visible to readers immediately, instead of after the
next background long-poll refresh. This should not be turned on in production, as it would introduce scalability
and reliability problems.`,
)
NexusReadThroughCacheSize = NewGlobalIntSetting(
"system.nexusReadThroughCacheSize",
100,
`The size of the Nexus endpoint registry's readthrough LRU cache - the cache is a secondary cache and is only
used when the first cache layer has a miss. Requires server restart for change to be applied.`,
)
NexusReadThroughCacheTTL = NewGlobalDurationSetting(
"system.nexusReadThroughCacheTTL",
30*time.Second,
`The TTL of the Nexus endpoint registry's readthrough LRU cache - the cache is a secondary cache and is only
used when the first cache layer has a miss. Requires server restart for change to be applied.`,
)
FrontendNexusRequestHeadersBlacklist = NewGlobalTypedSettingWithConverter(
"frontend.nexusRequestHeadersBlacklist",
ConvertWildcardStringListToRegexp,
// Failure support is an internal implementation detail that shouldn't propagate to the user.
util.MustWildCardStringsToRegexp([]string{
"accept-encoding",
"x-forwarded-for",
"xdc-redirection",
"xdc-redirection-api",
"temporal-nexus-failure-support",
}),
`Nexus request headers to be removed before being sent to a user handler. Wildcards (*) are expanded to
allow any substring. By default headers that are meant for internal use are disallowed. Concrete type should be list of