mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 09:24:03 +08:00
Java doc: "Starting Ray" page (#10062)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user