Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态调整节点分区 #249

Open
Ashlee1994 opened this issue Apr 10, 2024 · 3 comments · May be fixed by #254
Open

动态调整节点分区 #249

Ashlee1994 opened this issue Apr 10, 2024 · 3 comments · May be fixed by #254
Assignees

Comments

@Ashlee1994
Copy link
Member

No description provided.

@Ashlee1994
Copy link
Member Author

添加节点:
ccontrol add node name=hostname cpu=** memory=**

更新节点:
ccontrol update node name=CPU set cpu=***

添加分区:
ccontrol add partition name=parititionname node=*** priority=***

更新分区:
ccontrol update partition name=CPU set allowlist=account1,account2

注意:分区的allowlist和denylist互斥,只能设置一个

如何鉴定用户程序是否能运行:

  1. 先检查分区的allowlist和denylist,确定账号是否有权限
  2. 确认分区能运行之后,再进入账号树中鉴权。

@MCKZX-llx
Copy link
Collaborator

删除节点:
ccontrol delete node --name=hostname

删除分区:
ccontrol delete partition --name=CPU

@MCKZX-llx
Copy link
Collaborator

MCKZX-llx commented Apr 22, 2024

该分区节点管理方式,出现部分节点不属于任何分区,通常为三种情况:

  1. 只添加了该节点,还没有在分区的节点列表中加入。
  2. 删除了该节点所属的唯一分区。
  3. 更新了某分区的节点列表,不包含该节点。

对于此类节点的定义:属于集群中的一个节点,但不是计算节点,不承担计算任务,若其上还有作业运行,则杀死作业,断开gRPC连接。

@MCKZX-llx MCKZX-llx linked a pull request Apr 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants