跳转到主要内容
控制台里对应的是用户和设置。

用户与角色

三种角色:admin、operator 和 auditor。auditor 能到审计轨迹,别的什么都到不了 —— 作用域和 operator 一样、被拒绝的方式和 operator 一样、不获得任何高级功能,也从不豁免配额。见 角色与配额。

配额

你从没设过时的默认值:并发 8 张卡、并发 4 个作业、每日 GPU 小时不限、存储不限、所有 profile 都 允许、优先级 0。那两个数值上限里 0 表示不限,--profiles 为空表示全部。
存储配额和 GPU 配额工作方式不同。GPU 是预留的:提交一个作业就把它的卡先划出去。存储只能 事后测量 —— 训练进程往盘上写东西不会告诉平台,而一个作业也说不出它会写多少。所以规则是”已经超了就不出队新作业”,在跑的作业不受影响。用量来自一次周期性扫描 (TUNEPLANE_STORAGE_SCAN_INTERVAL_S,默认 600 秒),所以它略有滞后,有人可能短时间超过上限。 扫描卡住时,这道闸门放行而不是拒绝:显示一个过期的数字,好过让所有人都提交不了。

维护

排空会停止新作业出队,并暂停在跑的作业、保留它们的 checkpoint。恢复会把一切自动拉回来,不需要对 每个作业做操作。见维护模式。

tp admin

Manage users and quotas

tp admin disable

Disable or enable a user

tp admin maintenance

Drain, upgrade and resume the cluster

tp admin maintenance drain

Enter maintenance mode and drain

tp admin maintenance resume

Leave maintenance mode
除 --help 外没有其他选项。

tp admin maintenance status

Show maintenance state and safety
除 --help 外没有其他选项。

tp admin set-quota

Set a user’s compute and storage quota

tp admin set-role

Change a user’s role
除 --help 外没有其他选项。

tp admin user-add

Create a local account

tp admin users

List every user
除 --help 外没有其他选项。