mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 04:59:12 +08:00
[cpp worker] support cluster mode and object Put/Get works (#9682)
This commit is contained in:
@@ -2,22 +2,27 @@
|
||||
#pragma once
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include "ray/core.h"
|
||||
|
||||
namespace ray {
|
||||
namespace api {
|
||||
|
||||
enum class RunMode { SINGLE_PROCESS, SINGLE_BOX, CLUSTER };
|
||||
|
||||
enum class WorkerMode { NONE, DRIVER, WORKER };
|
||||
enum class RunMode { SINGLE_PROCESS, CLUSTER };
|
||||
|
||||
/// TODO(Guyang Song): Make configuration complete and use to initialize.
|
||||
class RayConfig {
|
||||
public:
|
||||
WorkerMode worker_mode = WorkerMode::DRIVER;
|
||||
WorkerType worker_type = WorkerType::DRIVER;
|
||||
|
||||
RunMode run_mode = RunMode::SINGLE_PROCESS;
|
||||
|
||||
std::string redis_address;
|
||||
std::string redis_ip;
|
||||
|
||||
int redis_port = 6379;
|
||||
|
||||
std::string redis_password = "5241590000000000";
|
||||
|
||||
int node_manager_port = 62665;
|
||||
|
||||
static std::shared_ptr<RayConfig> GetInstance();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user