mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:38:18 +08:00
[Java] rename config ray.redis.address to ray.address (#10772)
This commit is contained in:
@@ -190,7 +190,7 @@ public class RayConfig {
|
||||
}
|
||||
|
||||
// Redis configurations.
|
||||
String redisAddress = config.getString("ray.redis.address");
|
||||
String redisAddress = config.getString("ray.address");
|
||||
if (StringUtils.isNotBlank(redisAddress)) {
|
||||
setRedisAddress(redisAddress);
|
||||
} else {
|
||||
@@ -313,7 +313,7 @@ public class RayConfig {
|
||||
dynamic.put("ray.raylet.socket-name", rayletSocketName);
|
||||
dynamic.put("ray.object-store.socket-name", objectStoreSocketName);
|
||||
dynamic.put("ray.raylet.node-manager-port", nodeManagerPort);
|
||||
dynamic.put("ray.redis.address", redisAddress);
|
||||
dynamic.put("ray.address", redisAddress);
|
||||
dynamic.put("ray.job.code-search-path", codeSearchPath);
|
||||
Config toRender = ConfigFactory.parseMap(dynamic).withFallback(config);
|
||||
return toRender.root().render(ConfigRenderOptions.concise());
|
||||
|
||||
@@ -7,6 +7,10 @@ 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,
|
||||
@@ -67,10 +71,6 @@ ray {
|
||||
// Redis configurations
|
||||
// ----------------------
|
||||
redis {
|
||||
// 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.
|
||||
address: ""
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user