[erlang-questions] 500k user simulation on EC2

Joel Reymont joelr1@REDACTED
Thu Aug 13 21:52:12 CEST 2009


On Aug 13, 2009, at 8:13 PM, Vance Shipley wrote:

> The supervisor behavious doesn't really support distribution directly.
> There is a thread which starts here where we explored that a few years
> ago: http://erlang.org/pipermail/erlang-questions/2004-June/ 
> 012534.html

What's wrong with having the ad-hoc supervisor spawn something on the  
remote node, e.g.

init([]) ->
     {ok,
      {_SupFlags = {simple_one_for_one, 1, ?MAX_TIME},
       [
        {undefined,
         {proc_lib, spawn, []},
         temporary,
         2000,
         worker,
         []
        }
       ]
      }
     }.

Wouldn't this be added to the local supervision tree?

	Thanks, Joel

---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont



More information about the erlang-questions mailing list