267
dc *dynamicconfig.Collection,
268
numHistoryShards int32,
270
>
return &Config{
271
>
NumHistoryShards: numHistoryShards,
272
>
PersistenceMaxQPS: dynamicconfig.FrontendPersistenceMaxQPS.Get(dc),
273
>
PersistenceGlobalMaxQPS: dynamicconfig.FrontendPersistenceGlobalMaxQPS.Get(dc),
274
>
PersistenceNamespaceMaxQPS: dynamicconfig.FrontendPersistenceNamespaceMaxQPS.Get(dc),
275
>
PersistenceGlobalNamespaceMaxQPS: dynamicconfig.FrontendPersistenceGlobalNamespaceMaxQPS.Get(dc),
276
>
PersistencePerShardNamespaceMaxQPS: dynamicconfig.DefaultPerShardNamespaceRPSMax,
277
>
PersistenceDynamicRateLimitingParams: dynamicconfig.FrontendPersistenceDynamicRateLimitingParams.Get(dc),
278
>
PersistenceQPSBurstRatio: dynamicconfig.PersistenceQPSBurstRatio.Get(dc),
279
>
280
>
VisibilityPersistenceMaxReadQPS: dynamicconfig.VisibilityPersistenceMaxReadQPS.Get(dc),
281
>
VisibilityPersistenceMaxWriteQPS: dynamicconfig.VisibilityPersistenceMaxWriteQPS.Get(dc),
282
>
VisibilityPersistenceSlowQueryThreshold: dynamicconfig.VisibilityPersistenceSlowQueryThreshold.Get(dc),
283
>
VisibilityMaxPageSize: dynamicconfig.FrontendVisibilityMaxPageSize.Get(dc),
284
>
EnableReadFromSecondaryVisibility: dynamicconfig.EnableReadFromSecondaryVisibility.Get(dc),
285
>
VisibilityEnableShadowReadMode: dynamicconfig.VisibilityEnableShadowReadMode.Get(dc),
286
>
VisibilityDisableOrderByClause: dynamicconfig.VisibilityDisableOrderByClause.Get(dc),
287
>
VisibilityEnableManualPagination: dynamicconfig.VisibilityEnableManualPagination.Get(dc),
288
>
VisibilityEnableUnifiedQueryConverter: dynamicconfig.VisibilityEnableUnifiedQueryConverter.Get(dc),
289
>
VisibilityAllowList: dynamicconfig.VisibilityAllowList.Get(dc),
290
>
SuppressErrorSetSystemSearchAttribute: dynamicconfig.SuppressErrorSetSystemSearchAttribute.Get(dc),
291
>
292
>
HistoryMaxPageSize: dynamicconfig.FrontendHistoryMaxPageSize.Get(dc),
293
>
RPS: dynamicconfig.FrontendRPS.Get(dc),
294
>
GlobalRPS: dynamicconfig.FrontendGlobalRPS.Get(dc),
295
>
OperatorRPSRatio: dynamicconfig.OperatorRPSRatio.Get(dc),
296
>
NamespaceReplicationInducingAPIsRPS: dynamicconfig.FrontendNamespaceReplicationInducingAPIsRPS.Get(dc),
297
>
298
>
MaxNamespaceRPSPerInstance: dynamicconfig.FrontendMaxNamespaceRPSPerInstance.Get(dc),
299
>
MaxNamespaceBurstRatioPerInstance: dynamicconfig.FrontendMaxNamespaceBurstRatioPerInstance.Get(dc),
300
>
MaxConcurrentLongRunningRequestsPerInstance: dynamicconfig.FrontendMaxConcurrentLongRunningRequestsPerInstance.Get(dc),
301
>
MaxGlobalConcurrentLongRunningRequests: dynamicconfig.FrontendGlobalMaxConcurrentLongRunningRequests.Get(dc),
302
>
PollWaitForNamespaceRateLimitToken: dynamicconfig.PollWaitForNamespaceRateLimitToken.Get(dc),
303
>
MaxNamespaceVisibilityRPSPerInstance: dynamicconfig.FrontendMaxNamespaceVisibilityRPSPerInstance.Get(dc),
304
>
MaxNamespaceVisibilityBurstRatioPerInstance: dynamicconfig.FrontendMaxNamespaceVisibilityBurstRatioPerInstance.Get(dc),
305
>
MaxNamespaceNamespaceReplicationInducingAPIsRPSPerInstance: dynamicconfig.FrontendMaxNamespaceNamespaceReplicationInducingAPIsRPSPerInstance.Get(dc),
306
>
MaxNamespaceNamespaceReplicationInducingAPIsBurstRatioPerInstance: dynamicconfig.FrontendMaxNamespaceNamespaceReplicationInducingAPIsBurstRatioPerInstance.Get(dc),
307
>
GlobalWorkerDeploymentReadRPS: dynamicconfig.FrontendGlobalWorkerDeploymentReadRPS.Get(dc),
308
>
GlobalWorkerDeploymentReadBurstRatio: dynamicconfig.FrontendGlobalWorkerDeploymentReadBurstRatio.Get(dc),
309
>
310
>
GlobalNamespaceRPS: dynamicconfig.FrontendGlobalNamespaceRPS.Get(dc),
311
>
InternalFEGlobalNamespaceRPS: dynamicconfig.InternalFrontendGlobalNamespaceRPS.Get(dc),
312
>
GlobalNamespaceVisibilityRPS: dynamicconfig.FrontendGlobalNamespaceVisibilityRPS.Get(dc),
313
>
InternalFEGlobalNamespaceVisibilityRPS: dynamicconfig.InternalFrontendGlobalNamespaceVisibilityRPS.Get(dc),
314
>
// Overshoot since these low rate limits don't work well in an uncoordinated global limiter.
315
>
GlobalNamespaceNamespaceReplicationInducingAPIsRPS: dynamicconfig.FrontendGlobalNamespaceNamespaceReplicationInducingAPIsRPS.Get(dc),
316
>
317
>
MaxIDLengthLimit: dynamicconfig.MaxIDLengthLimit.Get(dc),
318
>
WorkerBuildIdSizeLimit: dynamicconfig.WorkerBuildIdSizeLimit.Get(dc),
319
>
ReachabilityTaskQueueScanLimit: dynamicconfig.ReachabilityTaskQueueScanLimit.Get(dc),
320
>
ReachabilityQueryBuildIdLimit: dynamicconfig.ReachabilityQueryBuildIdLimit.Get(dc),
321
>
ReachabilityCacheOpenWFsTTL: dynamicconfig.ReachabilityCacheOpenWFsTTL.Get(dc),
322
>
ReachabilityCacheClosedWFsTTL: dynamicconfig.ReachabilityCacheClosedWFsTTL.Get(dc),
323
>
ReachabilityQuerySetDurationSinceDefault: dynamicconfig.ReachabilityQuerySetDurationSinceDefault.Get(dc),
324
>
MaxBadBinaries: dynamicconfig.FrontendMaxBadBinaries.Get(dc),
325
>
DisableListVisibilityByFilter: dynamicconfig.DisableListVisibilityByFilter.Get(dc),
326
>
BlobSizeLimitError: dynamicconfig.BlobSizeLimitError.Get(dc),
327
>
BlobSizeLimitWarn: dynamicconfig.BlobSizeLimitWarn.Get(dc),
328
>
MemoSizeLimitError: dynamicconfig.MemoSizeLimitError.Get(dc),
329
>
ThrottledLogRPS: dynamicconfig.FrontendThrottledLogRPS.Get(dc),
330
>
ShutdownDrainDuration: dynamicconfig.FrontendShutdownDrainDuration.Get(dc),
331
>
ShutdownFailHealthCheckDuration: dynamicconfig.FrontendShutdownFailHealthCheckDuration.Get(dc),
332
>
EnableNamespaceNotActiveAutoForwarding: dynamicconfig.EnableNamespaceNotActiveAutoForwarding.Get(dc),
333
>
ForceNamespaceSelectedAPIAutoForwarding: dynamicconfig.ForceNamespaceSelectedAPIAutoForwarding.Get(dc),
334
>
NamespaceMinRetentionLocal: dynamicconfig.NamespaceMinRetentionLocal.Get(dc),
335
>
NamespaceMinRetentionGlobal: dynamicconfig.NamespaceMinRetentionGlobal.Get(dc),
336
>
SearchAttributesNumberOfKeysLimit: dynamicconfig.SearchAttributesNumberOfKeysLimit.Get(dc),
337
>
SearchAttributesSizeOfValueLimit: dynamicconfig.SearchAttributesSizeOfValueLimit.Get(dc),
338
>
SearchAttributesTotalSizeLimit: dynamicconfig.SearchAttributesTotalSizeLimit.Get(dc),
339
>
VisibilityArchivalQueryMaxPageSize: dynamicconfig.VisibilityArchivalQueryMaxPageSize.Get(dc),
340
>
DisallowQuery: dynamicconfig.DisallowQuery.Get(dc),
341
>
SendRawWorkflowHistory: dynamicconfig.SendRawWorkflowHistory.Get(dc),
342
>
DefaultWorkflowRetryPolicy: dynamicconfig.DefaultWorkflowRetryPolicy.Get(dc),
343
>
DefaultWorkflowTaskTimeout: dynamicconfig.DefaultWorkflowTaskTimeout.Get(dc),
344
>
EnableServerVersionCheck: dynamicconfig.EnableServerVersionCheck.Get(dc),
345
>
EnableTokenNamespaceEnforcement: dynamicconfig.EnableTokenNamespaceEnforcement.Get(dc),
346
>
ExposeAuthorizerErrors: dynamicconfig.ExposeAuthorizerErrors.Get(dc),
347
>
KeepAliveMinTime: dynamicconfig.KeepAliveMinTime.Get(dc),
348
>
KeepAlivePermitWithoutStream: dynamicconfig.KeepAlivePermitWithoutStream.Get(dc),
349
>
KeepAliveMaxConnectionIdle: dynamicconfig.KeepAliveMaxConnectionIdle.Get(dc),
350
>
KeepAliveMaxConnectionAge: dynamicconfig.KeepAliveMaxConnectionAge.Get(dc),
351
>
KeepAliveMaxConnectionAgeGrace: dynamicconfig.KeepAliveMaxConnectionAgeGrace.Get(dc),
352
>
KeepAliveTime: dynamicconfig.KeepAliveTime.Get(dc),
353
>
KeepAliveTimeout: dynamicconfig.KeepAliveTimeout.Get(dc),
354
>
355
>
DeleteNamespaceDeleteActivityRPS: dynamicconfig.DeleteNamespaceDeleteActivityRPS.Get(dc),
356
>
DeleteNamespacePageSize: dynamicconfig.DeleteNamespacePageSize.Get(dc),
357
>
DeleteNamespacePagesPerExecution: dynamicconfig.DeleteNamespacePagesPerExecution.Get(dc),
358
>
DeleteNamespaceConcurrentDeleteExecutionsActivities: dynamicconfig.DeleteNamespaceConcurrentDeleteExecutionsActivities.Get(dc),
359
>
DeleteNamespaceNamespaceDeleteDelay: dynamicconfig.DeleteNamespaceNamespaceDeleteDelay.Get(dc),
360
>
361
>
MaxFairnessWeightOverrideConfigLimit: dynamicconfig.MatchingMaxFairnessKeyWeightOverrides.Get(dc),
362
>
363
>
EnableSchedules: dynamicconfig.FrontendEnableSchedules.Get(dc),
364
>
EnableChasm: dynamicconfig.EnableChasm.Get(dc),
365
>
EnableCHASMSchedulerCreation: dynamicconfig.EnableCHASMSchedulerCreation.Get(dc),
366
>
CHASMSchedulerCreationRolloutPercent: dynamicconfig.CHASMSchedulerCreationRolloutPercent.Get(dc),
367
>
EnableCHASMSchedulerRouting: dynamicconfig.EnableCHASMSchedulerRouting.Get(dc),
368
>
EnableCHASMSchedulerSentinels: dynamicconfig.EnableCHASMSchedulerSentinels.Get(dc),
369
>
370
>
// [cleanup-wv-pre-release]
371
>
EnableDeployments: dynamicconfig.EnableDeployments.Get(dc),
372
>
EnableDeploymentVersions: dynamicconfig.EnableDeploymentVersions.Get(dc),
373
>
374
>
EnableBatcher: dynamicconfig.FrontendEnableBatcher.Get(dc),
375
>
MaxConcurrentBatchOperation: dynamicconfig.FrontendMaxConcurrentBatchOperationPerNamespace.Get(dc),
376
>
MaxExecutionCountBatchOperation: dynamicconfig.FrontendMaxExecutionCountBatchOperationPerNamespace.Get(dc),
377
>
MaxConcurrentAdminBatchOperation: dynamicconfig.FrontendMaxConcurrentAdminBatchOperationPerNamespace.Get(dc),
378
>
EnableBatchOperationsForStandaloneActivities: dynamicconfig.FrontendEnableBatchOperationsForStandaloneActivities.Get(dc),
379
>
380
>
EnableUpdateWorkflowExecution: dynamicconfig.FrontendEnableUpdateWorkflowExecution.Get(dc),
381
>
EnableUpdateWorkflowExecutionAsyncAccepted: dynamicconfig.FrontendEnableUpdateWorkflowExecutionAsyncAccepted.Get(dc),
382
>
EnableWorkflowUpdateCallbacks: dynamicconfig.EnableWorkflowUpdateCallbacks.Get(dc),
383
>
NumConsecutiveWorkflowTaskProblemsToTriggerSearchAttribute: dynamicconfig.NumConsecutiveWorkflowTaskProblemsToTriggerSearchAttribute.Get(dc),
384
>
385
>
EnableWorkerVersioningData: dynamicconfig.FrontendEnableWorkerVersioningDataAPIs.Get(dc),
386
>
EnableWorkerVersioningWorkflow: dynamicconfig.FrontendEnableWorkerVersioningWorkflowAPIs.Get(dc),
387
>
EnableWorkerVersioningRules: dynamicconfig.FrontendEnableWorkerVersioningRuleAPIs.Get(dc),
388
>
389
>
CallbackURLMaxLength: dynamicconfig.FrontendCallbackURLMaxLength.Get(dc),
390
>
CallbackHeaderMaxSize: dynamicconfig.FrontendCallbackHeaderMaxSize.Get(dc),
391
>
MaxCallbacksPerWorkflow: dynamicconfig.MaxCallbacksPerWorkflow.Get(dc),
392
>
MaxNexusOperationTokenLength: nexusoperations.MaxOperationTokenLength.Get(dc),
393
>
NexusRequestHeadersBlacklist: dynamicconfig.FrontendNexusRequestHeadersBlacklist.Get(dc),
394
>
NexusForwardRequestUseEndpoint: dynamicconfig.FrontendNexusForwardRequestUseEndpointDispatch.Get(dc),
395
>
NexusOperationsMetricTagConfig: nexusoperations.MetricTagConfiguration.Get(dc),
396
>
397
>
LinkMaxSize: dynamicconfig.FrontendLinkMaxSize.Get(dc),
398
>
MaxLinksPerRequest: dynamicconfig.FrontendMaxLinksPerRequest.Get(dc),
399
>
400
>
CallbackEndpointConfigs: callback.AllowedAddresses.Get(dc),
401
>
AdminEnableListHistoryTasks: dynamicconfig.AdminEnableListHistoryTasks.Get(dc),
402
>
403
>
MaskInternalErrorDetails: dynamicconfig.FrontendMaskInternalErrorDetails.Get(dc),
404
>
405
>
HistoryHostErrorPercentage: dynamicconfig.HistoryHostErrorPercentage.Get(dc),
406
>
HistoryHostSelfErrorProportion: dynamicconfig.HistoryHostSelfErrorProportion.Get(dc),
407
>
LogAllReqErrors: dynamicconfig.LogAllReqErrors.Get(dc),
408
>
EnableEagerWorkflowStart: dynamicconfig.EnableEagerWorkflowStart.Get(dc),
409
>
WorkflowRulesAPIsEnabled: dynamicconfig.WorkflowRulesAPIsEnabled.Get(dc),
410
>
MaxWorkflowRulesPerNamespace: dynamicconfig.MaxWorkflowRulesPerNamespace.Get(dc),
411
>
WorkerHeartbeatsEnabled: dynamicconfig.WorkerHeartbeatsEnabled.Get(dc),
412
>
EnableCancelWorkerPollsOnShutdown: dynamicconfig.EnableCancelWorkerPollsOnShutdown.Get(dc),
413
>
EnableMatchingFanOutForPollCancellation: dynamicconfig.EnableMatchingFanOutForPollCancellation.Get(dc),
414
>
NumTaskQueueReadPartitions: dynamicconfig.MatchingNumTaskqueueReadPartitions.Get(dc),
415
>
WorkerCommandsEnabled: dynamicconfig.WorkerCommandsEnabled.Get(dc),
416
>
PollerAutoscalingAutoEnroll: dynamicconfig.PollerAutoscalingAutoEnroll.Get(dc),
417
>
WorkflowPauseEnabled: dynamicconfig.WorkflowPauseEnabled.Get(dc),
418
>
TimeSkippingEnabled: dynamicconfig.TimeSkippingEnabled.Get(dc),
419
>
StandaloneNexusOperationsEnabled: chasmnexus.Enabled.Get(dc),
420
>
EnableWorkflowTaskCompletionPagination: dynamicconfig.EnableWorkflowTaskCompletionPagination.Get(dc),
421
>
422
>
HTTPAllowedHosts: dynamicconfig.FrontendHTTPAllowedHosts.Get(dc),
423
>
AllowedExperiments: dynamicconfig.FrontendAllowedExperiments.Get(dc),
424
>
425
>
Activity: activity.ConfigProvider(dc),
426
>
}
427
>
}
428
429
// Service represents the frontend service