Common API operations related to scheduler plug-ins
This page describes the plug-in features to enable when calling common E-HPC API operations, so your scheduler integrates correctly with cluster scale-out and scale-in workflows.
This page covers scenarios where only scheduler plug-ins are configured. If you also need to configure domain account plug-ins, enable domain account features as well.
AddNodes
When you call the AddNodes operation to scale out a cluster, set the following plug-in features to true: SchedServiceCheck, NodeJoinCheck, and NodeAdd. Implement the corresponding functions in your plug-in source files.
How it works
Required plug-in features
Enable only the features listed below for this operation.
SchedServiceCheck
Checks whether the scheduling service is running as expected on the specified nodes. Enable this feature based on the node type.
| Item | Details |
|---|---|
| Source file | pluginschedulercheck.py |
| Function | sched_service_check() |
| Example command | systemctl status pbs |
NodeJoinCheck
Checks whether one or more compute nodes have joined the scheduler.
| Item | Details |
|---|---|
| Source file | pluginschedulercheck.py |
| Function | node_join_check() |
| Example command | pbsnodes |
NodeAdd
Adds one or more compute nodes to the scheduler from the scheduling node.
| Item | Details |
|---|---|
| Source file | pluginnodeoperation.py |
| Function | node_add() |
| Example command | qmgr |
DeleteNodes
When you call the DeleteNodes operation to scale in a cluster, set the following plug-in feature to true: NodeDel. Implement the corresponding function in your plug-in source file.
How it works
After DeleteNodes is called, E-HPC releases compute node resources. At the same time, the scheduling node calls NodeDel to remove the compute nodes from the scheduler.
Required plug-in features
Enable only the feature listed below for this operation.
NodeDel
Deletes one or more compute nodes from the scheduler on the scheduling node.
| Item | Details |
|---|---|
| Source file | pluginnodeoperation.py |
| Function | functionnode_del() |
| Example command | qmgr |