chore: remove che.workspace.probe_pool_size property

Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
pull/378/head
Andrew Obuchowicz 2022-10-05 16:17:02 -04:00 committed by Ilya Buziuk
parent 5a932eeba6
commit 2ae602980c
3 changed files with 3 additions and 12 deletions

View File

@ -29,10 +29,6 @@ che.websocket.endpoint=ws://${CHE_HOST}:${CHE_PORT}/api/websocket
# for major WebSocket interactions and messaging.
che.websocket.internal.endpoint=NULL
# This property specifies how many threads to use for workspace server liveness probes.
che.workspace.probe_pool_size=10
# HTTP proxy setting for workspace JVM.
che.workspace.http_proxy_java_options=NULL

View File

@ -297,8 +297,6 @@ public class JpaEntitiesCascadeRemovalTest {
new ResourceImpl(
RamResourceType.ID, 1024, RamResourceType.UNIT)))));
bindConstant().annotatedWith(Names.named("che.workspace.probe_pool_size")).to(1);
// setup bindings for the devfile that would otherwise be read from the config
bindConstant()
.annotatedWith(Names.named("che.workspace.devfile.default_editor"))

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2021 Red Hat, Inc.
* Copyright (c) 2012-2022 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
@ -22,7 +22,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Consumer;
import java.util.function.Supplier;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import org.eclipse.che.api.core.model.workspace.WorkspaceStatus;
import org.eclipse.che.api.workspace.server.hc.probe.ProbeResult.ProbeStatus;
@ -52,13 +51,11 @@ public class ProbeScheduler {
private final Map<String, List<ScheduledFuture>> probesFutures;
@Inject
public ProbeScheduler(
@Named("che.workspace.probe_pool_size") int probeSchedulerPoolSize,
ExecutorServiceWrapper executorServiceWrapper) {
public ProbeScheduler(ExecutorServiceWrapper executorServiceWrapper) {
probesExecutor =
executorServiceWrapper.wrap(
new ScheduledThreadPoolExecutor(
probeSchedulerPoolSize,
10,
new ThreadFactoryBuilder()
.setDaemon(true)
.setNameFormat("ServerProbes-%s")