@@ -65,9 +65,10 @@ type Config struct {
6565
6666 // HistoryCache settings
6767 // Change of these configs require shard restart
68- HistoryCacheInitialSize dynamicconfig.IntPropertyFn
69- HistoryCacheMaxSize dynamicconfig.IntPropertyFn
70- HistoryCacheTTL dynamicconfig.DurationPropertyFn
68+ HistoryCacheInitialSize dynamicconfig.IntPropertyFn
69+ HistoryCacheMaxSize dynamicconfig.IntPropertyFn
70+ HistoryCacheTTL dynamicconfig.DurationPropertyFn
71+ HistoryCacheNonUserContextLockTimeout dynamicconfig.DurationPropertyFn
7172
7273 // EventsCache settings
7374 // Change of these configs require shard restart
@@ -345,13 +346,16 @@ func NewConfig(
345346 VisibilityDisableOrderByClause : dc .GetBoolPropertyFnWithNamespaceFilter (dynamicconfig .VisibilityDisableOrderByClause , true ),
346347 VisibilityEnableManualPagination : dc .GetBoolPropertyFnWithNamespaceFilter (dynamicconfig .VisibilityEnableManualPagination , true ),
347348
348- EmitShardLagLog : dc .GetBoolProperty (dynamicconfig .EmitShardLagLog , false ),
349- HistoryCacheInitialSize : dc .GetIntProperty (dynamicconfig .HistoryCacheInitialSize , 128 ),
350- HistoryCacheMaxSize : dc .GetIntProperty (dynamicconfig .HistoryCacheMaxSize , 512 ),
351- HistoryCacheTTL : dc .GetDurationProperty (dynamicconfig .HistoryCacheTTL , time .Hour ),
352- EventsCacheInitialSize : dc .GetIntProperty (dynamicconfig .EventsCacheInitialSize , 128 * 1024 ), // 128KB
353- EventsCacheMaxSize : dc .GetIntProperty (dynamicconfig .EventsCacheMaxSize , 512 * 1024 ), // 512KB
354- EventsCacheTTL : dc .GetDurationProperty (dynamicconfig .EventsCacheTTL , time .Hour ),
349+ EmitShardLagLog : dc .GetBoolProperty (dynamicconfig .EmitShardLagLog , false ),
350+ HistoryCacheInitialSize : dc .GetIntProperty (dynamicconfig .HistoryCacheInitialSize , 128 ),
351+ HistoryCacheMaxSize : dc .GetIntProperty (dynamicconfig .HistoryCacheMaxSize , 512 ),
352+ HistoryCacheTTL : dc .GetDurationProperty (dynamicconfig .HistoryCacheTTL , time .Hour ),
353+ HistoryCacheNonUserContextLockTimeout : dc .GetDurationProperty (dynamicconfig .HistoryCacheNonUserContextLockTimeout , 500 * time .Millisecond ),
354+
355+ EventsCacheInitialSize : dc .GetIntProperty (dynamicconfig .EventsCacheInitialSize , 128 * 1024 ), // 128KB
356+ EventsCacheMaxSize : dc .GetIntProperty (dynamicconfig .EventsCacheMaxSize , 512 * 1024 ), // 512KB
357+ EventsCacheTTL : dc .GetDurationProperty (dynamicconfig .EventsCacheTTL , time .Hour ),
358+
355359 RangeSizeBits : 20 , // 20 bits for sequencer, 2^20 sequence number for any range
356360 AcquireShardInterval : dc .GetDurationProperty (dynamicconfig .AcquireShardInterval , time .Minute ),
357361 AcquireShardConcurrency : dc .GetIntProperty (dynamicconfig .AcquireShardConcurrency , 10 ),
0 commit comments