用户与角色
admin、operator 和 auditor。auditor 能到审计轨迹,别的什么都到不了 —— 作用域和
operator 一样、被拒绝的方式和 operator 一样、不获得任何高级功能,也从不豁免配额。见
角色与配额。
配额
0 表示不限,--profiles 为空表示全部。
存储配额和 GPU 配额工作方式不同。GPU 是预留的:提交一个作业就把它的卡先划出去。存储只能
事后测量 —— 训练进程往盘上写东西不会告诉平台,而一个作业也说不出它会写多少。所以规则是”已经超了就不出队新作业”,在跑的作业不受影响。用量来自一次周期性扫描
(
TUNEPLANE_STORAGE_SCAN_INTERVAL_S,默认 600 秒),所以它略有滞后,有人可能短时间超过上限。
扫描卡住时,这道闸门放行而不是拒绝:显示一个过期的数字,好过让所有人都提交不了。维护
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 外没有其他选项。