@@ -1294,14 +1294,9 @@ func Test_augmentWorkerOptions(t *testing.T) {
12941294 WorkerLocalActivitiesPerSecond : 20 ,
12951295 TaskListActivitiesPerSecond : 30 ,
12961296 MaxConcurrentActivityTaskPollers : 10 ,
1297- MinConcurrentActivityTaskPollers : 2 ,
12981297 MaxConcurrentDecisionTaskExecutionSize : 40 ,
12991298 WorkerDecisionTasksPerSecond : 50 ,
13001299 MaxConcurrentDecisionTaskPollers : 15 ,
1301- MinConcurrentDecisionTaskPollers : 4 ,
1302- PollerAutoScalerCooldown : time .Minute * 2 ,
1303- PollerAutoScalerTargetUtilization : 0.8 ,
1304- PollerAutoScalerDryRun : false ,
13051300 Identity : "identity" ,
13061301 MetricsScope : tally .NoopScope ,
13071302 Logger : zap .NewNop (),
@@ -1323,6 +1318,14 @@ func Test_augmentWorkerOptions(t *testing.T) {
13231318 ShadowOptions : ShadowOptions {},
13241319 FeatureFlags : FeatureFlags {},
13251320 Authorization : nil ,
1321+ AutoScalerOptions : AutoScalerOptions {
1322+ Enabled : true ,
1323+ MinCount : 10 ,
1324+ MaxCount : 20 ,
1325+ Cooldown : time .Minute * 3 ,
1326+ PollerWaitTimeUpperBound : time .Millisecond * 200 ,
1327+ PollerWaitTimeLowerBound : time .Millisecond * 100 ,
1328+ },
13261329 }},
13271330 want : WorkerOptions {
13281331 MaxConcurrentActivityExecutionSize : 3 ,
@@ -1331,14 +1334,9 @@ func Test_augmentWorkerOptions(t *testing.T) {
13311334 WorkerLocalActivitiesPerSecond : 20 ,
13321335 TaskListActivitiesPerSecond : 30 ,
13331336 MaxConcurrentActivityTaskPollers : 10 ,
1334- MinConcurrentActivityTaskPollers : 2 ,
13351337 MaxConcurrentDecisionTaskExecutionSize : 40 ,
13361338 WorkerDecisionTasksPerSecond : 50 ,
13371339 MaxConcurrentDecisionTaskPollers : 15 ,
1338- MinConcurrentDecisionTaskPollers : 4 ,
1339- PollerAutoScalerCooldown : time .Minute * 2 ,
1340- PollerAutoScalerTargetUtilization : 0.8 ,
1341- PollerAutoScalerDryRun : false ,
13421340 Identity : "identity" ,
13431341 MetricsScope : tally .NoopScope ,
13441342 Logger : zap .NewNop (),
@@ -1360,6 +1358,14 @@ func Test_augmentWorkerOptions(t *testing.T) {
13601358 ShadowOptions : ShadowOptions {},
13611359 FeatureFlags : FeatureFlags {},
13621360 Authorization : nil ,
1361+ AutoScalerOptions : AutoScalerOptions {
1362+ Enabled : true ,
1363+ MinCount : 10 ,
1364+ MaxCount : 20 ,
1365+ Cooldown : time .Minute * 3 ,
1366+ PollerWaitTimeUpperBound : time .Millisecond * 200 ,
1367+ PollerWaitTimeLowerBound : time .Millisecond * 100 ,
1368+ },
13631369 },
13641370 },
13651371 {
@@ -1372,14 +1378,9 @@ func Test_augmentWorkerOptions(t *testing.T) {
13721378 WorkerLocalActivitiesPerSecond : 100000 ,
13731379 TaskListActivitiesPerSecond : 100000 ,
13741380 MaxConcurrentActivityTaskPollers : 2 ,
1375- MinConcurrentActivityTaskPollers : 1 ,
13761381 MaxConcurrentDecisionTaskExecutionSize : 1000 ,
13771382 WorkerDecisionTasksPerSecond : 100000 ,
13781383 MaxConcurrentDecisionTaskPollers : 2 ,
1379- MinConcurrentDecisionTaskPollers : 2 ,
1380- PollerAutoScalerCooldown : time .Second * 10 ,
1381- PollerAutoScalerTargetUtilization : 0.6 ,
1382- PollerAutoScalerDryRun : false ,
13831384 Identity : "" ,
13841385 MetricsScope : nil ,
13851386 Logger : nil ,
@@ -1401,6 +1402,14 @@ func Test_augmentWorkerOptions(t *testing.T) {
14011402 ShadowOptions : ShadowOptions {},
14021403 FeatureFlags : FeatureFlags {},
14031404 Authorization : nil ,
1405+ AutoScalerOptions : AutoScalerOptions {
1406+ Enabled : false ,
1407+ MinCount : 2 ,
1408+ MaxCount : 200 ,
1409+ Cooldown : time .Second * 10 ,
1410+ PollerWaitTimeUpperBound : time .Millisecond * 256 ,
1411+ PollerWaitTimeLowerBound : time .Millisecond * 16 ,
1412+ },
14041413 },
14051414 },
14061415 }
0 commit comments