On 20 June 2013 10:23, HUMMEL Michel <[email protected]> wrote:

> Hello,
>
> In our cluster we have critical resources named DCh (specific hardware
> used through TCP sockets) .
>
> All nodes have access to DChs as they are managed with a "global complex"
> "requestable" and "consumable"  : DCh
> This works fine but I need now to make the job to be aware of the "index"
> of the DCh it can use.
>
> I mean every DCh has it's own IP and jobs need to know to which IP it has
> to connect to.
>
> I was hoping that OGS set an env var containing the index of the DCh to
> use but it doesn't.
>
> How can this be managed with OGS ?
>
> Thank you for helping.
>

It sounds like you want RSMAP complexes.  Univa Grid Engine has apparently
implemented these:
http://gridengine.eu/grid-engine-internals/102-univa-grid-engine-810-features-part-2-better-resource-management-with-the-rsmap-complex-2012-05-25

and SoGE has an enhancement  bug open to implement them
https://arc.liv.ac.uk/trac/SGE/ticket/1426
but I don't know of any  such system for OGS.

Without such a feature you could have the job's prolog allocate a DCh (eg
via carefully manipulated lock files on a shared filesystem) and save the
identity in a file in ${TMPDIR} or manipulate the environment via the job
spool directory. When the job terminated you'd have to deallocate  the
resource in the epilog.

William



>
> _______________________________________________
> users mailing list
> [email protected]
> https://gridengine.org/mailman/listinfo/users
>
>
>
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to