Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Mike Orr
On Fri, May 30, 2008 at 12:35 PM, Cliff Wells <[EMAIL PROTECTED]> wrote: > > > On Fri, 2008-05-30 at 11:19 -0700, Shannon -jj Behrens wrote: > >> * There were a couple good points made above about whether to run one >> or multiple copies of Paster. It's true that this is one place where >> Pylons

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Cliff Wells
On Fri, 2008-05-30 at 11:19 -0700, Shannon -jj Behrens wrote: > * There were a couple good points made above about whether to run one > or multiple copies of Paster. It's true that this is one place where > Pylons/Python is very different from Rails/Ruby, as mentioned above. > If you're mostly

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Jonathan Vanasco
On May 30, 2:19 pm, "Shannon -jj Behrens" <[EMAIL PROTECTED]> wrote: > * ab is a bit simple minded to begin with.  I've told it to use 100 > concurrent requests (which I saw that you didn't do), and it saw all > sorts of failed connections.  Of course, getting 100 *concurrent* > requests isn't al

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Ben Bangert
On May 30, 2008, at 11:19 AM, Shannon -jj Behrens wrote: * Socket connections have a setting for how many requests are allowed to wait in the queue before being accepted. I don't know what the setting for Paster is or how to change it. I do know that I've used ab before, and it hit this limit.

Re: How did you begin your fun with Pylons?

2008-05-30 Thread Alberto Valverde
Shannon -jj Behrens wrote: > I'm not making any judgments about anyone. However, I did see a great > talk yesterday called "How Open Source Projects Survive Poisonous > People": http://youtube.com/watch?v=ZSFDm3UYkeE > > It's definitely worth watching ;) > Nah, I don't think there has been any

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Shannon -jj Behrens
On Fri, May 30, 2008 at 5:12 AM, Alex Marandon <[EMAIL PROTECTED]> wrote: > > 2008/5/30 Graham Dumpleton <[EMAIL PROTECTED]>: >>> class FooController(BaseController): >>> >>> def bla(self): >>> return 'Hello World! %s' % time.time() >>> >>> def slow_bla(self): >>> time.slee

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Shannon -jj Behrens
On Fri, May 30, 2008 at 12:49 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > On May 30, 12:56 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: >> On Thu, May 29, 2008 at 4:30 PM, Graham Dumpleton >> >> >> >> <[EMAIL PROTECTED]> wrote: >> >> > On May 29, 7:29 pm, "Alex Marandon" <[EMAIL PROTECTED]> w

Re: Calling a WSGI application from an action

2008-05-30 Thread Ian Bicking
Alex Marandon wrote: > Hello, > > I'm trying to integrate FCKeditor's file management and upload > features into a Pylons app. FCKeditor ships with a WSGI application to > handle the server side of these features. That's cool, that's one of the first cases I've heard of a Javascript product sh

Re: How did you begin your fun with Pylons?

2008-05-30 Thread Shannon -jj Behrens
I'm not making any judgments about anyone. However, I did see a great talk yesterday called "How Open Source Projects Survive Poisonous People": http://youtube.com/watch?v=ZSFDm3UYkeE It's definitely worth watching ;) -jj On Thu, May 29, 2008 at 9:33 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wr

Calling a WSGI application from an action

2008-05-30 Thread Alex Marandon
Hello, I'm trying to integrate FCKeditor's file management and upload features into a Pylons app. FCKeditor ships with a WSGI application to handle the server side of these features. I tried to run that application under mod_wsgi and it works fine. Now I'd like to integrate that within my Pylons

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Alex Marandon
2008/5/30 Graham Dumpleton <[EMAIL PROTECTED]>: >> class FooController(BaseController): >> >> def bla(self): >> return 'Hello World! %s' % time.time() >> >> def slow_bla(self): >> time.sleep(10) >> return 'Hello slow World!' >> >> With something like that, manual te

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Jonathan Vanasco
going off topic for a bit... i just realized that a bottleneck on one of systems was from a typo -- I was setting a DB rollback on the wrong database handle ( read instead of config ). that caused an series of 'In Transaction' database blocks that would not seem to cause any issue... until i hi

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Jonathan Vanasco
On May 29, 10:56 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: > That's akin to the user pressing the Stop button in the browser.  I > get a "connection reset" line for that in my Quixote apps but not in > my Pylons app.  I assumed Pylons just ignored the exceptions because > it's not really an error

Re: Decorator problem

2008-05-30 Thread Dunk Fordyce
On Fri, May 30, 2008 at 9:59 AM, Karlo Lozovina <[EMAIL PROTECTED]> wrote: > > Here is the problematic code, decoraor first (it doesn't do very > much :>): > > def debugprint(f): >def new(*args): >return f(*args) >return new > > And the controller: > > @debugprint > def testing(sel

Decorator problem

2008-05-30 Thread Karlo Lozovina
Here is the problematic code, decoraor first (it doesn't do very much :>): def debugprint(f): def new(*args): return f(*args) return new And the controller: @debugprint def testing(self, xx): return "Testing-testing" Route that connects the URL with the controller looks lik

Re: advice with configuration/scaling a live Pylons app.

2008-05-30 Thread Graham Dumpleton
On May 30, 12:56 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote: > On Thu, May 29, 2008 at 4:30 PM, Graham Dumpleton > > > > <[EMAIL PROTECTED]> wrote: > > > On May 29, 7:29 pm, "Alex Marandon" <[EMAIL PROTECTED]> wrote: > >> 2008/5/29 Alex Marandon <[EMAIL PROTECTED]>: > > >> > 2008/5/28 SamDonaldson <