# Overriding cookie generation/handling in Slurm connection manager

**URL:** <https://discourse.julialang.org/t/overriding-cookie-generation-handling-in-slurm-connection-manager/3791>\
**Category:** General Usage\
**Tags:** hpc, parallel, cluster\
**Created:** [May 18, 2017, 5:23pm UTC](https://discourse.julialang.org/t/overriding-cookie-generation-handling-in-slurm-connection-manager/3791 "2017-05-18T17:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon94023334](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Post date:** [May 18, 2017, 5:23pm UTC](https://discourse.julialang.org/t/overriding-cookie-generation-handling-in-slurm-connection-manager/3791/1 "2017-05-18T17:23:43Z")

</div>

(This is a cross post from [Example of reading cookie from (shared) file? · Issue #69 · JuliaParallel/ClusterManagers.jl · GitHub](https://github.com/JuliaParallel/ClusterManagers.jl/issues/69) since it hasn’t gotten any responses there.)

I need to figure out how to store / retrieve a parallel cluster cookie from a file on a shared filesystem that will be accessible to all workers. I’ve looked through the code but can’t figure out how to do it, though the documentation says it’s possible via a ClusterManager override:

> Note that environments requiring higher levels of security can implement this via a custom ClusterManager. For example, cookies can be pre-shared and hence not specified as a startup argument.

If it matters, this is for a Slurm environment. Any guidance would be greatly appreciated.

(Also - if there’s a way to create a cookie of a specific length, that’d be awesome.)
