-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(mis,portal): 重构scow后端, 对接调度器适配器接口 (#632)
### 1. 部署调度器适配器 首先需要确保您的集群上部署了对应的调度器适配器,得到访问它的地址及端口号 部署适配器可参考文档: - [slurm](https://github.com/PKUHPC/scow-slurm-adapter) ### 2. 修改SCOW配置文件 首先确保您使用了最新的SCOW镜像(可查看`install.yaml`中的`imageTag`字段) 在用于部署scow的`scow-deployment`文件夹中,修改配置文件: - 首先修改集群配置文件 主要变化为删除`slurm`配置项, 将`loginNodes`配置项作为独立的一项配置。新增`adapterUrl`配置项,标识适配器地址 ``` # 集群显示名称 displayName: hpc01 # 调度器适配器的地址 adapterUrl: "192.168.88.101:8972" # 登录节点 loginNodes: - "192.168.88.102" ``` - 修改管理系统配置文件 删除了`fetchJobs`配置项中的`db`项,即不再采用源作业信息数据库,通过适配器同步作业信息 ### 3. 不再使用源作业信息数据库 部署使用适配器后,可以不再部署[`export-jobs`](https://github.com/PKUHPC/export-jobs)项目,同步作业信息的功能由适配器完成
- Loading branch information
Showing
136 changed files
with
4,202 additions
and
3,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@scow/scheduler-adapter-protos": minor | ||
"@scow/lib-scheduler-adapter": minor | ||
"@scow/portal-server": minor | ||
"@scow/test-adapter": minor | ||
"@scow/protos": minor | ||
"@scow/mis-server": minor | ||
"@scow/portal-web": minor | ||
"@scow/demo-vagrant": minor | ||
"@scow/mis-web": minor | ||
"@scow/config": minor | ||
"@scow/auth": minor | ||
"@scow/cli": minor | ||
"@scow/lib-ssh": minor | ||
"@scow/grpc-api": minor | ||
"@scow/docs": minor | ||
--- | ||
|
||
重构 scow,对接调度器适配器接口 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,32 @@ | ||
displayName: hpc00 | ||
misIgnore: true | ||
slurm: | ||
mis: | ||
managerUrl: localhost:22222 | ||
dbPassword: password | ||
clusterName: pkuhpc | ||
scriptPath: /slurmshTest/slurm.sh | ||
adapterUrl: 0.0.0.0:6000 | ||
loginNodes: | ||
- name: login | ||
address: localhost:22222 | ||
|
||
loginNodes: | ||
- name: login | ||
address: localhost:22222 | ||
|
||
partitions: | ||
- name: C032M0128G | ||
mem: 131072 | ||
cores: 32 | ||
nodes: 32 | ||
gpus: 0 | ||
qos: | ||
- low | ||
- normal | ||
- high | ||
- cryoem | ||
- name: GPU | ||
mem: 262144 | ||
cores: 28 | ||
nodes: 32 | ||
gpus: 4 | ||
qos: | ||
- low | ||
- normal | ||
- high | ||
- cryoem | ||
- name: life | ||
mem: 262144 | ||
cores: 28 | ||
gpus: 4 | ||
nodes: 32 | ||
# partitions: | ||
# - name: C032M0128G | ||
# mem: 131072 | ||
# cores: 32 | ||
# nodes: 32 | ||
# gpus: 0 | ||
# qos: | ||
# - low | ||
# - normal | ||
# - high | ||
# - cryoem | ||
# - name: GPU | ||
# mem: 262144 | ||
# cores: 28 | ||
# nodes: 32 | ||
# gpus: 4 | ||
# qos: | ||
# - low | ||
# - normal | ||
# - high | ||
# - cryoem | ||
# - name: life | ||
# mem: 262144 | ||
# cores: 28 | ||
# gpus: 4 | ||
# nodes: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
displayName: hpc01 | ||
misIgnore: true | ||
slurm: | ||
mis: | ||
managerUrl: localhost:22222 | ||
dbPassword: password | ||
clusterName: pkuhpc1 | ||
scriptPath: /slurmshTest/slurm.sh | ||
loginNodes: | ||
- name: login | ||
address: localhost:22222 | ||
partitions: | ||
- name: compute | ||
nodes: 198 | ||
mem: 63000 | ||
cores: 28 | ||
gpus: 0 | ||
qos: | ||
- low | ||
- normal | ||
- high | ||
- name: gpu | ||
nodes: 1 | ||
mem: 386000 | ||
cores: 48 | ||
gpus: 8 | ||
qos: | ||
- low | ||
- normal | ||
- high | ||
adapterUrl: 0.0.0.0:6000 | ||
loginNodes: | ||
- name: login | ||
address: localhost:22222 | ||
# misIgnore: true | ||
# slurm: | ||
# mis: | ||
# managerUrl: localhost:22222 | ||
# dbPassword: password | ||
# clusterName: pkuhpc1 | ||
# scriptPath: /slurmshTest/slurm.sh | ||
# loginNodes: | ||
# - localhost:22222 | ||
# partitions: | ||
# - name: compute | ||
# nodes: 198 | ||
# mem: 63000 | ||
# cores: 28 | ||
# gpus: 0 | ||
# qos: | ||
# - low | ||
# - normal | ||
# - high | ||
# - name: gpu | ||
# nodes: 1 | ||
# mem: 386000 | ||
# cores: 48 | ||
# gpus: 8 | ||
# qos: | ||
# - low | ||
# - normal | ||
# - high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
displayName: hpc01 | ||
slurm: | ||
loginNodes: | ||
- name: login | ||
address: localhost:22222 | ||
partitions: | ||
- name: compute | ||
nodes: 198 | ||
mem: 63000 | ||
cores: 28 | ||
gpus: 0 | ||
qos: | ||
- low | ||
- normal | ||
- high | ||
- name: gpu | ||
nodes: 1 | ||
mem: 386000 | ||
cores: 48 | ||
gpus: 8 | ||
qos: | ||
- low | ||
- normal | ||
- high | ||
adapterUrl: 0.0.0.0:6000 | ||
loginNodes: | ||
- name: login | ||
address: localhost:22222 | ||
# slurm: | ||
# loginNodes: | ||
# - localhost:22222 | ||
# partitions: | ||
# - name: compute | ||
# nodes: 198 | ||
# mem: 63000 | ||
# cores: 28 | ||
# gpus: 0 | ||
# qos: | ||
# - low | ||
# - normal | ||
# - high | ||
# - name: gpu | ||
# nodes: 1 | ||
# mem: 386000 | ||
# cores: 48 | ||
# gpus: 8 | ||
# qos: | ||
# - low | ||
# - normal | ||
# - high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.