Java doc: "Starting Ray" page (#10062)

This commit is contained in:
Kai Yang
2020-09-05 10:15:52 +08:00
committed by GitHub
parent 7ee0fdba3d
commit 6a78ba9752
4 changed files with 166 additions and 35 deletions
@@ -130,7 +130,11 @@ public class RayConfig {
workerMode = localWorkerMode;
boolean isDriver = workerMode == WorkerType.DRIVER;
// Run mode.
runMode = config.getEnum(RunMode.class, "ray.run-mode");
if (config.hasPath("ray.local-mode")) {
runMode = config.getBoolean("ray.local-mode") ? RunMode.SINGLE_PROCESS : RunMode.CLUSTER;
} else {
runMode = config.getEnum(RunMode.class, "ray.run-mode");
}
// Node ip.
if (config.hasPath("ray.node-ip")) {
nodeIp = config.getString("ray.node-ip");