mirror of
https://github.com/wassname/ray.git
synced 2026-10-04 13:00:39 +08:00
Java doc: "Starting Ray" page (#10062)
This commit is contained in:
1 parent
7ee0fdba3d
commit
6a78ba9752
4 files changed
+166
-35
No files matched your search
@@ -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