mirror of
https://github.com/vale981/ray
synced 2025-03-07 02:51:39 -05:00
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
![]() |
# This is an example ray config file.
|
||
|
# To use this file, copy it to your classpath and rename it to 'ray.conf'.
|
||
|
|
||
|
# For all available config items and default values,
|
||
|
# see 'java/runtime/src/main/resources/ray.default.conf'.
|
||
|
# For config file format, see 'https://github.com/lightbend/config/blob/master/HOCON.md'.
|
||
|
|
||
|
ray {
|
||
|
// This is the path to the directory where Ray is installed, e.g.,
|
||
|
// something like /home/ubmutu/ray. This can be an absolute path or
|
||
|
// a relative path from the current working directory.
|
||
|
home = "/path/to/your/ray/home"
|
||
|
|
||
|
// Run mode, available options are:
|
||
|
//
|
||
|
// `SINGLE_PROCESS`: Ray is running in one single Java process, without Raylet backend,
|
||
|
// object store, and GCS. It's useful for debug.
|
||
|
// `CLUSTER`: Ray is running on one or more nodes, with multiple processes.
|
||
|
run-mode = CLUSTER
|
||
|
|
||
|
// Available resources on this node.
|
||
|
resources: "CPU:4,GPU:0"
|
||
|
|
||
|
// The address of the redis server to connect, in format `ip:port`.
|
||
|
// If not provided, Ray processes will be started locally, including
|
||
|
// Redis server, Raylet and object store.
|
||
|
redis.address = ""
|
||
|
|
||
|
}
|