5.15. Use of custom resource

Here describes the use method of custom resource.

5.15.1. Function overview

Job operation software has custom resources that can define any resources in addition to node resources and CPU resources.

5.15.2. How to check

The available custom resource can be checked with pjshowrsc -v2 command.

[Use example]

[_LNlogin]$ pjshowrsc -v2
[ CLST: ea-compute ]
[ RSCUNIT: rscunit_ft01 ]
CUSTOM_RESOURCE
RSCNAME                              TOTAL      FREE     ALLOC
jobenv/linux                     unlimited unlimited         0
jobenv/mck                       unlimited unlimited         0
(omitted)

Note

In this usage example, you can see that the types linux and mck are set for the custom resource name jobenv.

5.15.3. Assign method

To assign custom resource, use pjsub command’s -L option.

[Option style]

{-L | --rsc-list} CustomResourceName[=Value]

Option

Description

CustomResourceName

Custom resource name

Value

The number of custom resources to be assigned, or the type of custom resource to be assigned.
“=Value” can be omitted.