[Release] Revert Enable GCS Server by Default (#7840)

This commit is contained in:
Simon Mo
2020-04-01 10:05:07 -07:00
committed by GitHub
parent c23e56ce9a
commit 1ab98155eb
13 changed files with 26 additions and 54 deletions
@@ -72,8 +72,6 @@ public class RayConfig {
public final String jobResourcePath;
public final String pythonWorkerCommand;
public final boolean gcsServiceEnabled;
private static volatile RayConfig instance = null;
public static RayConfig getInstance() {
@@ -225,9 +223,6 @@ public class RayConfig {
numWorkersPerProcess = config.getInt("ray.raylet.config.num_workers_per_process_java");
gcsServiceEnabled = System.getenv("RAY_GCS_SERVICE_ENABLED") == null ||
System.getenv("RAY_GCS_SERVICE_ENABLED").toLowerCase().equals("true");
// Validate config.
validate();
LOGGER.debug("Created config: {}", this);
@@ -226,7 +226,7 @@ public class RunManager {
}
// start gcs server
if (rayConfig.gcsServiceEnabled) {
if (System.getenv("RAY_GCS_SERVICE_ENABLED") != null) {
String redisPasswordOption = "";
if (!Strings.isNullOrEmpty(rayConfig.headRedisPassword)) {
redisPasswordOption = rayConfig.headRedisPassword;