|
- syntax = "proto3";
-
- package hpcAC;
- option go_package = "/hpcAC";
-
- /******************Cluster Start*************************/
- message JobManager{
- string job_manager_type = 1; // @gotags: copier:"JobManagerType", json:"JobManagerType"
- string job_manager_addr = 2; // @gotags: copier:"JobManagerAddr", json:"JobManagerAddr"
- int64 id = 3; // @gotags: copier:"ID", json:"id"
- string text = 4; // @gotags: copier:"Text", json:"text"
- string job_manager_port = 5; // @gotags: copier:"JobManagerPort", json:"JobManagerPort"
- }
-
- message JobManagerReq{
- }
-
- message ListJobManagerResp{
- string code = 1; // @gotags: copier:"Code", json:"code"
- string msg = 2; // @gotags: copier:"Msg", json:"msg"
- repeated JobManager data = 3; // @gotags: copier:"JobManagers", json:"data"
- }
- /******************Cluster End*************************/
-
- /******************Job Detail Start*************************/
- message JobInitAttr {
- string account = 1; // @gotags: copier:"Account", json:"Account"
- string accrue_time = 2; // @gotags: copier:"AccrueTime", json:"AccrueTime"
- string alloc_node_sid = 3; // @gotags: copier:"AllocNode:Sid", json:"AllocNode:Sid"
- string batch_flag = 4; // @gotags: copier:"BatchFlag", json:"BatchFlag"
- string cpus_task = 5; // @gotags: copier:"CPUs/Task", json:"CPUs/Task"
- string command = 6; // @gotags: copier:"Command", json:"Command"
- string command_exist = 7; // @gotags: copier:"CommandExist", json:"CommandExist"
- string comment = 8; // @gotags: copier:"Comment", json:"Comment"
- string contiguous = 9; // @gotags: copier:"Contiguous", json:"Contiguous"
- string core_spec = 10; // @gotags: copier:"CoreSpec", json:"CoreSpec"
- string deadline = 11; // @gotags: copier:"Deadline", json:"Deadline"
- string delay_boot = 12; // @gotags: copier:"DelayBoot", json:"DelayBoot"
- string dependency = 13; // @gotags: copier:"Dependency", json:"Dependency"
- string eligible_time = 14; // @gotags: copier:"EligibleTime", json:"EligibleTime"
- string end_time = 15; // @gotags: copier:"EndTime", json:"EndTime"
- string exc_node_list = 16; // @gotags: copier:"ExcNodeList", json:"ExcNodeList"
- string exit_code = 17; // @gotags: copier:"ExitCode", json:"ExitCode"
- string features = 18; // @gotags: copier:"Features", json:"Features"
- string group_id = 19; // @gotags: copier:"GroupId", json:"GroupId"
- string job_id = 20; // @gotags: copier:"JobId", json:"JobId"
- string job_name = 21; // @gotags: copier:"JobName", json:"JobName"
- string job_state = 22; // @gotags: copier:"JobState", json:"JobState"
- string licenses = 23; // @gotags: copier:"Licenses", json:"Licenses"
- string mcs_label = 24; // @gotags: copier:"MCS_label", json:"MCS_label"
- string min_cpus_node = 25; // @gotags: copier:"MinCPUsNode", json:"MinCPUsNode"
- string min_tmp_disk_node = 26; // @gotags: copier:"MinTmpDiskNode", json:"MinTmpDiskNode"
- string network = 27; // @gotags: copier:"Network", json:"Network"
- string nice = 28; // @gotags: copier:"Nice", json:"Nice"
- string node_list = 29; // @gotags: copier:"NodeList", json:"NodeList"
- string ntasks_per_nbsc = 30; // @gotags: copier:"NtasksPerN:B:S:C", json:"NtasksPerN:B:S:C"
- string num_cpus = 31; // @gotags: copier:"NumCPUs", json:"NumCPUs"
- string num_nodes = 32; // @gotags: copier:"NumNodes", json:"NumNodes"
- string num_tasks = 33; // @gotags: copier:"NumTasks", json:"NumTasks"
- string over_subscribe = 34; // @gotags: copier:"OverSubscribe", json:"OverSubscribe"
- string partition = 35; // @gotags: copier:"Partition", json:"Partition"
- string power = 36; // @gotags: copier:"Power", json:"Power"
- string priority = 37; // @gotags: copier:"Priority", json:"Priority"
- string qos = 38; // @gotags: copier:"QOS", json:"QOS"
- string reason = 39; // @gotags: copier:"Reason", json:"Reason"
- string reboot = 40; // @gotags: copier:"Reboot", json:"Reboot"
- string req_bsct = 41; // @gotags: copier:"ReqB:S:C:T", json:"ReqB:S:C:T"
- string ReqNodeList = 42; // @gotags: copier:"ReqNodeList", json:"ReqNodeList"
- string requeue = 43; // @gotags: copier:"Requeue", json:"Requeue"
- string restarts = 44; // @gotags: copier:"Restarts", json:"Restarts"
- string run_time = 45; // @gotags: copier:"RunTime", json:"RunTime"
- string batch_host = 46; // @gotags: copier:"BatchHost", json:"BatchHost"
- string secs_pre_suspend = 47; // @gotags: copier:"SecsPreSuspend", json:"SecsPreSuspend"
- string socks_node = 48; // @gotags: copier:"Socks/Node", json:"Socks/Node"
- string start_time = 49; // @gotags: copier:"StartTime", json:"StartTime"
- string std_err = 50; // @gotags: copier:"StdErr", json:"StdErr"
- string std_in = 51; // @gotags: copier:"StdIn", json:"StdIn"
- string std_out = 52; // @gotags: copier:"StdOut", json:"StdOut"
- string submit_time = 53; // @gotags: copier:"SubmitTime", json:"SubmitTime"
- string suspend_time = 54; // @gotags: copier:"SuspendTime", json:"SuspendTime"
- string tres = 55; // @gotags: copier:"TRES", json:"TRES"
- string time_limit = 56; // @gotags: copier:"TimeLimit", json:"TimeLimit"
- string time_min = 57; // @gotags: copier:"TimeMin", json:"TimeMin"
- string user_id = 58; // @gotags: copier:"UserId", json:"UserId"
- string work_dir = 59; // @gotags: copier:"WorkDir", json:"WorkDir"
- }
-
- message JobVncSessionInfo {
- string archive = 1; // @gotags: copier:"archive", json:"archive"
- uint32 i_client_number = 2; // @gotags: copier:"iClientNumber", json:"iClientNumber"
- string i_pixel_depth = 3; // @gotags: copier:"iPixelDepth", json:"iPixelDepth"
- string list_clients = 4; // @gotags: copier:"listClients", json:"listClients"
- string locale = 5; // @gotags: copier:"locale", json:"locale"
- string loginPasswd = 6; // @gotags: copier:"loginPasswd", json:"loginPasswd"
- string map_session_extra_attrs = 7; // @gotags: copier:"mapSessionExtraAttrs", json:"mapSessionExtraAttrs"
- string str_auth_type = 8; // @gotags: copier:"strAuthType", json:"strAuthType"
- string str_geometry = 9; // @gotags: copier:"strGeometry", json:"strGeometry"
- string str_job_manager_addr = 10; // @gotags: copier:"strJobManagerAddr", json:"strJobManagerAddr"
- string str_job_manager_id = 11; // @gotags: copier:"strJobManagerID", json:"strJobManagerID"
- string str_job_manager_name = 12; // @gotags: copier:"strJobManagerName", json:"strJobManagerName"
- string str_relate_job_id = 13; // @gotags: copier:"strRelateJobID", json:"strRelateJobID"
- string str_server_addr = 14; // @gotags: copier:"strServerAddr", json:"strServerAddr"
- string str_server_name = 15; // @gotags: copier:"strServerName", json:"strServerName"
- string str_session_ctime = 16; // @gotags: copier:"strSessionCTime", json:"strSessionCTime"
- string str_session_height = 17; // @gotags: copier:"strSessionHeight", json:"strSessionHeight"
- string str_session_id = 18; // @gotags: copier:"strSessionID", json:"strSessionID"
- string str_session_owner = 19; // @gotags: copier:"strSessionOwner", json:"strSessionOwner"
- string str_session_type = 20; // @gotags: copier:"strSessionType", json:"strSessionType"
- string str_session_width = 21; // @gotags: copier:"strSessionWidth", json:"strSessionWidth"
- string vnc_code = 22; // @gotags: copier:"vncCode", json:"vncCode"
- }
-
- message JobDetail{
- string app_type = 1; // @gotags: copier:"AppType", json:"appType"
- string ave_rss = 2; // @gotags: copier:"AveRSS", json:"aveRSS"
- string ave_vm_size = 3; // @gotags: copier:"AveVMSize", json:"aveVMSize"
- string cpu_time_used = 4; // @gotags: copier:"CpuTimeUsed", json:"cpuTimeUsed"
- uint32 dcu_num_req = 5; // @gotags: copier:"DcuNumReq", json:"dcuNumReq"
- uint32 dcu_num_used = 6; // @gotags: copier:"DcuNumUsed", json:"dcuNumUsed"
- string error_path = 7; // @gotags: copier:"ErrorPath", json:"errorPath"
- string exit_code = 8; // @gotags: copier:"ExitCode", json:"exitCode"
- uint32 gpu_num_req = 9; // @gotags: copier:"GpuNumReq", json:"gpuNumReq"
- uint32 gpu_num_used = 10; // @gotags: copier:"GpuNumUsed", json:"gpuNumUsed"
- string job_end_time = 11; // @gotags: copier:"JobEndTime", json:"jobEndTime"
- string job_id = 12; // @gotags: copier:"JobId", json:"jobId"
- JobInitAttr job_init_attr = 13; // @gotags: copier:"JobInitAttr", json:"JobInitAttr"
- string job_name = 14; // @gotags: copier:"JobName", json:"jobName"
- string job_run_time = 15; // @gotags: copier:"JobRunTime", json:"jobRunTime"
- string job_start_time = 16; // @gotags: copier:"JobStartTime", json:"jobStartTime"
- string job_status = 17; // @gotags: copier:"JobStatus", json:"jobStatus"
- string job_submit_time = 18; // @gotags: copier:"JobSubmitTime", json:"jobSubmitTime"
- JobVncSessionInfo job_session_info = 19; // @gotags: copier:"JobVncSessionInfo", json:"jobVncSessionInfo"
- string job_manager_id = 20; // @gotags: copier:"JobManagerId", json:"jobmanagerId"
- string job_manager_name = 21; // @gotags: copier:"JobManagerName", json:"jobmanagerName"
- string job_manager_type = 22; // @gotags: copier:"JobManagerType", json:"jobmanagerType"
- string mem_used = 23; // @gotags: copier:"MemUsed", json:"memUsed"
- uint32 node_num_req = 24; // @gotags: copier:"NodeNumReq", json:"nodeNumReq"
- string node_used = 25; // @gotags: copier:"NodeUsed", json:"nodeUsed"
- string output_path = 26; // @gotags: copier:"OutputPath", json:"outputPath"
- string priority = 27; // @gotags: copier:"Priority", json:"priority"
- uint32 proc_num_req = 28; // @gotags: copier:"ProcNumReq", json:"procNumReq"
- uint32 proc_num_used = 29; // @gotags: copier:"procNumUsed", json:"procNumUsed"
- string queue = 30; // @gotags: copier:"Queue", json:"queue"
- string restarts = 31; // @gotags: copier:"Restarts", json:"restarts"
- string scale = 32; // @gotags: copier:"Scale", json:"scale"
- string user = 33; // @gotags: copier:"User", json:"user"
- string walltime_req = 34; // @gotags: copier:"WalltimeReq", json:"walltimeReq"
- string work_dir = 35; // @gotags: copier:"WorkDir", json:"workDir"
- }
-
- message JobDetailReq{
- string job_id = 1; // @gotags: copier:"JobId", json:"jobId"
- }
-
- message GetJobDetailResp{
- string code = 1; // @gotags: copier:"Code", json:"code"
- string msg = 2; // @gotags: copier:"Msg", json:"msg"
- JobDetail data = 3; // @gotags: copier:"data", json:"data"
- }
- /******************Job Detail End*************************/
-
- /******************Job(Delete) Start*************************/
- message DeleteJobReq{
- string str_job_info_map = 1; // @gotags: copier:"strJobInfoMap", json:"strJobInfoMap"
- }
-
- message DeleteJobResp{
- string code = 1; // @gotags: copier:"Code", json:"code"
- string msg = 2; // @gotags: copier:"Msg", json:"msg"
- map<string, string> data = 3; // @gotags: copier:"Result", json:"data"
- }
- /******************Job(Delete) End*************************/
-
- /******************Job Start*************************/
- message job{
- string job_id = 1; // @gotags: copier:"JobId"
- string job_name = 2; // @gotags: copier:"Name"
- string job_status = 3; // @gotags: copier:"JobStatus"
- string queue = 4; // @gotags: copier:"Partition"
- string user = 5; // @gotags: copier:"UserId"
- string node_used = 6; // @gotags: copier:"ExcNodes"
- int32 proc_num_used = 7; // @gotags: copier:"NumCpus"
- string job_start_time = 8; // @gotags: copier:"StartTime"
- string job_run_time = 9; // @gotags: copier:"JobRunTime"
- string job_manager_id = 10; // @gotags: copier:"JobmanagerId"
- string job_manager_name = 11; // @gotags: copier:"JobmanagerName"
- string job_manager_type = 12; // @gotags: copier:"JobmanagerType"
- string error_path = 13; // @gotags: copier:"ErrorPath"
- string output_path = 14; // @gotags: copier:"OutputPath"
- string work_dir = 15; // @gotags: copier:"WorkDir"
- string reason = 16; // @gotags: copier:"Reason"
- string app_type = 17; // @gotags: copier:"AppType"
- }
-
- message ListJobReq{
- }
-
- message ListJobResp{
- uint32 code = 1; // @gotags: copier:"Code"
- string msg = 2; // @gotags: copier:"Msg"
- uint32 record_count = 3; // @gotags: copier:"RecordCount"
- repeated job jobs = 4; // @gotags: copier:"Jobs"
- }
- /******************Job End*************************/
-
-
- /******************History Job Start*************************/
-
- message ListHistoryJobReq{
- string strClusterNameList = 1; // @gotags: copier:"StrClusterNameList" //调度器ID 示例:1638523853
- string startTime = 2; // @gotags: copier:"StartTime" //开始时间 示例:2021-11-23 01:01:01
- string endTime = 3; // @gotags: copier:"EndTime" //结束时间 示例:2021-12-23 01:01:01
- string timeType = 4; // @gotags: copier:"TimeType" //CUSTOM 示例:CUSTOM
- string queue = 5; // @gotags: copier:"Queue" //队列名称 示例:debug
- string appType = 6; // @gotags: copier:"AppType" //应用名称 示例:fluent
- string sort = 7; // @gotags: copier:"Sort" //排序规则 示例:DESC/ASC
- string orderBy = 8; // @gotags: copier:"OrderBy" //排序字段 示例:jobId
- string jobId = 9; // @gotags: copier:"JobId" //作业ID 示例:12
- string jobState = 10; // @gotags: copier:"JobState" //'statR(运行)','statQ(排队)','statH(保留)','statS(挂起)','statE(退出)','statC(完成)','statW(等待)','statX(其他)' 示例:statQ
- string hostName = 11; // @gotags: copier:"HostName" //节点名称 示例:h04r3n07
- string strUser = 12; // @gotags: copier:"StrUser" //用户名称 示例:test
- string jobName = 13; // @gotags: copier:"JobName" //作业名称 示例:STDIN_1208_173644
- int32 start = 14; // @gotags: copier:"Start" //起始坐标 示例:0
- int32 limit = 15; // @gotags: copier:"Limit" //请求一次获取数据的数目 示例:25
- string isQueryByQueueTime = 16; // @gotags: copier:"IsQueryByQueueTime" //按照结束时间查询false/按照入队时间查询true(推荐false) 示例:false
- }
-
- message ListHistoryJobResp{
- string code = 1; // @gotags: copier:"Code"
- string msg = 2; // @gotags: copier:"Msg"
- HistoryJobData data = 4; // @gotags: copier:"Data"
- }
-
- message HistoryJobData {
- int32 total = 1; // @gotags: copier:"Total"
- repeated HistoryJobList list = 2; // @gotags: copier:"List"
- }
-
- message HistoryJobList {
- string acctTime = 1; // @gotags: copier:"AcctTime" //记账时间 示例:2021-11-04 18:07:12
- string jobId = 2; // @gotags: copier:"JobId" //作业id 示例:12
- int32 jobmanagerId = 3; // @gotags: copier:"JobmanagerId" //区域id 示例:1638523853
- string userName = 4; // @gotags: copier:"UserName" //用户名 示例:haowj
- string jobName = 5; // @gotags: copier:"JobName" //作业名 示例:FLUENT_1104_181054
- string queue = 6; // @gotags: copier:"Queue" //队列名 示例:debug
- string jobQueueTime = 7; // @gotags: copier:"JobQueueTime" //作业入队列时间 示例:2021-11-04 17:57:34
- string jobStartTime = 8; // @gotags: copier:"JobStartTime" //作业启动时间 示例:2021-11-04 17:57:34
- string jobExecHost = 9; // @gotags: copier:"JobExecHost" //作业执行节点 示例:gv35New248
- int32 nodect = 10; // @gotags: copier:"Nodect" //分配的节点数 示例:1
- string jobEndTime = 11; // @gotags: copier:"JobEndTime" //作业结束时间 示例:2021-11-04 18:07:12
- string jobWalltimeUsed = 12; // @gotags: copier:"JobWalltimeUsed" //作业实际使用的Walltime,单位为秒 示例:0.1606
- string workdir = 13; // @gotags: copier:"Workdir" //工作空间 示例:/public/home/haowj/00-HPC-CASE/FLUENT_1027_105403
- string appType = 14; // @gotags: copier:"AppType" //作业应用类型 示例:FLUENT
- string jobState = 15; // @gotags: copier:"JobState" //作业状态 示例:statC
- int32 jobExitStatus = 16; // @gotags: copier:"JobExitStatus" //作业退出码 示例:0
- int32 jobProcNum = 17; // @gotags: copier:"JobProcNum" //作业CPU核数 示例:1
- }
- /******************History Job End*************************/
-
- /******************Job(Submit) Start*************************/
- message SubmitJobReq{
- string apptype = 1; // @gotags: copier:"Apptype"
- string appname = 2; // @gotags: copier:"Appname"
- int64 strJobManagerID = 3; // @gotags: copier:"StrJobManagerID"
- MapAppJobInfo mapAppJobInfo = 4; // @gotags: copier:"MapAppJobInfo"
- }
-
- message SubmitJobResp{
- string Code = 1; // @gotags: copier:"Code"
- string Msg = 2; // @gotags: copier:"Msg"
- string Data = 3; // @gotags: copier:"Data"
- }
-
- message MapAppJobInfo{
- string GAP_CMD_FILE = 1; // @gotags: copier:"GAP_CMD_FILE" //命令行内容
- string GAP_NNODE = 2; // @gotags: copier:"GAP_NNODE" //节点个数(当指定该参数时,GAP_NODE_STRING必须为"")
- string GAP_NODE_STRING = 3; // @gotags: copier:"GAP_NODE_STRING" //指定节点(当指定该参数时,GAP_NNODE必须为"")
- string GAP_SUBMIT_TYPE = 4; // @gotags: copier:"GAP_SUBMIT_TYPE" //cmd(命令行模式)
- string GAP_JOB_NAME = 5; // @gotags: copier:"GAP_JOB_NAME" //作业名称
- string GAP_WORK_DIR = 6; // @gotags: copier:"GAP_WORK_DIR" //工作路径
- string GAP_QUEUE = 7; // @gotags: copier:"GAP_QUEUE" //队列名称
- string GAP_NPROC = 8; // @gotags: copier:"GAP_NPROC" //总核心数(GAP_NPROC和GAP_PPN选其一填写)
- string GAP_PPN = 9; // @gotags: copier:"GAP_PPN" //CPU核心/节点(GAP_NPROC和GAP_PPN选其一填写)
- string GAP_NGPU = 10; // @gotags: copier:"GAP_NGPU" //GPU卡数/节点
- string GAP_NDCU = 11; // @gotags: copier:"GAP_NDCU" //DCU卡数/节点
- string GAP_JOB_MEM = 12; // @gotags: copier:"GAP_JOB_MEM" //每个节点内存值,单位为MB/GB
- string GAP_WALL_TIME = 13; // @gotags: copier:"GAP_WALL_TIME" //最大运行时长(HH:MM:ss)
- string GAP_EXCLUSIVE = 14; // @gotags: copier:"GAP_EXCLUSIVE" // 是否独占节点,1为独占,空为非独占
- string GAP_APPNAME = 15; // @gotags: copier:"GAP_APPNAME" //BASE(基础应用),支持填写具体的应用英文名称
- string GAP_MULTI_SUB = 16; // @gotags: copier:"GAP_MULTI_SUB" //作业组长度,建议为小于等于50的正整数
- string GAP_STD_OUT_FILE = 17; // @gotags: copier:"GAP_STD_OUT_FILE" //工作路径/std.out.%j
- string GAP_STD_ERR_FILE = 18; // @gotags: copier:"GAP_STD_ERR_FILE" //工作路径/std.err.%j
- }
- /******************Job(Submit) End*************************/
-
- message ParaStorQuotaReq{
- string username = 1; // @gotags: copier:"username"
- }
-
-
- message ParaStorQuotaResp{
- string Code = 1; // @gotags: copier:"Code"
- string Msg = 2; // @gotags: copier:"Msg"
- repeated QuotaData data = 3; // @gotags: copier:"Data"
- }
-
- message QuotaData{
- string username = 1; // @gotags: copier:"username" //用户名
- string path = 2; // @gotags: copier:"path" //共享存储配额路径
- double threshold = 3; // @gotags: copier:"threshold" //共享存储配额量,单位GB
- double usage = 4; // @gotags: copier:"usage" //共享存储使用量,单位GB
- }
-
- message WallTimeReq{
- string username = 1; // @gotags: copier:"username"
- }
-
- message WallTimeResp{
- string Code = 1; // @gotags: copier:"Code"
- string Msg = 2; // @gotags: copier:"Msg"
- double data = 3; // @gotags: copier:"Data"
- }
-
- message QueueJobsReq{
- string userName = 1;//@gotags: copier:"userName"
- }
-
- message QueueJobsResp{
- string Code = 1; // @gotags: copier:"Code"
- string Msg = 2; // @gotags: copier:"Msg"
- repeated Queue data = 3; // @gotags: copier:"Data"
- }
-
- message Queue{
- string name = 1; // @gotags: copier:"name"
- repeated Metric values = 2;// @gotags: copier:"values"
-
- }
-
- message Metric{
- string metricName = 1;// @gotags: copier:"metricName"
- string metricValue = 2;// @gotags: copier:"metricValue"
- }
-
- message CpuCoreReq{
-
- }
-
- message CpuCoreResp{
- string Code = 1; // @gotags: copier:"Code"
- string Msg = 2; // @gotags: copier:"Msg"
- repeated CpuCore data = 3; // @gotags: copier:"data"
- }
-
- message CpuCore{
- string name = 1; // @gotags: copier:"name"
- int32 y = 2;// @gotags: copier:"y"
- }
-
- message JobsReq{
- string userName = 1; // @gotags: copier:"userName"
- }
-
- message JobsResp{
- string Code = 1; // @gotags: copier:"Code"
- string Msg = 2; // @gotags: copier:"Msg"
- repeated JobCore data = 3; // @gotags: copier:"data"
- }
-
- message JobCore{
- string name = 1; // @gotags: copier:"name"
- int32 y = 2;// @gotags: copier:"y"
- }
-
- message HistoryJobDetailReq{
- string jobId = 1;
- string jobmanagerId = 2;
- string acctTime = 3;
- }
-
- message HistoryJobDetail {
- string acctTime = 1;// @gotags: copier:"acctTime"
- string appType = 2;
- string command = 3;
- string commandExist = 4;
- string cpuNuclearHour = 5;
- string cpuNuclearSec = 6;
- double cpuUnitPrice = 7;
- string dcuCardHour = 8;
- string dcuCardSec = 9;
- double dcuUnitPrice = 10;
- string efficiencyCpu = 11;
- int64 exclusiveCputime = 12;
- int64 exclusiveMem = 13;
- int64 exclusiveWalltime = 14;
- string goldenable = 15;
- string gpuCardHour = 16;
- string gpuCardSec = 17;
- double gpuUnitPrice = 18;
- string groupName = 19;
- string historyAccount = 20;
- string historyQueuerate = 21;
- string isSinglejob = 22;
- int64 jobCpuTime = 23;
- int64 jobDcuNum = 24;
- string jobEndTime = 25;
- string jobExecGpus = 26;
- string jobExecHost = 27;
- int64 jobExitStatus = 28;
- int64 jobGpuNum = 29;
- string jobId = 30;
- int64 jobMemUsed = 31;
- string jobName = 32;
- int64 jobProcNum = 33;
- string jobQueueTime = 34;
- double jobReqCpu = 35;
- double jobReqDcu = 36;
- double jobReqGpu = 37;
- string jobReqMem = 38;
- double jobReqNodes = 39;
- int64 jobResponseTime = 40;
- string jobStartTime = 41;
- string jobState = 42;
- int64 jobVmemUsed = 43;
- int64 jobWaitTime = 44;
- int64 jobWalltimeUsed = 45;
- int64 jobmanagerId = 46;
- string jobmanagerName = 47;
- string needNodes = 48;
- int64 nodect = 49;
- string owner = 50;
- string queue = 51;
- string scale = 52;
- int64 shareCputime = 53;
- int64 shareMem = 54;
- int64 shareWalltime = 55;
- string startCount = 56;
- string userName = 57;
- int64 walltime = 58;
- string workdir = 59;
- }
-
- message HistoryJobDetailResp {
- string code = 1;
- string msg = 2;
- HistoryJobDetail data = 3;
- }
-
- message FileContentResp{
- string code = 1; // @gotags: copier:"Code" //状态码 示例:0
- string msg = 2; // @gotags: copier:"Msg" //信息 示例:success
- FileDataResp data = 3; // @gotags: copier:"Data" //对象数据
- }
-
- message FileDataReq{
- string hostName = 1; // @gotags: copier:"HostName" //服务器hostname 示例:127.0.0.1
- string dirPath = 2; // @gotags: copier:"DirPath" //服务器文件绝对路径 示例:/public/home/test/BASE/STDIN_1210_114429/std.out.22
- int32 triggerNum = 3; // @gotags: copier:"TriggerNum" //翻页次数,第一次打开传1,文件每超过1000行,该参数累加1(类似分页,每页显示1000行数据) 示例:1
- string rollDirection = 4; // @gotags: copier:"RollDirection" //文件查看方向,传参UP,从文件尾向上看;传参DOWN,从文件头向下看 示例:UP
- }
-
- message FileDataResp{
- int32 allLineTotal = 1; // @gotags: copier:"AllLineTotal" //文件总行数 示例:100
- string success = 2; // @gotags: copier:"Success" //请求是否成功 示例:true
- int32 totalTriggerTimes = 3; // @gotags: copier:"TotalTriggerTimes" //总次数(类似分页总页数) 示例:1
- string errmsg = 4; // @gotags: copier:"Errmsg" //错误信息 示例:false
- string data = 5; // @gotags: copier:"Data" //返回的文件内容 示例:start time is: 2021-10-14
- }
-
- message QueueReq{
- string user = 1; // @gotags: copier:"User" //用户 示例:test
- string strJobManagerID = 2; // @gotags: copier:"StrJobManagerID" //调度器ID 示例:1626190154
- }
-
- message QueueResp{
- string code = 1; // @gotags: copier:"Code" //状态码 示例:0
- string msg = 2; // @gotags: copier:"Msg" //信息 示例:success
- repeated QueueData data = 3; // @gotags: copier:"Data" //队列数组
- }
-
- message QueueData{
- string aclHosts = 1; // @gotags: copier:"aclHosts" //可用节点,多个节点用逗号隔开 示例:node1,node2
- string id = 2; // @gotags: copier:"id" //队列名称 示例:debug
- string text = 3; // @gotags: copier:"text" //队列名称 示例:debug
- string queNodes = 4; // @gotags: copier:"queNodes" //队列节点总数 示例:3
- string queMinNodect = 5; // @gotags: copier:"queMinNodect" //队列最小节点数 示例:1
- string queMaxNgpus = 6; // @gotags: copier:"queMaxNgpus" //队列最大GPU卡数 示例:0
- string queMaxPPN = 7; // @gotags: copier:"queMaxPPN" //使用该队列作业最大CPU核心数 示例:4
- string queChargeRate = 8; // @gotags: copier:"queChargeRate" //费率 示例:1
- string queMaxNcpus = 9; // @gotags: copier:"queMaxNcpus" //用户最大可用核心数 示例:4
- string queMaxNdcus = 10; // @gotags: copier:"queMaxNdcus" //队列总DCU卡数 示例:0
- string queueName = 11; // @gotags: copier:"queueName" //队列名称 示例:debug
- string queMinNcpus = 12; // @gotags: copier:"queMinNcpus" //队列最小CPU核数 示例:1
- string queFreeNodes = 13; // @gotags: copier:"queFreeNodes" //队列空闲节点数 示例:1
- string queMaxNodect = 14; // @gotags: copier:"queMaxNodect" //队列作业最大节点数 示例:1
- string queMaxGpuPN = 15; // @gotags: copier:"queMaxGpuPN" //队列单作业最大GPU卡数 示例:0
- string queMaxWalltime = 16; // @gotags: copier:"queMaxWalltime" //队列最大运行时间 示例:unlimit
- string queMaxDcuPN = 17; // @gotags: copier:"queMaxDcuPN" //队列单作业最大DCU卡数 示例:0
- }
-
- message QueueDetailsResp{
- string code = 1; // @gotags: copier:"Code" //状态码 示例:0
- string msg = 2; // @gotags: copier:"Msg" //信息 示例:success
- repeated QueueDetailsData data = 3; // @gotags: copier:"Data" //队列数组
- }
-
- message QueueDetailsData{
- int32 queNodes = 1; // @gotags: copier:"queNodes" //队列节点总数 示例:3
- int32 queMinNodect = 2; // @gotags: copier:"queMinNodect" //队列最小节点数 示例:1
- int32 queMaxNgpus = 3; // @gotags: copier:"queMaxNgpus" //队列最大GPU卡数 示例:0
- int32 queMaxPPN = 4; // @gotags: copier:"queMaxPPN" //使用该队列作业最大CPU核心数 示例:4
- float queChargeRate = 5; // @gotags: copier:"queChargeRate" //费率 示例:1
- int32 queMaxNcpus = 6; // @gotags: copier:"queMaxNcpus" //用户最大可用核心数 示例:4
- int32 queMaxNdcus = 7; // @gotags: copier:"queMaxNdcus" //队列总DCU卡数 示例:0
- string queueName = 8; // @gotags: copier:"queueName" //队列名称 示例:debug
- int32 queMinNcpus = 9; // @gotags: copier:"queMinNcpus" //队列最小CPU核数 示例:1
- int32 queFreeNodes = 10; // @gotags: copier:"queFreeNodes" //队列空闲节点数 示例:1
- int32 queMaxNodect = 11; // @gotags: copier:"queMaxNodect" //队列作业最大节点数 示例:1
- int32 queMaxGpuPN = 12; // @gotags: copier:"queMaxGpuPN" //队列单作业最大GPU卡数 示例:0
- int32 queMaxWalltime = 13; // @gotags: copier:"queMaxWalltime" //队列最大运行时间 示例:unlimit
- int32 queMaxDcuPN = 14; // @gotags: copier:"queMaxDcuPN" //队列单作业最大DCU卡数 示例:0
- }
-
- message UserQuotasLimitResp{
- string code = 1; // @gotags: copier:"Code" //状态码 示例:0
- string msg = 2; // @gotags: copier:"Msg" //信息 示例:success
- UserQuotasLimitData data = 3; // @gotags: copier:"Data" //队列数组
- }
-
- message UserQuotasLimitData{
- string userName = 1; // @gotags: copier:"userName" //用户名称
- string accountName = 2; // @gotags: copier:"accountName" //用户所关联的默认的账号名
- int64 userMaxCpu = 3; // @gotags: copier:"userMaxCpu" //用户最大CPU核数,单位:个,如果未做限制,则值为-1
- int64 userMaxDcu = 4; // @gotags: copier:"userMaxDcu" //用户最大DCU卡数,单位:个,如果未做限制,则值为-1
- int64 userMaxGpu = 5; // @gotags: copier:"userMaxGpu" //用户最大GPU卡数,单位:个,如果未做限制,则值为-1
- int64 userMaxMlu = 6; // @gotags: copier:"userMaxMlu" //用户最大MLU卡数,单位:个,如果未做限制,则值为-1
- int64 userMaxMem = 7; // @gotags: copier:"userMaxMem" //用户最大内存,单位:m,如果未做限制,则值为-1
- int64 userMaxNode = 8; // @gotags: copier:"userMaxNode" //用户最大节点数,单位:个,如果未做限制,则值为-1
- int64 userMaxSubmitJob = 9; // @gotags: copier:"userMaxSubmitJob" //用户最大提交作业数,单位:个,如果未做限制,则值为-1
- int64 userMaxRunJob = 10; // @gotags: copier:"userMaxRunJob" //用户最大运行作业数,单位:个,如果未做限制,则值为-1
- int64 accountMaxCpu = 11; // @gotags: copier:"accountMaxCpu" //账户最大CPU核数,单位:个,如果未做限制,则值为-1
- int64 accountMaxDcu = 12; // @gotags: copier:"accountMaxDcu" //账户最大DCU卡数,单位:个,如果未做限制,则值为-1
- int64 accountMaxGpu = 13; // @gotags: copier:"accountMaxGpu" //账户最大GPU卡数,单位:个,如果未做限制,则值为-1
- int64 accountMaxMlu = 14; // @gotags: copier:"accountMaxMlu" //账户最大MLU卡数,单位:个,如果未做限制,则值为-1
- int64 accountMaxMem = 15; // @gotags: copier:"accountMaxMem" //账户最大内存,单位:m,如果未做限制,则值为-1
- int64 accountMaxNode = 16; // @gotags: copier:"accountMaxNode" //账户最大节点数,单位:个,如果未做限制,则值为-1
- int64 accountMaxSubmitJob = 17; // @gotags: copier:"accountMaxSubmitJob" //账户最大提交作业数,单位:个,如果未做限制,则值为-1
- int64 accountMaxRunJob = 18; // @gotags: copier:"accountMaxRunJob" //账户最大运行作业数,单位:个,如果未做限制,则值为-1
- int64 userMinCpu = 19; // @gotags: copier:"userMinCpu" //用户最小CPU核数,单位:个,如果未做限制,则值为-1
- int64 userMinNode = 20; // @gotags: copier:"userMinNode" //用户最小节点数,单位:个,如果未做限制,则值为-1
- int64 maxWallTime = 21; // @gotags: copier:"maxWallTime" //用户关联的glod账号的机时,机时单位:s,如果未做限制,则值为-1
- }
-
- message ACAuthReq {
- string user = 1;
- string password = 2;
- string orgId = 3;
- }
-
- message ACAuthResp {
- string msg = 1;
- string code = 2;
- repeated ACAuthData data = 3;
- }
-
- message ACAuthData {
- string clusterName = 1;
- string clusterId = 2;
- string token = 3;
- }
-
- // HPC Services for AC
- service hpcAC {
-
- //ListJob list all jobs
- rpc ListJob(ListJobReq) returns (ListJobResp);
-
- //ListHistoryJob list all history jobs
- rpc ListHistoryJob(ListHistoryJobReq) returns (ListHistoryJobResp);
-
- //Submit job
- rpc SubmitJob(SubmitJobReq) returns (SubmitJobResp);
-
- // ListJobManager list all job managers
- rpc ListJobManager(JobManagerReq) returns (ListJobManagerResp);
-
- // GetJobDetail get job detail
- rpc GetJobDetail(JobDetailReq) returns (GetJobDetailResp);
-
- // DeleteJob delete job
- rpc DeleteJob(DeleteJobReq) returns (DeleteJobResp);
-
- //FileContent 查看文件内容
- rpc FileContent(FileDataReq) returns (FileContentResp);
-
- //SelectQueueByUser 查询用户可访问队列列表
- rpc SelectQueueByUser(QueueReq) returns(QueueResp);
-
- //QueryQueueDetails 查询队列资源详细信息
- rpc QueryQueueDetails(QueueReq) returns(QueueDetailsResp);
-
- ///QueryUserQuotasLimit 查询用户资源限制信息
- rpc QueryUserQuotasLimit(QueueReq) returns(UserQuotasLimitResp);
-
- //ParaStor Quota
- rpc ParaStorQuota(ParaStorQuotaReq) returns (ParaStorQuotaResp);
-
- //WallTime
- rpc WallTime(WallTimeReq) returns (WallTimeResp);
-
- //QueueJobs
- rpc QueueJobs(QueueJobsReq)returns (QueueJobsResp);
-
- rpc CpuCore(CpuCoreReq) returns (CpuCoreResp);
-
- rpc jobs(JobsReq) returns (JobsResp);
-
- rpc HistoryJobDetail(HistoryJobDetailReq)returns (HistoryJobDetailResp);
-
- // 曙光ac登录认证
- rpc ACAuth(ACAuthReq) returns (ACAuthResp);
- }
|