<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Hi,</div><div><br></div><div>I have added the detailed use case..</div><div><br></div><div>I did not follow what were you trying to do here. <font style="background-color:rgb(255,0,0)">Can you be more specific?</font><br><span><br></span><div>Suppose I have an application which accepts some request from client and do the MPI job on request arrival(lazy load of mpi lib). Now I started this application through mpiexec on 4 machines. <strong>mpiexec will start my application on 4 machines not MPI jobs</strong>. On request arrival I will distribute MPI jobs to this cluster after doing some processing in my application on master node.(1 of out of 4 I will designate as master node).  Now I want to add one more machine( having my application) to this cluster, without stopping my already running applications. My master process should be able to see this 5th machine and distribute the task. Is there any way to achieve this?</div><span class="gmail-im"><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>> Also, When I took the size(number of instance for that comm), I am not getting the count for client instance. To distribute the task, I need to have additional logic to handle this case in my application.<br><br></span><font style="background-color:rgb(255,0,0)">Can you be more specific about which comm you were referring to?<br></font><span><br></span></blockquote></span><div>I am referring to MPI_COMM_WORLD. Is there any resize kind of api which will give me how many jobs are there on this comm after doing one accept connection?</div><div><br></div><div>Hope this helps in understanding the problem.</div><div><br></div><div>Regards</div><div>Sanjeev </div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 29, 2017 at 8:48 AM, sanjeev s <span dir="ltr"><<a href="mailto:snjv.workmail@gmail.com" target="_blank">snjv.workmail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>Thanks for the reply. I have given the detailed use case below. </div><div><br></div><div>Regards</div><div>Sanjeev</div><div><br></div><div> <br></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sat, May 27, 2017 at 2:30 AM, Guo, Yanfei <span dir="ltr"><<a href="mailto:yguo@anl.gov" target="_blank">yguo@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Hi Sanjeev,<br>
<br>
Please see the inline comments below.<br>
<br>
Yanfei Guo<br>
Postdoctoral Researcher<br>
MCS Division, ANL<br>
<span><br>
<br>
On 5/26/17, 10:40 AM, "sanjeev s" <<a href="mailto:snjv.workmail@gmail.com" target="_blank">snjv.workmail@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
<br>
<br>
> In dynamic process, I read about two models: Client server and parent child.<br>
<br>
<br>
> Client Server : We need to have dedicated threads each for client and server. Now considering all instances same , we will end up doing lot of thread creation apart from our application worker threads.<br>
<br>
</span><font style="background-color:rgb(255,0,0)">I assume you are referring to the connect/accept model by client/server</font>. In that case, you may need one thread on the server side to handle the incoming connection because the `MPI_Comm_accept` call is blocking. A dedicated thread is not necessary in the client. <font style="background-color:rgb(255,0,0)">It is your application’s job to decide who is the server</font>.<br>
<span><br></span></blockquote><div><br></div></span><div>Yes I am referring to same connect/accept model. I don't want to put this logic in our application. I want some external process manager ( like Hydra) which can handle this form me .Please see below for detail use case.</div><span><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>> Moreover when 1 instance (app) goes down, we want<br>
 that instance to come up without doing much manual work. We don't want to club this logic in our application.<br>
<br>
</span>I did not follow what were you trying to do here. <font style="background-color:rgb(255,0,0)">Can you be more specific?</font><br>
<span><br></span></blockquote></span><div>Suppose I have an application which accepts some request from client and do the MPI job on request arrival(lazy load of mpi lib). Now I started this application through mpiexec on 4 machines. <strong>mpiexec will start my application on 4 machines not MPI jobs</strong>. On request arrival I will distribute MPI jobs to this cluster after doing some processing in my application on master node.(1 of out of 4 I will designate as master node).  Now I want to add one more machine( having my application) to this cluster, without stopping my already running applications. My master process should be able to see this 5th machine and distribute the task. Is there any way to achieve this?</div><span><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>
> Also, When I took the size(number of instance for that comm), I am not getting the count for client instance. To distribute the task, I need to have additional logic to handle this case in my application.<br>
<br>
</span><font style="background-color:rgb(255,0,0)">Can you be more specific about which comm you were referring to?<br>
</font><span><br></span></blockquote></span><div>I am referring to MPI_COMM_WORLD. Is there any resize kind of api which will give me how many jobs are there on this comm after doing one accept connection?</div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>
> 2) Parent child: Suppose we have started 4 instance on 4 different machines. Now we need to add another server. I don't think parent child/ client server is good option in this case.<br>
<br>
<br>
> We don't want to build process management capabilities in our application. We are looking for process management in MPI itself (e.g in Hydra )so that we can leverage on that.<br>
<br>
<br>
> Please correct me if I am missing something in my understanding of Dynamic model.<br>
<br>
<br>
Regards<br>
Sanjeev Sinha<br>
<br>
<br>
<br>
<br>
<br>
On Fri, May 26, 2017 at 8:46 PM, Halim Amer<br>
<<a href="mailto:aamer@anl.gov" target="_blank">aamer@anl.gov</a>> wrote:<br>
<br>
Sanjeev,<br>
<br>
> More precisely my requirement is suppose I started 4 instances of my<br>
> application. Now I want to add one more instance dynamically to this set<br>
<br>