Answered by:
HPCServiceHosts > CPUs

Question
-
Hi.
I'd like to know how to configure the computer nodes
to run the HPCServiceHosts more than its CPUs.
For example, setting of "4 service hosts in 2 CPU machine"
is possible?
Thanks in advance,
Hiro
Wednesday, September 3, 2008 8:11 AM
Answers
-
Hi Yiding,
Thank you for giving me sample configuration, and
that was it.
<serviceThrottling maxConcurrentCalls="_your_number_here_" />
Besides that, I set "ConcurrencyMode" attribute in service
side code to be "Multiple".
With these settings, I could make it.
Many thanks,
hiro
- Marked as answer by Piroki Tuesday, September 16, 2008 12:34 AM
Tuesday, September 16, 2008 12:34 AM
All replies
-
Hi,
I'm not sure what do you mean by CPU. It's confusing to everybody nowadays.
If you mean socket or node by CPU, than just set job scheduling unit to Core. So if you compute node has 2 sockets but 4 cores, there will be 4 service host running on the node.
If you mean core by CPU, then there is nothing you can do to run 4 service hosts on 2 cores. That said, you can update service config file to force multiple call number on service host, and thus processing 4 requests on 2 service host instances.
Assuming you are running compute intensive tasks, can you let me know why you need 4 service hosts on 2 cores?
YidingFriday, September 5, 2008 4:58 AM -
Hi Yiding,
Thank you for your reply.
> If you mean core by CPU, then there is nothing you can do to run 4 service hosts on 2 cores.
I see.
> That said, you can update service config file to force multiple call number on service host,
> and thus processing 4 requests on 2 service host instances.
I'd like to try "force multiple call number on service host", so
could you show me an example service config file, please?
> Assuming you are running compute intensive tasks, can you let me know why you need 4 service hosts on 2 cores?
Just for setting up learning environment. Not for production purpose.
Thanks,
hiro
Friday, September 5, 2008 12:05 PM -
Hi,
What you need to modify is serviceThrottling behavior. Refer to this article - http://msdn.microsoft.com/en-us/library/ms731379.aspx
In short, add "<serviceThrottling maxConcurrentCalls="_your_number_here_" />" to *all* of your <service>.dll.config - behavior\servicebehaviors section. The number of concurrent call will be the sum of maxConcurrentCalls. E.g., if you set the number to 16, and you launch 4 HPCServiceHost, 64 requests will be processed simultaneously.
Hope it helps.
YidingMonday, September 8, 2008 10:54 AM -
Hi Yiding,
Thank you for giving me sample configuration, and
that was it.
<serviceThrottling maxConcurrentCalls="_your_number_here_" />
Besides that, I set "ConcurrencyMode" attribute in service
side code to be "Multiple".
With these settings, I could make it.
Many thanks,
hiro
- Marked as answer by Piroki Tuesday, September 16, 2008 12:34 AM
Tuesday, September 16, 2008 12:34 AM