mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
[C++ API] rename 'ray_redis_address' to 'ray_address' (#16772)
This commit is contained in:
parent
53206dd440
commit
1d5c72ebde
3 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
#include "config_internal.h"
|
||||
|
||||
DEFINE_string(ray_redis_address, "", "The address of the Redis server to connect to.");
|
||||
DEFINE_string(ray_address, "", "The address of the Ray cluster to connect to.");
|
||||
|
||||
DEFINE_string(ray_redis_password, "",
|
||||
"Prevents external clients without the password from connecting to Redis "
|
||||
|
@ -49,8 +49,8 @@ void ConfigInternal::Init(RayConfig &config, int *argc, char ***argv) {
|
|||
if (!FLAGS_ray_dynamic_library_path.empty()) {
|
||||
dynamic_library_path = FLAGS_ray_dynamic_library_path;
|
||||
}
|
||||
if (!FLAGS_ray_redis_address.empty()) {
|
||||
SetRedisAddress(FLAGS_ray_redis_address);
|
||||
if (!FLAGS_ray_address.empty()) {
|
||||
SetRedisAddress(FLAGS_ray_address);
|
||||
}
|
||||
google::CommandLineFlagInfo info;
|
||||
// Don't rewrite `ray_redis_password` when it is not set in the command line.
|
||||
|
|
|
@ -139,7 +139,7 @@ Ray provides Python, Java, and *EXPERIMENTAL* C++ API. And Ray uses Tasks (funct
|
|||
|
||||
ray stop
|
||||
ray start --head --port 6379 --redis-password 5241590000000000 --node-manager-port 62665
|
||||
./bazel-bin/cpp/example/example --ray-dynamic-library-path=bazel-bin/cpp/example/example.so --ray-redis-address=127.0.0.1:6379
|
||||
./bazel-bin/cpp/example/example --ray-dynamic-library-path=bazel-bin/cpp/example/example.so --ray-address=127.0.0.1:6379
|
||||
|
||||
.. literalinclude:: ../../cpp/example/example.cc
|
||||
:language: cpp
|
||||
|
|
|
@ -1726,7 +1726,7 @@ def build_cpp_worker_command(cpp_worker_options, redis_address,
|
|||
f"--ray-plasma-store-socket-name={plasma_store_name}",
|
||||
f"--ray-raylet-socket-name={raylet_name}",
|
||||
"--ray-node-manager-port=RAY_NODE_MANAGER_PORT_PLACEHOLDER",
|
||||
f"--ray-redis-address={redis_address}",
|
||||
f"--ray-address={redis_address}",
|
||||
f"--ray-redis-password={redis_password}",
|
||||
f"--ray-session-dir={session_dir}", f"--ray-logs-dir={log_dir}",
|
||||
f"--ray-node-ip-address={node_ip_address}"
|
||||
|
|
Loading…
Add table
Reference in a new issue