Skip to content

Refactor SLURMCluster : use memory and thread kwargs, and dynamicaly create the job_script #22

Closed

Description

@guillaumeeb

First, there is something weird with the SLURMCluster template : only processes are used as a limit, thread number are not taken into account. Moreover, there is no memory limit given.

Secondly, SLURMCluster will need to be updated to match the PBSCluster improvements from #10 (once it is merge): Mainly a more dynamic construct of the submit script. This should prevent some problems as noted in #7, #19 and maybe #20.

Activity

  1. guillaumeeb commented on Mar 23, 2018

    @guillaumeeb
    MemberAuthor

    From the conversation in #20, for example in #20 (comment), I have some concern about the SLURM script used for submission.

    Googling around, I believe we should at least use the following options:

    #SBATCH --ntasks=1
    #SBATCH --cpus-per-task=<dask_processes * dask_threads>
    #SBATCH --mem=<dask_memory * dask_processes>
    

    Another solution maybe to play along with Slurm ntasks=, and tweak the dask-worker command line to only use nprocs=1.

    Finaly I have some concern on using sbatch vs srun.

    Do we have some Slurm users that could answer that?

    cc @bw4sz, @leej3, @bocklund. @luizirber.

  2. jhamman commented on Mar 23, 2018

    @jhamman
    Member

    Also ping @davidedelvento, @kmpaul, @jedwards4b as potentially interested user/developers.

  3. bw4sz commented on Mar 23, 2018

    @bw4sz

    On our system at UF, Sbatch is preferred. Srun is really on interactive nodes for short periods of time. I believe after 24 hours all jobs are wiped away. Beyond that, we have not experienced a difference in environment.

  4. guillaumeeb commented on Mar 23, 2018

    @guillaumeeb
    MemberAuthor

    For the resources allocations, here are some useful links:

  5. jakirkham commented on Mar 23, 2018

    @jakirkham
    Member

    RE: Interactive vs. Batch Jobs

    Would think that you would want to have an option to choose either one. Reason being interactive jobs can be good for a Distributed Adaptive Cluster (i.e. dynamic scaling based on demand) whereas batch jobs would be good when not using a Distributed Adaptive Cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions