<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Take a look at:<div><br><div><a href="http://www.trapexit.org/Building_a_Non-blocking_TCP_server_using_OTP_principles">http://www.trapexit.org/Building_a_Non-blocking_TCP_server_using_OTP_principles</a></div><div><br></div><div><a href="http://www.trapexit.org/Building_a_Non-blocking_TCP_server_using_OTP_principles"></a>While it isn't specifically addressing your issue, the article does show how to nest supervisors. They do throw a few bits of functionality that could be put into separate modules into one, but it shouldn't be that hard to figure out at all.</div><div><br></div><div>-Chris Hicks<br><br><hr id="stopSpelling">Date: Tue, 29 Mar 2011 23:20:54 -0400<br>From: wilsoncj1@gmail.com<br>To: erlang-questions@erlang.org<br>Subject: [erlang-questions] Nested Supervisors<br><br>I'm looking for some examples on starting more than one level of supervisors in a supervision tree. ÁAlmost everything I've seen has been one supervisor and many workers and I've not seen any documentation or examples on how I might start multiple supervisors within one supervision tree.<div>
<br></div><div>I'm trying to build a structure similar to what is below, a simple monitoring application to track events in a typical network environment within a given site. ÁA site level supervisor handles N number of L3 networks and their workers and spawns N number of supervisors for VLANs in a given MST instance. ÁThis example is slightly contrived in that I "could" flatten this structure out, but I'm looking to do other things with those vlan workers and may go another level deeper. Á</div>
<div><br></div><div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Ávlan_monitor_worker</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á /</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á vlan801_sup</div><div>ÁÁ Á Á Á Á Á Á Á Á Á /</div><div>ÁÁ Á Á Á Ánet1_sup</div>
<div>ÁÁ Á Á Á / Á Á Á Á Á \</div><div>ÁÁ Á Á Á/ Á Á Á Á Á Á \</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á net1_mon_worker</div><div>ÁSite_supÁ</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á net2_mon_worker</div><div>ÁÁ Á Á Á\ Á Á Á Á Á ÁÁ/</div><div>
ÁÁ Á Á Á \ Á Á Á Á Á /</div><div>ÁÁ Á Á Á Ánet2_sup</div><div>ÁÁ Á Á Á Á Á Á Á Á Á \</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Ávlan802_sup</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á \</div><div>ÁÁ Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Á Ávlan_monitor_worker</div>
</div><div><br></div><div>Thanks in advance for any guidance.</div><div><br></div><div>-Chris</div>
<br>_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions</div></div>                                       </body>
</html>