Ticket 16433

Summary: Specifying TMP space in restd job
Product: Slurm Reporter: sysadmin
Component: slurmrestdAssignee: Nate Rini <nate>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: nate
Version: 21.08.8   
Hardware: Linux   
OS: Linux   
Site: Allen Institute Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description sysadmin 2023-04-03 14:23:40 MDT
We currently utilize --tmp space in our srun/sbatch jobs and have a user trying to migrate to the slurmrestd interface for their work...

One issue they are finding is that they do not see a way to request --TMP from the API docs... although minimum_tmp_disk_per_node is listed... it doesn't appear to work on job submissions

Their attempt:
{
    "job": {

        "nodes": 1,
        "cpus_per_task": 1,
        "memory_per_node": 10,
        "time_limit": 1,
        "name": "test",
        "partition": "braintv",
        "batch_features": "minimum_tmp_disk_per_node=1GB"
    },
    "script": "#!/bin/bash\n sleep 100"
}

Is there a way to request TMP space in API jobs? If not... can I add it as a feature request?

Many thanks!
Comment 1 Nate Rini 2023-04-03 14:29:39 MDT
Yes, please try using the "temporary_disk_per_node" field.
Comment 2 sysadmin 2023-04-03 14:45:53 MDT
Aah perfect- I see it now... I was looking for the wrong keywords. Much appreciated!