Steven Harris wrote:
> Can we stop it just by keeping track of the processes and then  
> killing them? 
  Killing them is not a problem. When to kill - is. :-)
  For instance, when using tc:run I currently assume that all started 
processes will eventually complete and exit. That won't be the case for 
the web application servers.
> I'm assuming cargo doesn't have
> some sort of standard shutdown thing that each container that it  
> controls can implement.
>   
  Actually it does. That is why I am going to add tc:container-stop 
goal. See example in my first email.

  Another useful improvement could be to optionally pass list of node 
names to start/stop with tc:run or tc:container-start/stop, so we could 
have configuration in a single pom, but split actual processes across  
multiple physical nodes. For example:

  mvn -DnodeNames=master tc:run
  mvn -DnodeNames=worker1,worker2 tc:run
  mvn -DnodeNames=worker3,worker4 tc:run

  regards,
  Eugene


_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to