mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 04:10:33 +08:00
109 lines
3.5 KiB
Plaintext
109 lines
3.5 KiB
Plaintext
// This file contains default values of all Ray configurations.
|
|
// Users should define their own 'ray.conf' file in the classpath,
|
|
// or use Java properties, to overwrite these values.
|
|
|
|
ray {
|
|
// ----------------------
|
|
// Basic configurations
|
|
// ----------------------
|
|
|
|
// Address of the Ray cluster to connect to.
|
|
// If not provided, a new Ray cluster will be created.
|
|
address: ""
|
|
|
|
// 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, for example "CPU:4,GPU:0".
|
|
resources: ""
|
|
|
|
// Configuration items about job.
|
|
job {
|
|
// If worker.mode is DRIVER, specify the job id.
|
|
// If not provided, a random id will be used.
|
|
id: ""
|
|
// A list of directories or jar files separated by colon that specify the
|
|
// search path for user code. This will be used as `CLASSPATH` in Java,
|
|
// and `PYTHONPATH` in Python.
|
|
code-search-path: ""
|
|
/// The number of java worker per worker process.
|
|
num-java-workers-per-process: 1
|
|
/// The jvm options for java workers of the job.
|
|
jvm-options: []
|
|
// Environment variables to be set on worker processes.
|
|
worker-env {
|
|
// key1 : "value1"
|
|
// key2 : "value2"
|
|
}
|
|
}
|
|
|
|
// Configurations about logging.
|
|
logging {
|
|
// Level of logging for Java workers.
|
|
level: INFO
|
|
// Pattern of log messages.
|
|
pattern: "%d{yyyy-MM-dd HH:mm:ss,SSS} %p %c{1} [%t]: %m%n"
|
|
// Root directory of the log files.
|
|
// If this is not set, the default one will be `${temp-dir}/session_xxx/logs`.
|
|
dir: ""
|
|
// Maximum size that a log file is allowed to reach before being rolled over to backup files.
|
|
max-file-size: 500MB
|
|
// Maximum number of backup files to keep around.
|
|
max-backup-files: 10
|
|
}
|
|
|
|
// Custom worker jvm parameters.
|
|
worker.jvm-parameters: []
|
|
|
|
// Custom `java.library.path`
|
|
// Note, do not use `dir1:dir2` format, put each dir as a list item.
|
|
library.path: []
|
|
|
|
// Custom classpath.
|
|
// Note, do not use `dir1:dir2` format, put each dir as a list item.
|
|
classpath = []
|
|
|
|
// ----------------------
|
|
// Redis configurations
|
|
// ----------------------
|
|
redis {
|
|
// If `redis.server` isn't provided, which port we should use to start redis server.
|
|
// If `head-port` is not provided, it will be generated randomly.
|
|
// head-port: 6379
|
|
// Below passwords should be consistent with the one defined in python/ray/ray_constants.py.
|
|
// The password used to start the redis server on the head node.
|
|
head-password: "5241590000000000"
|
|
// The password used to connect to the redis server.
|
|
password: "5241590000000000"
|
|
// If `redis.server` isn't provided, how many Redis shards we should start in addition to the
|
|
// primary Redis shard. The ports of these shards will be `head-port + 1`, `head-port + 2`, etc.
|
|
shard-number: 1
|
|
}
|
|
|
|
// ----------------------------
|
|
// Object store configurations
|
|
// ----------------------------
|
|
object-store {
|
|
// Initial size of the object store.
|
|
size: 10 MB
|
|
}
|
|
|
|
// ----------------------------
|
|
// Raylet configurations
|
|
// ----------------------------
|
|
raylet {
|
|
// See src/ray/ray_config_def.h for options.
|
|
config {
|
|
// TODO(zhuohan): enable this for java
|
|
put_small_object_in_memory_store: false
|
|
}
|
|
}
|
|
|
|
// Whether we enable job manager to submit and manage job.
|
|
enable-job-manager: false
|
|
}
|