-
Notifications
You must be signed in to change notification settings - Fork 779
/
constants.go
2611 lines (2560 loc) · 125 KB
/
constants.go
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
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package dynamicconfig
import "math"
// Key represents a key/property stored in dynamic config
type Key int
func (k Key) String() string {
keyName, ok := Keys[k]
if !ok {
return Keys[UnknownKey]
}
return keyName
}
// UnlimitedRPS represents an integer to use for "unlimited" RPS values.
//
// Since our ratelimiters do int/float conversions, and zero or negative values
// result in not allowing any requests, math.MaxInt is unsafe:
// int(float64(math.MaxInt)) // -9223372036854775808
//
// Much higher values are possible, but we can't handle 2 billion RPS, this is good enough.
const UnlimitedRPS = math.MaxInt32
/***
* !!!Important!!!
* For developer: Make sure to add/maintain the comment in the right format: usage, keyName, and default value
* So that our go-docs can have the full [documentation](https://pkg.go.dev/github.com/uber/cadence@v0.19.1/common/service/dynamicconfig#Key).
***/
const (
UnknownKey Key = iota
// key for tests
TestGetPropertyKey
TestGetIntPropertyKey
TestGetFloat64PropertyKey
TestGetDurationPropertyKey
TestGetBoolPropertyKey
TestGetStringPropertyKey
TestGetMapPropertyKey
TestGetIntPropertyFilteredByDomainKey
TestGetDurationPropertyFilteredByDomainKey
TestGetIntPropertyFilteredByTaskListInfoKey
TestGetDurationPropertyFilteredByTaskListInfoKey
TestGetBoolPropertyFilteredByDomainIDKey
TestGetBoolPropertyFilteredByTaskListInfoKey
// key for common & admin
// EnableGlobalDomain is key for enable global domain
// KeyName: system.enableGlobalDomain
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EnableGlobalDomain
// EnableVisibilitySampling is key for enable visibility sampling for basic(DB based) visibility
// KeyName: system.enableVisibilitySampling
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EnableVisibilitySampling
// EnableReadFromClosedExecutionV2 is key for enable read from cadence_visibility.closed_executions_v2
// KeyName: system.enableReadFromClosedExecutionV2
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EnableReadFromClosedExecutionV2
// AdvancedVisibilityWritingMode is key for how to write to advanced visibility. The most useful option is "dual", which can be used for seamless migration from db visibility to advanced visibility, usually using with EnableReadVisibilityFromES
// KeyName: system.advancedVisibilityWritingMode
// Value type: String enum: "on"(means writing to advancedVisibility only, "off" (means writing to db visibility only), or "dual" (means writing to both)
// Default value: "on" if advanced visibility persistence is configured, otherwise "off" (see common.GetDefaultAdvancedVisibilityWritingMode(isAdvancedVisConfigExist))
// Allowed filters: N/A
AdvancedVisibilityWritingMode
// EnableReadVisibilityFromES is key for enable read from elastic search or db visibility, usually using with AdvancedVisibilityWritingMode for seamless migration from db visibility to advanced visibility
// KeyName: system.enableReadVisibilityFromES
// Value type: Bool
// Default value: true if advanced visibility persistence is configured, otherwise false
// Allowed filters: DomainName
EnableReadVisibilityFromES
// EmitShardDiffLog is whether emit the shard diff log
// KeyName: history.emitShardDiffLog
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EmitShardDiffLog
// DisableListVisibilityByFilter is config to disable list open/close workflow using filter
// KeyName: frontend.disableListVisibilityByFilter
// Value type: Bool
// Default value: false
// Allowed filters: DomainName
DisableListVisibilityByFilter
// HistoryArchivalStatus is key for the status of history archival to override the value from static config.
// KeyName: system.historyArchivalStatus
// Value type: string enum: "enabled" or "disabled"
// Default value: the value in static config: common.Config.Archival.History.Status
// Allowed filters: N/A
HistoryArchivalStatus
// EnableReadFromHistoryArchival is key for enabling reading history from archival store
// KeyName: system.enableReadFromHistoryArchival
// Value type: string enum: "enabled" or "disabled"
// Default value: the value in static config: common.Config.Archival.History.EnableRead
// Allowed filters: N/A
EnableReadFromHistoryArchival
// VisibilityArchivalStatus is key for the status of visibility archival to override the value from static config.
// KeyName: system.visibilityArchivalStatus
// Value type: string enum: "enabled" or "disabled"
// Default value: the value in static config: common.Config.Archival.Visibility.Status
// Allowed filters: N/A
VisibilityArchivalStatus
// EnableReadFromVisibilityArchival is key for enabling reading visibility from archival store to override the value from static config.
// KeyName: system.enableReadFromVisibilityArchival
// Value type: string enum: "enabled" or "disabled"
// Default value: the value in static config: common.Config.Archival.Visibility.EnableRead
// Allowed filters: N/A
EnableReadFromVisibilityArchival
// EnableDomainNotActiveAutoForwarding decides requests form which domain will be forwarded to active cluster if domain is not active in current cluster.
// Only when "selected-api-forwarding" or "all-domain-apis-forwarding" is the policy in ClusterRedirectionPolicy(in static config).
// If the policy is "noop"(default) this flag is not doing anything.
// KeyName: system.enableDomainNotActiveAutoForwarding
// Value type: Bool
// Default value: true (meaning all domains are allowed to use the policy specified in static config)
// Allowed filters: DomainName
EnableDomainNotActiveAutoForwarding
// EnableGracefulFailover is whether enabling graceful failover
// KeyName: system.enableGracefulFailover
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EnableGracefulFailover
// TransactionSizeLimit is the largest allowed transaction size to persistence
// KeyName: system.transactionSizeLimit
// Value type: Int
// Default value: 14680064 (from common.DefaultTransactionSizeLimit : 14 * 1024 * 1024)
// Allowed filters: N/A
TransactionSizeLimit
// PersistenceErrorInjectionRate is rate for injecting random error in persistence
// KeyName: system.persistenceErrorInjectionRate
// Value type: Float64
// Default value: 0
// Allowed filters: N/A
PersistenceErrorInjectionRate
// MaxRetentionDays is the maximum allowed retention days for domain
// KeyName: system.maxRetentionDays
// Value type: Int
// Default value: 30 (see domain.DefaultMaxWorkflowRetentionInDays)
// Allowed filters: N/A
MaxRetentionDays
// MinRetentionDays is the minimal allowed retention days for domain
// KeyName: system.minRetentionDays
// Value type: Int
// Default value: 1 (see domain.MinRetentionDays)
// Allowed filters: N/A
MinRetentionDays
// MaxDecisionStartToCloseSeconds is the maximum allowed value for decision start to close timeout in seconds
// KeyName: system.maxDecisionStartToCloseSeconds
// Value type: Int
// Default value: 240
// Allowed filters: DomainName
MaxDecisionStartToCloseSeconds
// DisallowQuery is the key to disallow query for a domain
// KeyName: system.disallowQuery
// Value type: Bool
// Default value: false
// Allowed filters: DomainName
DisallowQuery
// EnableDebugMode is for enabling debugging components, logs and metrics
// KeyName: system.enableDebugMode
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EnableDebugMode
// RequiredDomainDataKeys is the key for the list of data keys required in domain registration
// KeyName: system.requiredDomainDataKeys
// Value type: Map
// Default value: nil
// Allowed filters: N/A
RequiredDomainDataKeys
// EnableGRPCOutbound is the key for enabling outbound GRPC traffic
// KeyName: system.enableGRPCOutbound
// Value type: Bool
// Default value: true
// Allowed filters: N/A
EnableGRPCOutbound
// GRPCMaxSizeInByte is the key for config GRPC response size
// KeyName: system.grpcMaxSizeInByte
// Value type: Int
// Default value: 4194304 (4*1024*1024)
// Allowed filters: N/A
GRPCMaxSizeInByte
// BlobSizeLimitError is the per event blob size limit
// KeyName: limit.blobSize.error
// Value type: Int
// Default value: 2097152 (2*1024*1024)
// Allowed filters: DomainName
BlobSizeLimitError
// BlobSizeLimitWarn is the per event blob size limit for warning
// KeyName: limit.blobSize.warn
// Value type: Int
// Default value: 262144 (256*1024)
// Allowed filters: DomainName
BlobSizeLimitWarn
// HistorySizeLimitError is the per workflow execution history size limit
// KeyName: limit.historySize.error
// Value type: Int
// Default value: 209715200 (200*1024*1024)
// Allowed filters: DomainName
HistorySizeLimitError
// HistorySizeLimitWarn is the per workflow execution history size limit for warning
// KeyName: limit.historySize.warn
// Value type: Int
// Default value: 52428800 (50*1024*1024)
// Allowed filters: DomainName
HistorySizeLimitWarn
// HistoryCountLimitError is the per workflow execution history event count limit
// KeyName: limit.historyCount.error
// Value type: Int
// Default value: 204800 (200*1024)
// Allowed filters: DomainName
HistoryCountLimitError
// HistoryCountLimitWarn is the per workflow execution history event count limit for warning
// KeyName: limit.historyCount.warn
// Value type: Int
// Default value: 51200 (50*1024)
// Allowed filters: DomainName
HistoryCountLimitWarn
// DomainNameMaxLength is the length limit for domain name
// KeyName: limit.domainNameLength
// Value type: Int
// Default value: common.DefaultIDLengthErrorLimit (1000)
// Allowed filters: DomainName
DomainNameMaxLength
// IdentityMaxLength is the length limit for identity
// KeyName: limit.identityLength
// Value type: Int
// Default value: 1000 ( see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
IdentityMaxLength
// WorkflowIDMaxLength is the length limit for workflowID
// KeyName: limit.workflowIDLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
WorkflowIDMaxLength
// SignalNameMaxLength is the length limit for signal name
// KeyName: limit.signalNameLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
SignalNameMaxLength
// WorkflowTypeMaxLength is the length limit for workflow type
// KeyName: limit.workflowTypeLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
WorkflowTypeMaxLength
// RequestIDMaxLength is the length limit for requestID
// KeyName: limit.requestIDLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
RequestIDMaxLength
// TaskListNameMaxLength is the length limit for task list name
// KeyName: limit.taskListNameLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
TaskListNameMaxLength
// ActivityIDMaxLength is the length limit for activityID
// KeyName: limit.activityIDLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
ActivityIDMaxLength
// ActivityTypeMaxLength is the length limit for activity type
// KeyName: limit.activityTypeLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
ActivityTypeMaxLength
// MarkerNameMaxLength is the length limit for marker name
// KeyName: limit.markerNameLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
MarkerNameMaxLength
// TimerIDMaxLength is the length limit for timerID
// KeyName: limit.timerIDLength
// Value type: Int
// Default value: 1000 (see common.DefaultIDLengthErrorLimit)
// Allowed filters: DomainName
TimerIDMaxLength
// MaxIDLengthWarnLimit is the warn length limit for various IDs, including: Domain, TaskList, WorkflowID, ActivityID, TimerID, WorkflowType, ActivityType, SignalName, MarkerName, ErrorReason/FailureReason/CancelCause, Identity, RequestID
// KeyName: limit.maxIDWarnLength
// Value type: Int
// Default value: 128 (see common.DefaultIDLengthWarnLimit)
// Allowed filters: N/A
MaxIDLengthWarnLimit
// AdminErrorInjectionRate is the rate for injecting random error in admin client
// KeyName: admin.errorInjectionRate
// Value type: Float64
// Default value: 0
// Allowed filters: N/A
AdminErrorInjectionRate
// key for frontend
// FrontendPersistenceMaxQPS is the max qps frontend host can query DB
// KeyName: frontend.persistenceMaxQPS
// Value type: Int
// Default value: 2000
// Allowed filters: N/A
FrontendPersistenceMaxQPS
// FrontendPersistenceGlobalMaxQPS is the max qps frontend cluster can query DB
// KeyName: frontend.persistenceGlobalMaxQPS
// Value type: Int
// Default value: 0
// Allowed filters: N/A
FrontendPersistenceGlobalMaxQPS
// FrontendVisibilityMaxPageSize is default max size for ListWorkflowExecutions in one page
// KeyName: frontend.visibilityMaxPageSize
// Value type: Int
// Default value: 1000
// Allowed filters: DomainName
FrontendVisibilityMaxPageSize
// FrontendVisibilityListMaxQPS is max qps frontend can list open/close workflows
// KeyName: frontend.visibilityListMaxQPS
// Value type: Int
// Default value: 10
// Allowed filters: DomainName
FrontendVisibilityListMaxQPS
// FrontendESVisibilityListMaxQPS is max qps frontend can list open/close workflows from ElasticSearch
// KeyName: frontend.esVisibilityListMaxQPS
// Value type: Int
// Default value: 3
// Allowed filters: DomainName
FrontendESVisibilityListMaxQPS
// FrontendESIndexMaxResultWindow is ElasticSearch index setting max_result_window
// KeyName: frontend.esIndexMaxResultWindow
// Value type: Int
// Default value: 10000
// Allowed filters: N/A
FrontendESIndexMaxResultWindow
// FrontendHistoryMaxPageSize is default max size for GetWorkflowExecutionHistory in one page
// KeyName: frontend.historyMaxPageSize
// Value type: Int
// Default value: 1000 (see common.GetHistoryMaxPageSize)
// Allowed filters: DomainName
FrontendHistoryMaxPageSize
// FrontendUserRPS is workflow rate limit per second
// KeyName: frontend.rps
// Value type: Int
// Default value: 1200
// Allowed filters: N/A
FrontendUserRPS
// FrontendWorkerRPS is background-processing workflow rate limit per second
// KeyName: frontend.workerrps
// Value type: Int
// Default value: UnlimitedRPS
// Allowed filters: N/A
FrontendWorkerRPS
// FrontendMaxDomainUserRPSPerInstance is workflow domain rate limit per second
// KeyName: frontend.domainrps
// Value type: Int
// Default value: 1200
// Allowed filters: DomainName
FrontendMaxDomainUserRPSPerInstance
// FrontendMaxDomainWorkerRPSPerInstance is background-processing workflow domain rate limit per second
// KeyName: frontend.domainworkerrps
// Value type: Int
// Default value: UnlimitedRPS
// Allowed filters: DomainName
FrontendMaxDomainWorkerRPSPerInstance
// FrontendGlobalDomainUserRPS is workflow domain rate limit per second for the whole Cadence cluster
// KeyName: frontend.globalDomainrps
// Value type: Int
// Default value: 0
// Allowed filters: DomainName
FrontendGlobalDomainUserRPS
// FrontendGlobalDomainWorkerRPS is background-processing workflow domain rate limit per second for the whole Cadence cluster
// KeyName: frontend.globalDomainWorkerrps
// Value type: Int
// Default value: UnlimitedRPS
// Allowed filters: DomainName
FrontendGlobalDomainWorkerRPS
// FrontendDecisionResultCountLimit is max number of decisions per RespondDecisionTaskCompleted request
// KeyName: frontend.decisionResultCountLimit
// Value type: Int
// Default value: 0
// Allowed filters: DomainName
FrontendDecisionResultCountLimit
// FrontendHistoryMgrNumConns is for persistence cluster.NumConns
// KeyName: frontend.historyMgrNumConns
// Value type: Int
// Default value: 10
// Allowed filters: N/A
FrontendHistoryMgrNumConns
// FrontendThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger
// KeyName: frontend.throttledLogRPS
// Value type: Int
// Default value: 20
// Allowed filters: N/A
FrontendThrottledLogRPS
// FrontendShutdownDrainDuration is the duration of traffic drain during shutdown
// KeyName: frontend.shutdownDrainDuration
// Value type: Duration
// Default value: 0
// Allowed filters: N/A
FrontendShutdownDrainDuration
// EnableClientVersionCheck is enables client version check for frontend
// KeyName: frontend.enableClientVersionCheck
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EnableClientVersionCheck
// FrontendMaxBadBinaries is the max number of bad binaries in domain config
// KeyName: frontend.maxBadBinaries
// Value type: Int
// Default value: 10 (see domain.MaxBadBinaries)
// Allowed filters: DomainName
FrontendMaxBadBinaries
// FrontendFailoverCoolDown is duration between two domain failvoers
// KeyName: frontend.failoverCoolDown
// Value type: Duration
// Default value: 1m (one minute, see domain.FailoverCoolDown)
// Allowed filters: DomainName
FrontendFailoverCoolDown
// ValidSearchAttributes is legal indexed keys that can be used in list APIs. When overriding, ensure to include the existing default attributes of the current release
// KeyName: frontend.validSearchAttributes
// Value type: Map
// Default value: the default attributes of this release version, see definition.GetDefaultIndexedKeys()
// Allowed filters: N/A
ValidSearchAttributes
// SendRawWorkflowHistory is whether to enable raw history retrieving
// KeyName: frontend.sendRawWorkflowHistory
// Value type: Bool
// Default value: false
// Allowed filters: DomainName
SendRawWorkflowHistory
// SearchAttributesNumberOfKeysLimit is the limit of number of keys
// KeyName: frontend.searchAttributesNumberOfKeysLimit
// Value type: Int
// Default value: 100
// Allowed filters: DomainName
SearchAttributesNumberOfKeysLimit
// SearchAttributesSizeOfValueLimit is the size limit of each value
// KeyName: frontend.searchAttributesSizeOfValueLimit
// Value type: Int
// Default value: 2048 (2*1024)
// Allowed filters: DomainName
SearchAttributesSizeOfValueLimit
// SearchAttributesTotalSizeLimit is the size limit of the whole map
// KeyName: frontend.searchAttributesTotalSizeLimit
// Value type: Int
// Default value: 40960 (40*1024)
// Allowed filters: DomainName
SearchAttributesTotalSizeLimit
// VisibilityArchivalQueryMaxPageSize is the maximum page size for a visibility archival query
// KeyName: frontend.visibilityArchivalQueryMaxPageSize
// Value type: Int
// Default value: 10000
// Allowed filters: N/A
VisibilityArchivalQueryMaxPageSize
// DomainFailoverRefreshInterval is the domain failover refresh timer
// KeyName: frontend.domainFailoverRefreshInterval
// Value type: Duration
// Default value: 10s (10*time.Second)
// Allowed filters: N/A
DomainFailoverRefreshInterval
// DomainFailoverRefreshTimerJitterCoefficient is the jitter for domain failover refresh timer jitter
// KeyName: frontend.domainFailoverRefreshTimerJitterCoefficient
// Value type: Float64
// Default value: 0.1
// Allowed filters: N/A
DomainFailoverRefreshTimerJitterCoefficient
// FrontendErrorInjectionRate is rate for injecting random error in frontend client
// KeyName: frontend.errorInjectionRate
// Value type: Float64
// Default value: 0
// Allowed filters: N/A
FrontendErrorInjectionRate
// FrontendEmitSignalNameMetricsTag enables emitting signal name tag in metrics in frontend client
// KeyName: frontend.emitSignalNameMetricsTag
// Value type: Bool
// Default value: false
// Allowed filters: DomainName
FrontendEmitSignalNameMetricsTag
// key for matching
// MatchingUserRPS is request rate per second for each matching host
// KeyName: matching.rps
// Value type: Int
// Default value: 1200
// Allowed filters: N/A
MatchingUserRPS
// MatchingWorkerRPS is background-processing request rate per second for each matching host
// KeyName: matching.workerrps
// Value type: Int
// Default value: UnlimitedRPS
// Allowed filters: N/A
MatchingWorkerRPS
// MatchingDomainUserRPS is request rate per domain per second for each matching host
// KeyName: matching.domainrps
// Value type: Int
// Default value: 1200
// Allowed filters: N/A
MatchingDomainUserRPS
// MatchingDomainWorkerRPS is background-processing request rate per domain per second for each matching host
// KeyName: matching.domainworkerrps
// Value type: Int
// Default value: UnlimitedRPS
// Allowed filters: N/A
MatchingDomainWorkerRPS
// MatchingPersistenceMaxQPS is the max qps matching host can query DB
// KeyName: matching.persistenceMaxQPS
// Value type: Int
// Default value: 3000
// Allowed filters: N/A
MatchingPersistenceMaxQPS
// MatchingPersistenceGlobalMaxQPS is the max qps matching cluster can query DB
// KeyName: matching.persistenceGlobalMaxQPS
// Value type: Int
// Default value: 0
// Allowed filters: N/A
MatchingPersistenceGlobalMaxQPS
// MatchingMinTaskThrottlingBurstSize is the minimum burst size for task list throttling
// KeyName: matching.minTaskThrottlingBurstSize
// Value type: Int
// Default value: 1
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingMinTaskThrottlingBurstSize
// MatchingGetTasksBatchSize is the maximum batch size to fetch from the task buffer
// KeyName: matching.getTasksBatchSize
// Value type: Int
// Default value: 1000
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingGetTasksBatchSize
// MatchingLongPollExpirationInterval is the long poll expiration interval in the matching service
// KeyName: matching.longPollExpirationInterval
// Value type: Duration
// Default value: time.Minute
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingLongPollExpirationInterval
// MatchingEnableSyncMatch is to enable sync match
// KeyName: matching.enableSyncMatch
// Value type: Bool
// Default value: true
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingEnableSyncMatch
// MatchingUpdateAckInterval is the interval for update ack
// KeyName: matching.updateAckInterval
// Value type: Duration
// Default value: 1m (1*time.Minute)
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingUpdateAckInterval
// MatchingIdleTasklistCheckInterval is the IdleTasklistCheckInterval
// KeyName: matching.idleTasklistCheckInterval
// Value type: Duration
// Default value: 5m (5*time.Minute)
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingIdleTasklistCheckInterval
// MaxTasklistIdleTime is the max time tasklist being idle
// KeyName: matching.maxTasklistIdleTime
// Value type: Duration
// Default value: 5m (5*time.Minute)
// Allowed filters: DomainName,TasklistName,TasklistType
MaxTasklistIdleTime
// MatchingOutstandingTaskAppendsThreshold is the threshold for outstanding task appends
// KeyName: matching.outstandingTaskAppendsThreshold
// Value type: Int
// Default value: 250
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingOutstandingTaskAppendsThreshold
// MatchingMaxTaskBatchSize is max batch size for task writer
// KeyName: matching.maxTaskBatchSize
// Value type: Int
// Default value: 100
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingMaxTaskBatchSize
// MatchingMaxTaskDeleteBatchSize is the max batch size for range deletion of tasks
// KeyName: matching.maxTaskDeleteBatchSize
// Value type: Int
// Default value: 100
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingMaxTaskDeleteBatchSize
// MatchingThrottledLogRPS is the rate limit on number of log messages emitted per second for throttled logger
// KeyName: matching.throttledLogRPS
// Value type: Int
// Default value: 20
// Allowed filters: N/A
MatchingThrottledLogRPS
// MatchingNumTasklistWritePartitions is the number of write partitions for a task list
// KeyName: matching.numTasklistWritePartitions
// Value type: Int
// Default value: 1
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingNumTasklistWritePartitions
// MatchingNumTasklistReadPartitions is the number of read partitions for a task list
// KeyName: matching.numTasklistReadPartitions
// Value type: Int
// Default value: 1
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingNumTasklistReadPartitions
// MatchingForwarderMaxOutstandingPolls is the max number of inflight polls from the forwarder
// KeyName: matching.forwarderMaxOutstandingPolls
// Value type: Int
// Default value: 1
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingForwarderMaxOutstandingPolls
// MatchingForwarderMaxOutstandingTasks is the max number of inflight addTask/queryTask from the forwarder
// KeyName: matching.forwarderMaxOutstandingTasks
// Value type: Int
// Default value: 1
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingForwarderMaxOutstandingTasks
// MatchingForwarderMaxRatePerSecond is the max rate at which add/query can be forwarded
// KeyName: matching.forwarderMaxRatePerSecond
// Value type: Int
// Default value: 10
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingForwarderMaxRatePerSecond
// MatchingForwarderMaxChildrenPerNode is the max number of children per node in the task list partition tree
// KeyName: matching.forwarderMaxChildrenPerNode
// Value type: Int
// Default value: 20
// Allowed filters: DomainName,TasklistName,TasklistType
MatchingForwarderMaxChildrenPerNode
// MatchingShutdownDrainDuration is the duration of traffic drain during shutdown
// KeyName: matching.shutdownDrainDuration
// Value type: Duration
// Default value: 0
// Allowed filters: N/A
MatchingShutdownDrainDuration
// MatchingErrorInjectionRate is rate for injecting random error in matching client
// KeyName: matching.errorInjectionRate
// Value type: Float64
// Default value: 0
// Allowed filters: N/A
MatchingErrorInjectionRate
// MatchingEnableTaskInfoLogByDomainID is enables info level logs for decision/activity task based on the request domainID
// KeyName: matching.enableTaskInfoLogByDomainID
// Value type: Bool
// Default value: false
// Allowed filters: DomainID
MatchingEnableTaskInfoLogByDomainID
// MatchingActivityTaskSyncMatchWaitTime is the amount of time activity task will wait to be sync matched
// KeyName: matching.activityTaskSyncMatchWaitTime
// Value type: Duration
// Default value: 100ms
// Allowed filters: DomainName
MatchingActivityTaskSyncMatchWaitTime
// key for history
// HistoryRPS is request rate per second for each history host
// KeyName: history.rps
// Value type: Int
// Default value: 3000
// Allowed filters: N/A
HistoryRPS
// HistoryPersistenceMaxQPS is the max qps history host can query DB
// KeyName: history.persistenceMaxQPS
// Value type: Int
// Default value: 9000
// Allowed filters: N/A
HistoryPersistenceMaxQPS
// HistoryPersistenceGlobalMaxQPS is the max qps history cluster can query DB
// KeyName: history.persistenceGlobalMaxQPS
// Value type: Int
// Default value: 0
// Allowed filters: N/A
HistoryPersistenceGlobalMaxQPS
// HistoryVisibilityOpenMaxQPS is max qps one history host can write visibility open_executions
// KeyName: history.historyVisibilityOpenMaxQPS
// Value type: Int
// Default value: 300
// Allowed filters: DomainName
HistoryVisibilityOpenMaxQPS
// HistoryVisibilityClosedMaxQPS is max qps one history host can write visibility closed_executions
// KeyName: history.historyVisibilityClosedMaxQPS
// Value type: Int
// Default value: 300
// Allowed filters: DomainName
HistoryVisibilityClosedMaxQPS
// HistoryLongPollExpirationInterval is the long poll expiration interval in the history service
// KeyName: history.longPollExpirationInterval
// Value type: Duration
// Default value: 20s( time.Second*20)
// Allowed filters: DomainName
HistoryLongPollExpirationInterval
// HistoryCacheInitialSize is initial size of history cache
// KeyName: history.cacheInitialSize
// Value type: Int
// Default value: 128
// Allowed filters: N/A
HistoryCacheInitialSize
// HistoryCacheMaxSize is max size of history cache
// KeyName: history.cacheMaxSize
// Value type: Int
// Default value: 512
// Allowed filters: N/A
HistoryCacheMaxSize
// HistoryCacheTTL is TTL of history cache
// KeyName: history.cacheTTL
// Value type: Duration
// Default value: 1h (time.Hour)
// Allowed filters: N/A
HistoryCacheTTL
// HistoryShutdownDrainDuration is the duration of traffic drain during shutdown
// KeyName: history.shutdownDrainDuration
// Value type: Duration
// Default value: 0
// Allowed filters: N/A
HistoryShutdownDrainDuration
// EventsCacheInitialCount is initial count of events cache
// KeyName: history.eventsCacheInitialSize
// Value type: Int
// Default value: 128
// Allowed filters: N/A
EventsCacheInitialCount
// EventsCacheMaxCount is max count of events cache
// KeyName: history.eventsCacheMaxSize
// Value type: Int
// Default value: 512
// Allowed filters: N/A
EventsCacheMaxCount
// EventsCacheMaxSize is max size of events cache in bytes
// KeyName: history.eventsCacheMaxSizeInBytes
// Value type: Int
// Default value: 0
// Allowed filters: N/A
EventsCacheMaxSize
// EventsCacheTTL is TTL of events cache
// KeyName: history.eventsCacheTTL
// Value type: Duration
// Default value: 1h (time.Hour)
// Allowed filters: N/A
EventsCacheTTL
// EventsCacheGlobalEnable is enables global cache over all history shards
// KeyName: history.eventsCacheGlobalEnable
// Value type: Bool
// Default value: false
// Allowed filters: N/A
EventsCacheGlobalEnable
// EventsCacheGlobalInitialCount is initial count of global events cache
// KeyName: history.eventsCacheGlobalInitialSize
// Value type: Int
// Default value: 4096
// Allowed filters: N/A
EventsCacheGlobalInitialCount
// EventsCacheGlobalMaxCount is max count of global events cache
// KeyName: history.eventsCacheGlobalMaxSize
// Value type: Int
// Default value: 131072
// Allowed filters: N/A
EventsCacheGlobalMaxCount
// AcquireShardInterval is interval that timer used to acquire shard
// KeyName: history.acquireShardInterval
// Value type: Duration
// Default value: 1m (time.Minute)
// Allowed filters: N/A
AcquireShardInterval
// AcquireShardConcurrency is number of goroutines that can be used to acquire shards in the shard controller.
// KeyName: history.acquireShardConcurrency
// Value type: Int
// Default value: 1
// Allowed filters: N/A
AcquireShardConcurrency
// StandbyClusterDelay is the artificial delay added to standby cluster's view of active cluster's time
// KeyName: history.standbyClusterDelay
// Value type: Duration
// Default value: 5m (5*time.Minute)
// Allowed filters: N/A
StandbyClusterDelay
// StandbyTaskMissingEventsResendDelay is the amount of time standby cluster's will wait (if events are missing)before calling remote for missing events
// KeyName: history.standbyTaskMissingEventsResendDelay
// Value type: Duration
// Default value: 15m (15*time.Minute)
// Allowed filters: N/A
StandbyTaskMissingEventsResendDelay
// StandbyTaskMissingEventsDiscardDelay is the amount of time standby cluster's will wait (if events are missing)before discarding the task
// KeyName: history.standbyTaskMissingEventsDiscardDelay
// Value type: Duration
// Default value: 25m (25*time.Minute)
// Allowed filters: N/A
StandbyTaskMissingEventsDiscardDelay
// TaskProcessRPS is the task processing rate per second for each domain
// KeyName: history.taskProcessRPS
// Value type: Int
// Default value: 1000
// Allowed filters: DomainName
TaskProcessRPS
// TaskSchedulerType is the task scheduler type for priority task processor
// KeyName: history.taskSchedulerType
// Value type: Int enum(1 for SchedulerTypeFIFO, 2 for SchedulerTypeWRR(weighted round robin scheduler implementation))
// Default value: 2 (task.SchedulerTypeWRR)
// Allowed filters: N/A
TaskSchedulerType
// TaskSchedulerWorkerCount is the number of workers per host in task scheduler
// KeyName: history.taskSchedulerWorkerCount
// Value type: Int
// Default value: 200
// Allowed filters: N/A
TaskSchedulerWorkerCount
// TaskSchedulerShardWorkerCount is the number of worker per shard in task scheduler
// KeyName: history.taskSchedulerShardWorkerCount
// Value type: Int
// Default value: 0
// Allowed filters: N/A
TaskSchedulerShardWorkerCount
// TaskSchedulerQueueSize is the size of task channel for host level task scheduler
// KeyName: history.taskSchedulerQueueSize
// Value type: Int
// Default value: 10000
// Allowed filters: N/A
TaskSchedulerQueueSize
// TaskSchedulerShardQueueSize is the size of task channel for shard level task scheduler
// KeyName: history.taskSchedulerShardQueueSize
// Value type: Int
// Default value: 200
// Allowed filters: N/A
TaskSchedulerShardQueueSize
// TaskSchedulerDispatcherCount is the number of task dispatcher in task scheduler (only applies to host level task scheduler)
// KeyName: history.taskSchedulerDispatcherCount
// Value type: Int
// Default value: 1
// Allowed filters: N/A
TaskSchedulerDispatcherCount
// TaskSchedulerRoundRobinWeights is the priority weight for weighted round robin task scheduler
// KeyName: history.taskSchedulerRoundRobinWeight
// Value type: Map
// Default value: please see common.ConvertIntMapToDynamicConfigMapProperty(DefaultTaskPriorityWeight) in code base
// Allowed filters: N/A
TaskSchedulerRoundRobinWeights
// TaskCriticalRetryCount is the critical retry count for background tasks
// when task attempt exceeds this threshold:
// - task attempt metrics and additional error logs will be emitted
// - task priority will be lowered
// KeyName: history.taskCriticalRetryCount
// Value type: Int
// Default value: 20
// Allowed filters: N/A
TaskCriticalRetryCount
// ActiveTaskRedispatchInterval is the active task redispatch interval
// KeyName: history.activeTaskRedispatchInterval
// Value type: Duration
// Default value: 5s (5*time.Second)
// Allowed filters: N/A
ActiveTaskRedispatchInterval
// StandbyTaskRedispatchInterval is the standby task redispatch interval
// KeyName: history.standbyTaskRedispatchInterval
// Value type: Duration
// Default value: 30s (30*time.Second)
// Allowed filters: N/A
StandbyTaskRedispatchInterval
// TaskRedispatchIntervalJitterCoefficient is the task redispatch interval jitter coefficient
// KeyName: history.taskRedispatchIntervalJitterCoefficient
// Value type: Float64
// Default value: 0.15
// Allowed filters: N/A
TaskRedispatchIntervalJitterCoefficient
// StandbyTaskReReplicationContextTimeout is the context timeout for standby task re-replication
// KeyName: history.standbyTaskReReplicationContextTimeout
// Value type: Duration
// Default value: 3m (3*time.Minute)
// Allowed filters: DomainID
StandbyTaskReReplicationContextTimeout
// ResurrectionCheckMinDelay is the minimal timer processing delay before scanning history to see
// if there's a resurrected timer/activity
// KeyName: history.resurrectionCheckMinDelay
// Value type: Duration
// Default value: 24h (24*time.Hour)
// Allowed filters: DomainName
ResurrectionCheckMinDelay
// QueueProcessorEnableSplit is indicates whether processing queue split policy should be enabled
// KeyName: history.queueProcessorEnableSplit
// Value type: Bool
// Default value: false
// Allowed filters: N/A
QueueProcessorEnableSplit
// QueueProcessorSplitMaxLevel is the max processing queue level
// KeyName: history.queueProcessorSplitMaxLevel
// Value type: Int
// Default value: 2 // 3 levels, start from 0
// Allowed filters: N/A
QueueProcessorSplitMaxLevel
// QueueProcessorEnableRandomSplitByDomainID is indicates whether random queue split policy should be enabled for a domain
// KeyName: history.queueProcessorEnableRandomSplitByDomainID
// Value type: Bool
// Default value: false
// Allowed filters: DomainID
QueueProcessorEnableRandomSplitByDomainID
// QueueProcessorRandomSplitProbability is the probability for a domain to be split to a new processing queue
// KeyName: history.queueProcessorRandomSplitProbability
// Value type: Float64
// Default value: 0.01
// Allowed filters: N/A
QueueProcessorRandomSplitProbability
// QueueProcessorEnablePendingTaskSplitByDomainID is indicates whether pending task split policy should be enabled
// KeyName: history.queueProcessorEnablePendingTaskSplitByDomainID
// Value type: Bool
// Default value: false
// Allowed filters: DomainID
QueueProcessorEnablePendingTaskSplitByDomainID
// QueueProcessorPendingTaskSplitThreshold is the threshold for the number of pending tasks per domain
// KeyName: history.queueProcessorPendingTaskSplitThreshold
// Value type: Map
// Default value: see common.ConvertIntMapToDynamicConfigMapProperty(DefaultPendingTaskSplitThreshold) in code base
// Allowed filters: N/A
QueueProcessorPendingTaskSplitThreshold
// QueueProcessorEnableStuckTaskSplitByDomainID is indicates whether stuck task split policy should be enabled
// KeyName: history.queueProcessorEnableStuckTaskSplitByDomainID
// Value type: Bool
// Default value: false
// Allowed filters: DomainID
QueueProcessorEnableStuckTaskSplitByDomainID
// QueueProcessorStuckTaskSplitThreshold is the threshold for the number of attempts of a task
// KeyName: history.queueProcessorStuckTaskSplitThreshold
// Value type: Map
// Default value: see common.ConvertIntMapToDynamicConfigMapProperty(DefaultStuckTaskSplitThreshold) in code base
// Allowed filters: N/A
QueueProcessorStuckTaskSplitThreshold
// QueueProcessorSplitLookAheadDurationByDomainID is the look ahead duration when spliting a domain to a new processing queue
// KeyName: history.queueProcessorSplitLookAheadDurationByDomainID
// Value type: Duration
// Default value: 20m (20*time.Minute)
// Allowed filters: DomainID
QueueProcessorSplitLookAheadDurationByDomainID
// QueueProcessorPollBackoffInterval is the backoff duration when queue processor is throttled
// KeyName: history.queueProcessorPollBackoffInterval
// Value type: Duration
// Default value: 5s (5*time.Second)
// Allowed filters: N/A
QueueProcessorPollBackoffInterval
// QueueProcessorPollBackoffIntervalJitterCoefficient is backoff interval jitter coefficient
// KeyName: history.queueProcessorPollBackoffIntervalJitterCoefficient
// Value type: Float64
// Default value: 0.15
// Allowed filters: N/A
QueueProcessorPollBackoffIntervalJitterCoefficient
// QueueProcessorEnablePersistQueueStates is indicates whether processing queue states should be persisted
// KeyName: history.queueProcessorEnablePersistQueueStates
// Value type: Bool
// Default value: false
// Allowed filters: N/A
QueueProcessorEnablePersistQueueStates
// QueueProcessorEnableLoadQueueStates is indicates whether processing queue states should be loaded
// KeyName: history.queueProcessorEnableLoadQueueStates
// Value type: Bool
// Default value: false
// Allowed filters: N/A
QueueProcessorEnableLoadQueueStates
// TimerTaskBatchSize is batch size for timer processor to process tasks
// KeyName: history.timerTaskBatchSize
// Value type: Int
// Default value: 100
// Allowed filters: N/A
TimerTaskBatchSize
// TimerTaskDeleteBatchSize is batch size for timer processor to delete timer tasks
// KeyName: history.timerTaskDeleteBatchSize
// Value type: Int
// Default value: 4000
// Allowed filters: N/A
TimerTaskDeleteBatchSize
// TimerProcessorGetFailureRetryCount is retry count for timer processor get failure operation
// KeyName: history.timerProcessorGetFailureRetryCount
// Value type: Int
// Default value: 5
// Allowed filters: N/A
TimerProcessorGetFailureRetryCount
// TimerProcessorCompleteTimerFailureRetryCount is retry count for timer processor complete timer operation
// KeyName: history.timerProcessorCompleteTimerFailureRetryCount
// Value type: Int
// Default value: 10
// Allowed filters: N/A
TimerProcessorCompleteTimerFailureRetryCount
// TimerProcessorUpdateAckInterval is update interval for timer processor
// KeyName: history.timerProcessorUpdateAckInterval
// Value type: Duration