Well, I plan to look at out-of-the-box support for:<div><br></div><div>a) simple HTTP proxy/load balancer (instead of nginx)</div><div><br></div><div>A simple runner that starts up &quot;root&quot; CorePost process and then starts up the real app on multiple local ports. Does simple load balancing between them. Not the most efficient (extra HTTP call), but simple to set up and *maybe* good enough for many apps</div>
<div><br></div><div>b) Ampoule</div><div><br></div><div>Mostly because the devs here recommended that approach. It seems a bit verbose (from the little docs I&#39;ve seen), requires custom command classes, etc.). Not sure what the impact will be on ease-of-use and the API. It looks a bit daunting in terms of coding overhead.</div>
<div><br></div><div>c) ZeroMQ (basically the Mongrel2 model)</div><div><br></div><div>Single CorePost app posting messages to ZeroMQ, single receiver on each process picking them up and distributing to the appropriate router functions. Could be very fast, but requires external dependency (ZeroMQ).</div>
<div><br></div><div>These are some of the idea I had for multicore support...any comments or suggestions for better approaches are welcome.<br><br></div><div>Jacek</div><div><br><div class="gmail_quote">2011/10/1 Jarosław Fedewicz <span dir="ltr">&lt;<a href="mailto:jaroslaw.fedewicz@gmail.com">jaroslaw.fedewicz@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
On Sep 30, 2011, at 16:08 , Jacek Furmankiewicz wrote:<br>
<br>
&gt; Once I am done with all of this I will have a serious look at AMPoule to get that out-of-the-box multi-core support.<br>
&gt;<br>
&gt; So the next release 0.0.8 should finish all the content type stuff and then for 0.0.9 should start looking at AMPoule.<br>
<br>
Can I request that looking at AMPoule doesn&#39;t result in it being a required dependency?<br>
<br>
AMPoule is just one implementation of multiprocessing + IPC, would be a pity to have to patch it heavily so that it works with other multiprocessing schemes (including homebrew ones) or with none at all.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</div></div></blockquote></div><br></div>