[Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Sumanth Puram
Hi all, I am doing load testing on my twisted SSL server. I spawn threads(~2000) from the application and each thread will act as a SSL client and connect to the server. Client code is straight forward. It creates a socket, does SSL wrap and connects to the server. Once all threads connect to the

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-13 Thread Sumanth Puram
Yes, 1010 looks more like a 1024 limit. I am using a Mac OSX 10.8. I have set the limit with 'ulimit -n 1' for the current shell where I was running the server and the same for client. I have tried to increase the limit for number of files, but could not find any other way than this. sumanth

Re: [Twisted-Python] Maximum number of SSL connections to the server

2014-01-14 Thread Sumanth Puram
Thanks Jean. Changing reactor kQueue on OSX fixed this issue. On Mon, Jan 13, 2014 at 7:49 PM, wrote: > On 01:28 pm, spu...@kiwiup.com wrote: > >> Hi all, >> >> I am doing load testing on my twisted SSL server. I spawn threads(~2000) >> from the application and each thread will act as a SSL cl

[Twisted-Python] Better usage of Twisted on multi core processor

2014-01-20 Thread Sumanth Puram
Hi all, I have a twisted TCP server to listens to client, processes requests, do mysql database operations if needed (using adbapi Connection pool) and return the result. Before deploying this in production, I want to know right way to configure the server. Since twisted is single threaded, how c

Re: [Twisted-Python] Better usage of Twisted on multi core processor

2014-01-21 Thread Sumanth Puram
Nice. Thanks for the info. On Jan 20, 2014 8:02 PM, "Laurens Van Houtven" <_...@lvh.io> wrote: > Hi Sumanth, > > > The first answer by JP Calderone (exarkun) on the following stackoverflow > question may be of some assistance. > > > http://stackoverflow.com/questions/10077745/twistedweb-on-multico