Sets the scheduler configuration for a specified cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:SetSchedulerInfo |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call ListRegions to query the region IDs supported by E-HPC. |
cn-hangzhou |
| ClusterId |
string |
Yes |
The cluster ID. You can call ListClusters to query the cluster ID. |
ehpc-hz-FYUr32**** |
| PbsInfo |
array<object> |
No |
The list of PBS scheduler information. |
|
|
array<object> |
No |
The array of PBS scheduler information. |
||
| AclLimit |
array<object> |
No |
The list of queue limits. |
|
|
object |
No |
The array of queue limits. |
||
| Queue |
string |
No |
The queue limit for users. Valid values of N: 0 to 100. For example, if PbsInfo.N.AclLimit.N.Queue is set to workq and PbsInfo.N.AclLimit.N.AclUsers is set to user1,user2, the workq queue can only be used by user1 and user2. |
workq |
| AclUsers |
string |
No |
The usernames of users restricted to use the queue. Separate multiple usernames with commas (,). If usernames are specified, PbsInfo.N.AclLimit.N.Queue is required. |
user1,user2 |
| ResourceLimit |
array<object> |
No |
The list of node information for cluster users. |
|
|
object |
No |
The array of node information. |
||
| Nodes |
integer |
No |
The maximum number of nodes that the cluster user can use in the queue. |
2 |
| Cpus |
integer |
No |
The maximum number of vCPUs that the cluster user can use on nodes in the queue. |
2 |
| User |
string |
No |
The username of the cluster user that runs the job. |
user1 |
| Queue |
string |
No |
The number of PBS scheduler settings that can be configured in the cluster. Valid values of N for PbsInfo: 0 to 100. The queue resource limits for the user. Valid values of N for ResourceLimit: 0 to 100. The name of the queue used by the cluster user to run jobs. If any of the User, Cpus, Nodes, or Mem parameters is specified in ResourceLimit, Queue is required. |
workq |
| Mem |
string |
No |
The maximum memory resources that the cluster user can use in the queue. Valid units:
|
2gb |
| MaxJobs |
integer |
No |
The maximum number of jobs that the cluster user can submit. If the total number of running and queued jobs of the user exceeds this value, no more jobs can be submitted. |
1000 |
| JobHistoryDuration |
integer |
No |
The retention period of jobs. Job data is destroyed after the retention period expires. Unit: days. |
14 |
| SchedInterval |
integer |
No |
The number of PBS scheduler settings that can be configured in the cluster. Valid values of N for PbsInfo: 0 to 100. The scheduling interval. Unit: seconds. The scheduling interval is the time interval between running multiple jobs. For example, if this parameter is set to 60, the next job can start running only 60 seconds after the current job starts running. Default value: 60. |
60 |
| SchedMaxJobs |
integer |
No |
The maximum number of jobs that can be scheduled in the cluster. If the total number of queued and running jobs in the cluster exceeds this value, no more jobs can be submitted. Default value: 20000. |
20000 |
| SchedMaxQueuedJobs |
integer |
No |
The maximum number of queued jobs that can be scheduled in the cluster. If the number of queued jobs in the cluster exceeds this value, no more jobs can be submitted. Default value: 10000. |
10000 |
| SlurmInfo |
array<object> |
No |
The list of Slurm scheduler information. |
|
|
object |
No |
The array of Slurm scheduler information. |
||
| BackfillInterval |
integer |
No |
The backfill scheduling interval. Unit: seconds. Default value: 60. |
60 |
| SchedInterval |
integer |
No |
The number of Slurm scheduler settings that can be configured in the cluster. Valid values of N for SlurmInfo: 0 to 100. The main scheduling interval. Unit: seconds. Default value: 60. |
60 |
| Scheduler |
array<object> |
Yes |
The list of scheduler information. |
|
|
object |
No |
The array of scheduler information. |
||
| SchedName |
string |
Yes |
The scheduler name. Valid values:
Note
If the scheduler is pbs or pbs19, at least one of the PbsInfo.N.SchedInterval, PbsInfo.N.JobHistoryDuration, PbsInfo.N.ResourceLimit, and PbsInfo.N.AclLimit parameters is required. If the scheduler is slurm, slurm19, or slurm20, at least one of the SlurmInfo.N.SchedInterval and SlurmInfo.N.BackfillInterval parameters is required. |
pbs |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The returned message. |
pbs: scheduler setting successfully. |
| RequestId |
string |
The request ID. |
BBC2F93D-003A-49C4-850C-B826EECF**** |
Examples
Success response
JSON format
{
"Message": "pbs: scheduler setting successfully.",
"RequestId": "BBC2F93D-003A-49C4-850C-B826EECF****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 404 | ClusterNotFound | The target cluster is not found. | The target cluster is not found. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | Alibaba Cloud product error. %s |
| 406 | DbError | A database service error occurred. | Database request failed. |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API call error. %s |
| 407 | NotAuthorized | No authorization is granted. | No authorization is granted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.