[cpp worker] support cluster mode and object Put/Get works (#9682)

This commit is contained in:
SongGuyang
2020-08-28 13:53:36 +08:00
committed by GitHub
parent 0d22c0b653
commit cb70864c04
28 changed files with 490 additions and 58 deletions
+10 -5
View File
@@ -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();