Re: [Twisted-Python] Need help for structured application development

2010-02-21 Thread Einar S . Idsø
On Fri, Feb 19, 2010 at 5:45 AM, Johann Borck wrote: > I see. So if I get these requirements right you have 5-10 services with > 1-30 instances of each, with following properties relevant to the task > at hand: > > 1. those pollable by your existing program. > 2. those incompatible with your exist

Re: [Twisted-Python] fast high load protocol

2010-02-21 Thread Vlad Shevchenko
Thanks a lot, Stephen. AMP probably is what I looking for. Now I can handle a much more clients (2 times more without significantly increasing response time). Server can also handle 3 times more clients without any errors, but response time grow up. I check for netstat and find out Recv-Q about 17

Re: [Twisted-Python] fast high load protocol

2010-02-21 Thread Johann Borck
Vlad Shevchenko wrote: > Thanks a lot, Stephen. > > AMP probably is what I looking for. Now I can handle a much more > clients (2 times more without significantly increasing response time). > Server can also handle 3 times more clients without any errors, but > response time grow up. I check for ne

Re: [Twisted-Python] fast high load protocol

2010-02-21 Thread Vlad Shevchenko
Hi, Johann Few words about load script: each "client" is a thread, which wait from 7 to 15 seconds and then make request to nginx, nginx proxy requests to api-server. On every request api-server makes 3 callRemote to memory-db. Delay between creating clients - 0.1 sec. Currently I use 1 amp-conne

[Twisted-Python] multiprocessing capability?

2010-02-21 Thread Darren Govoni
Hi, I looked at the source for the threads module and wondered if the current Twisted supports Python's (2.6) multiprocessing threading? If not, is there a stable package somewhere that patches Twisted to support this? I saw one from last summer but not sure if its stable. Thanks! Darren ___

Re: [Twisted-Python] multiprocessing capability?

2010-02-21 Thread Drew Smathers
On Sun, Feb 21, 2010 at 1:43 PM, Darren Govoni wrote: > Hi, > I looked at the source for the threads module and wondered if the current > Twisted supports Python's (2.6) multiprocessing threading? > If not, is there a stable package somewhere that patches Twisted to support > this? I saw one f

Re: [Twisted-Python] Nevow question

2010-02-21 Thread Sury Soni
> -Original Message- > From: twisted-python-boun...@twistedmatrix.com > [mailto:twisted-python-boun...@twistedmatrix.com] On Behalf Of Marco Giusti > Sent: Friday, 19 February 2010 10:12 PM > To: Twisted general discussion > Subject: Re: [Twisted-Python] Nevow question > > On Fri, Feb 1

Re: [Twisted-Python] multiprocessing capability?

2010-02-21 Thread Alexandre Quessy
Hello everyone, I have done something similar to this, but I used the children IO stream to control them. Maybe I should have done that using some higher level protocol, such as AMP or PB. (I think AMP is more robust than PB, though) The project that uses the children IO and process protocols is Lu

Re: [Twisted-Python] Many connections and TIME_WAIT

2010-02-21 Thread Donal McMullan
I've been meaning to update this for a while - it turned out to be caused by a bug in my code. X-o Sorry guys - & thanks for helping me work it out. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailma

[Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Jonathan Lange
Live from PyCon Atlanta, I'm pleased to herald the approaching footsteps of the 10.0 release. Tarballs for the first Twisted 10.0.0 pre-release are now available at: http://people.canonical.com/~jml/Twisted/ This release is the first release ever with the new NEWS building system, which turns o

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Jeff Bauer
I'm not opposed to Jinja2 as a templating engine, though Django would need to be the default: http://jinja.pocoo.org/2/ Jeff Bauer Rubicon, Inc. 615.297.3511 615.301.6533 fax On 02/21/2010 08:50 PM, Jonathan Lange wrote: > Live from PyCon Atlanta, I'm pleased to herald the approaching > footstep

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Glyph Lefkowitz
Hi Jeff, On Feb 21, 2010, at 9:57 PM, Jeff Bauer wrote: > I'm not opposed to Jinja2 as a templating engine, though > Django would need to be the default: This reply appears to have nothing to do with the release announcement. Wrong list, maybe? > http://jinja.pocoo.org/2/ > > Jeff Bauer > Ru

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Jeff Bauer
Sorry, wrong list (slippery fingers). Congrats on 10.0, BTW! Jeff Bauer Rubicon, Inc. ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Glyph Lefkowitz
On Feb 21, 2010, at 9:50 PM, Jonathan Lange wrote: > Live from PyCon Atlanta, I'm pleased to herald the approaching > footsteps of the 10.0 release. Woo! > Tarballs for the first Twisted 10.0.0 pre-release are now available at: > http://people.canonical.com/~jml/Twisted/ WOO! > This release

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Jonathan Lange
On Sun, Feb 21, 2010 at 10:15 PM, Glyph Lefkowitz wrote: > On Feb 21, 2010, at 9:50 PM, Jonathan Lange wrote: > ... >> Please feel free to update it with questions, thoughts, corrections and >> advice. > > Can you make "a public website" a bit more specific?  What kind of public > website?  (I r

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Darren Govoni
Hi, This is great! Is there a list of new features or improvements for this release? I'd like to start planning my update. Darren On Sun, 2010-02-21 at 21:50 -0500, Jonathan Lange wrote: > Live from PyCon Atlanta, I'm pleased to herald the approaching > footsteps of the 10.0 release. > > Tar

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-21 Thread Jonathan Lange
On Sun, Feb 21, 2010 at 10:57 PM, Darren Govoni wrote: > Hi, >   This is great! > > Is there a list of new features or improvements for this release? I'd like > to start planning my update. > Each of the tarballs has a NEWS file. jml ___ Twisted-Pytho

[Twisted-Python] Try/catching yielded Exceptions and getting proper tracebacks

2010-02-21 Thread Paul Goins
I'm frequently using the inlineCallbacks idiom for writing code, but am often finding myself frustrated with rather counterintuitive tracebacks. Let's say I'm writing an XML-RPC handler, and even if an exception occurs, I want it to return something to the user and dump the exception to the log fi