Common API operations related to scheduler plug-ins

Updated at:

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.

ItemDetails
Source filepluginschedulercheck.py
Functionsched_service_check()
Example commandsystemctl status pbs

NodeJoinCheck

Checks whether one or more compute nodes have joined the scheduler.

ItemDetails
Source filepluginschedulercheck.py
Functionnode_join_check()
Example commandpbsnodes

NodeAdd

Adds one or more compute nodes to the scheduler from the scheduling node.

ItemDetails
Source filepluginnodeoperation.py
Functionnode_add()
Example commandqmgr

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.

ItemDetails
Source filepluginnodeoperation.py
Functionfunctionnode_del()
Example commandqmgr