[Twisted-Python] Multi-reactor architecture
vitaly at synapticvision.com
vitaly at synapticvision.com
Thu Nov 12 11:23:30 MST 2009
How reverse proxy knows to balance between couple of twistd processes?
Do you have may be an example(or doc link) of such proxy that can
distributing connections to each twistd process?
Quoting "Reza Lotun" <rlotun at gmail.com>:
>> hi,
>> what would be the right thing to start from in order to build
>> multi-reactor arch to handle thousands of concurrent connections?
>
> Why would you want multiple reactors? The only reason would be to have
> one per CPU core. For that the simplest thing would be to manually
> start n twistd processes, one per core and have a reverse proxy
> process listening on a port and distributing connections to each
> twistd process. Of course, you can extend this architecture to
> multiple machines.
>
> Cheers,
> Reza
>
> --
> Reza Lotun
> mobile: +44 (0)7521 310 763
> email: rlotun at gmail.com
> work: reza at tweetdeck.com
> twitter: @rlotun
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
More information about the Twisted-Python
mailing list