Partition AllowUsers
fsched (fsched-dev(FIXME)+) supports setting allowed users by partition.
Purpose
After configuring allowed users by partition, only the allowed users can run jobs in that partition.
tip
For a partition configured with AllowUsers=user1:
- Only
user1can submit new jobs. - Jobs already running by other users before this parameter was configured are not affected.
- Pending jobs from other users submitted before this parameter was configured will remain pending. Because of the user restriction (
REASONisPartitionConfig), they cannot run even if resources are available.
Partition Configuration
In partitions.conf, add the configuration item on the line that starts with PartitionName for the partition you want to configure.
| Parameter | Description | Value Type and Range | Default |
|---|---|---|---|
AllowUsers | Only allowed users can run jobs in the partition | Comma-separated list of usernames | Default is ALL, meaning all users can submit jobs to the partition |
Example
-
Modify the partition configuration that needs allowed users and add:
AllowUsers=test -
After the cluster reconfiguration takes effect, run jobs in the partition with different users. The allowed user can run, and other users cannot.
[test@centos7-16c-1 ~]$ srun hostname
srun: job 33 queued and waiting for resources
srun: job 33 has been allocated resources
centos7-64c-6
[jj@centos7-16c-1 ~]$ srun hostname
srun: E: slurm_allocate_resources_blocking: RESPONSE_SLURM_RC: Access/permission denied
srun: E: Unable to allocate resources: Access/permission denied