Skip to main content

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 user1 can 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 (REASON is PartitionConfig), 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.

ParameterDescriptionValue Type and RangeDefault
AllowUsersOnly allowed users can run jobs in the partitionComma-separated list of usernamesDefault is ALL, meaning all users can submit jobs to the partition

Example

  1. Modify the partition configuration that needs allowed users and add:

    AllowUsers=test
  2. 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