# Help setting up Julia on a cluster

**URL:** <https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519>\
**Category:** Julia at Scale\
**Tags:** question, parallel, cluster\
**Created:** [August 23, 2017, 4:22am UTC](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519 "2017-08-23T04:22:37Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [October 27, 2017, 1:21am UTC](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519/18 "2017-10-27T01:21:25Z")

</div>

I want to add an update and solution to this thread.

The answer by @ElOceanografo is great, specially if you are interested in fine control with the cluster resource manager. I would say that the most clean solution nowadays is through the ClusterManagers.jl package.

Basically, the package defines various functions `addprocs_slurm()`, `addprocs_pbs()`, etc. which can be used in place of the Julia builtin `addprocs()`. When you start Julia, instead of asking for processes with `addprocs()`, you simply do:

```julia
using ClusterManagers

addprocs_pbs(100) # request 100 processes in the cluster using PBS

# REST OF SCRIPT GOES HERE

```

This will take care of submitting the job with the appropriate resource manager without having to write the job script manually.

---

_[View the full topic](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519)._
