mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 05:28:20 +08:00
[cpp worker] support cluster mode (#9977)
This commit is contained in:
@@ -24,6 +24,14 @@ class RayConfig {
|
||||
|
||||
int node_manager_port = 62665;
|
||||
|
||||
std::string lib_name = "";
|
||||
|
||||
std::string store_socket = "";
|
||||
|
||||
std::string raylet_socket = "";
|
||||
|
||||
std::string session_dir = "";
|
||||
|
||||
static std::shared_ptr<RayConfig> GetInstance();
|
||||
|
||||
private:
|
||||
|
||||
@@ -36,9 +36,9 @@ class RayRuntime {
|
||||
virtual WaitResult Wait(const std::vector<ObjectID> &ids, int num_objects,
|
||||
int timeout_ms) = 0;
|
||||
|
||||
virtual ObjectID Call(RemoteFunctionPtrHolder &fptr,
|
||||
virtual ObjectID Call(const RemoteFunctionPtrHolder &fptr,
|
||||
std::shared_ptr<msgpack::sbuffer> args) = 0;
|
||||
virtual ActorID CreateActor(RemoteFunctionPtrHolder &fptr,
|
||||
virtual ActorID CreateActor(const RemoteFunctionPtrHolder &fptr,
|
||||
std::shared_ptr<msgpack::sbuffer> args) = 0;
|
||||
virtual ObjectID CallActor(const RemoteFunctionPtrHolder &fptr, const ActorID &actor,
|
||||
std::shared_ptr<msgpack::sbuffer> args) = 0;
|
||||
|
||||
Reference in New Issue
Block a user