Skip to content

Commit 26546a7

Browse files
authored
Fix using wrong config option for resource controller (#2607)
1 parent 76672fa commit 26546a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporal-sdk/src/main/java/io/temporal/worker/tuning/ResourceBasedController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ResourceBasedController(
4343
this.systemInfoSupplier = systemInfoSupplier;
4444
this.memoryController =
4545
new PIDController(
46-
options.getTargetCPUUsage(),
46+
options.getTargetMemoryUsage(),
4747
options.getMemoryPGain(),
4848
options.getMemoryIGain(),
4949
options.getMemoryDGain());

0 commit comments

Comments
 (0)