Skip to content

Commit 7235b21

Browse files
authored
enable v2 scaler by default (#765)
1 parent 72c7b97 commit 7235b21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mantis-runtime-executor/src/main/java/io/mantisrx/server/worker/WorkerExecutionOperationsNetworkStage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public void executeStage(final ExecutionDetails setup) throws IOException {
411411
JobAutoscalerManager jobAutoscalerManager = getJobAutoscalerManagerInstance(serviceLocator);
412412

413413
// switch to v2 scaler control only when parameter is set to true for now
414-
final Boolean useV2ScalerService = (Boolean) parameters.get(JOB_AUTOSCALE_V2_ENABLED_PARAM, false);
414+
final Boolean useV2ScalerService = (Boolean) parameters.get(JOB_AUTOSCALE_V2_ENABLED_PARAM, true);
415415
if (useV2ScalerService) {
416416
logger.info("[V2 AUTO-SCALER ENABLED] Using V2 JobAutoScalerService: JobMasterServiceV2");
417417
Service jobMasterServiceV2 = new JobMasterServiceV2(

mantis-runtime/src/main/java/io/mantisrx/runtime/parameter/ParameterUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public class ParameterUtils {
214214
ParameterDefinition<Boolean> autoscaleV2Enabled = new BooleanParameter()
215215
.name(JOB_AUTOSCALE_V2_ENABLED_PARAM)
216216
.validator(Validators.alwaysPass())
217-
.defaultValue(false)
217+
.defaultValue(true)
218218
.description("Enable v2 job master service.")
219219
.build();
220220
systemParams.put(autoscaleV2Enabled.getName(), autoscaleV2Enabled);

0 commit comments

Comments
 (0)