实现基础的智能调度

This commit is contained in:
GoEdgeLab
2023-05-17 18:42:35 +08:00
parent f52a55e670
commit fa2f89c094
12 changed files with 3273 additions and 718 deletions

View File

@@ -37,6 +37,9 @@ message Node {
repeated string lnAddrs = 21; // Ln访问地址
bool enableIPLists = 22;
bytes apiNodeAddrsJSON = 24;
string offlineDay = 25; // 下线日期
bool isBackupForCluster = 26; // 是否为集群备用节点
bool isBackupForGroup = 27; // 是否为分组备用节点
NodeCluster nodeCluster = 32; // 主集群
NodeLogin nodeLogin = 33;

View File

@@ -0,0 +1,15 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 节点动作
message NodeAction {
int64 id = 1;
int64 nodeId = 2;
string role = 3;
bool isOn = 4; // 是否启用
bytes condsJSON = 5; // 条件定义
bytes actionJSON = 6; // 动作定义
bytes durationJSON = 7; // 持续时间
}