Re: [Twisted-Python] synchronous/asynchronous api: possible interface

2009-11-13 Thread Tom Leys
Hi Doug. I think that a decorator is a fairly nice idea, however you will probably run into the following issue: http://twistedmatrix.com/trac/ticket/2066 Once a reactor has been started and stopped, starting the reactor again will crash your program. You will need to come up with a way to get

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-07 Thread Tom Leys
Neither of the below issues will be a problem Jean-Paul Logged in users have a cookie set (I imagine). by default Varnish will not present cached results to users with a cookie, nor will it cache their results for others to see. So the 10% of hits (totally my guess) that are for authenticated u

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-07 Thread Tom Leys
Thanks for the link info. I literally just set up Varnish for the first time on my web host, so I am no pro. However, varnish uses a c like scripting language that can run regexps on the incoming urls and apply rules to them. What this means is that we can (as a starting point) choose caching

[Twisted-Python] Twisted webserver performance issues (was volunteer...)

2009-11-07 Thread Tom Leys
Isn't the simplest option to place a decent reverse proxy between the webserver and our clients? For example, varnish will cache and proxy simple GETs, so simple views of the front page and docs (which I imagine is a large chunk of the traffic) will be offloaded from the webserver: http://v

Re: [Twisted-Python] Gridspy - a new project using Twisted

2009-11-05 Thread Tom Leys
Just a quick update, since the last time I mentioned our system the dashboard was still rather rough. Since then I have added a better UI, exposed the live data more, added little JQuery graphs along with history and CSV export. All that in 1 week worth of evenings - isn't Python great? Pleas

[Twisted-Python] Gridspy - a new project using Twisted

2009-10-25 Thread Tom Leys
Hi Everyone I would like to introduce my project for the http://twistedmatrix.com/trac/wiki/ProjectsUsingTwisted page. We use twisted as the central server that talks to many power measurement sensors in the field. " Gridspy provides you with an interactive view of resource usage in your bu