How to determine the number of service hosts that are used in a SOA job, and give a unique ID to each one?
lunedì 8 agosto 2011 14:17
I'm trying to convert an existing distributed infrastructure with HPC. The existing infrastructure knows (1) the total number of compute nodes that are available, and (2) gives each one a unique number, called the engine offset - from 0 for the first node, up to the number of compute nodes available.
Obviously this conflicts with the SOA HPC way of doing things, but:
- Can I get the number of service hosts that will be used? We could then restrict the job from getting any more resources allocated and use this as our "total" number from item 1.
- Can I give each service host an ID? A service host correlates to a task within a job, could I use the task id or some other method? The only other option I could think of, would be to use the common data framework from SP2 to read and write to a shared text file to co-ordinate the ID's that are used.
Tutte le risposte
martedì 9 agosto 2011 03:30
you can read the environment variable of CCP_TASKINSTANCEID, it's unique in a job.
- Contrassegnato come risposta krolley martedì 9 agosto 2011 14:34
martedì 9 agosto 2011 03:30and if you want limit the resource, set the resource usage field in SessionStartInfo before you create session.