# ClusterManagers.jl hangs on pbs

**URL:** https://discourse.julialang.org/t/clustermanagers-jl-hangs-on-pbs/11056
**Category:** Julia at Scale
**Tags:** parallel
**Created:** [May 21, 2018, 6:34pm UTC](https://discourse.julialang.org/t/clustermanagers-jl-hangs-on-pbs/11056 "2018-05-21T18:34:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ElOceanografo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eloceanografo/32/624_2.png) [@ElOceanografo](https://discourse.julialang.org/u/ElOceanografo)
#### Post date: [May 22, 2018, 12:05am UTC](https://discourse.julialang.org/t/clustermanagers-jl-hangs-on-pbs/11056/2 "2018-05-22T00:05:14Z")

</div>

I ran into this issue last year, as have a few other people (see [here](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519) and [here](https://discourse.julialang.org/t/clustermanagers-package-not-connecting-for-pbs-batch-system/8879/5)). It seems like the interactive `addprocs_pbs()` approach doesn’t work on all clusters. The details of why not I can’t tell you, but an alternative approach is to use Julia’s `--machinefile` option on startup to tell it which processors PBS has allocated you…basically the cluster version of running `julia -p 2 myscript.jl` on a laptop:

> [@Help setting up Julia on a cluster](https://discourse.julialang.org/t/help-setting-up-julia-on-a-cluster/5519/6):
>
> I recently went through the same learning process on my university’s cluster, and your second question was the hardest part for me. I found the easiest way was to submit to one of the queues using a PBS submit script that tells Julia where to find all the processors via the PBS nodefile. Here’s a minimum working example PBS script: #!/bin/bash #PBS -l nodes=4:ppn=12,walltime=00:05:00 #PBS -N test\_julia #PBS -q debug echo PBS: node file is $PBS\_NODEFILE julia --machinefile=$PBS\_NODEFILE /path…

---

_[View the full topic](https://discourse.julialang.org/t/clustermanagers-jl-hangs-on-pbs/11056)._
