I've been testing TG deployed with lighttpd and I found some problems.

The SCGI "bridges" tested were:
paste-swap (http://www.cherrypy.org/wiki/ScgiWsgi)
flup-threading and flup-forking
(http://cleverdevil.org/computing/34/deploying-turbogears-with-lighttpd-and-scgi)

I found some problems while benchmarking with ApacheBench:
ab -c 1 -n 1000 http://localhost/login works perfectly on paste and
flup-threading and flup-forking.
But:
ab -c 5 -n 1000 http://localhost/login breaks paste-swap and
flup-forking, I get a range from 200 to 500 requests failed.
flup-threading works perfectly.

The traceback logged is:
2006-05-23 18:10:26,372 turbogears.visit DEBUG Sending visit ID cookie:
Set-Cookie: git-extranet=988d58e65f3fe7d1ec8dcbd9ff12dc8231c5320a;
Path=/;
2006-05-23 18:10:26,373 turbogears.identity DEBUG Retrieving identity
for visit: 988d58e65f3fe7d1ec8dcbd9ff12dc8231c5320a
2006-05-23 18:10:26,373 turbogears.identity INFO Identity is
available...
 2/QueryOne:  SELECT id, visit_key, user_id FROM tg_visit_identity
WHERE visit_key = '782469384bbc2bab5b9e2827b4f06828c159122b'
 2/ROLLBACK:
2006-05-23 18:10:26,376 cherrypy.msg INFO : Page handler: "Commands out
of sync;  You can't run this command now"
Traceback (most recent call last):
  File
"/usr/local/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py",
line 145, in applyFilters
    method()
  File
"/usr/local/lib/python2.4/site-packages/turbogears-1.1a0-py2.4.egg/turbogears/database.py",
line 284, in on_end_resource
    end_all()
  File
"/usr/local/lib/python2.4/site-packages/turbogears-1.1a0-py2.4.egg/turbogears/database.py",
line 215, in end_all
    hub.end()
  File
"/usr/local/lib/python2.4/site-packages/turbogears-1.1a0-py2.4.egg/turbogears/database.py",
line 130, in end
    conn.rollback()
  File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1788-py2.4.egg/sqlobject/dbconnection.py",
line 802, in rollback
    self._connection.rollback()
ProgrammingError: 2014

My tg-admin info:
TurboGears Complete Version Information

TurboGears requires:

* turbogears 1.1a0
* nose 0.9.0a2
* configobj 4.3.1
* RuleDispatch 0.5a0.dev-r2115
* setuptools 0.6b1
* FormEncode 0.5.1
* cElementTree 1.0.5-20051216
* PasteScript 0.5.1
* elementtree 1.2.6
* simplejson 1.3
* SQLObject 0.7.1dev-r1788
* CherryPy 2.2.1
* TurboKid 0.9.5
* TurboCheetah 0.9.5
* TurboJson 0.9.2
* PyProtocols 1.0a0
* Cheetah 1.0
* PasteDeploy 0.5
* Paste 0.5
* FormEncode 0.5.1
* kid 0.9.1
* Cheetah 1.0
* elementtree 1.2.6

Identity Providers

* sqlobject (turbogears 1.1a0)
* sqlalchemy (turbogears 1.1a0)

tg-admin Commands

* info (turbogears 1.1a0)
* shell (turbogears 1.1a0)
* quickstart (turbogears 1.1a0)
* update (turbogears 1.1a0)
* sql (turbogears 1.1a0)
* i18n (turbogears 1.1a0)
* toolbox (turbogears 1.1a0)
* migrate (Migration 0.1a0)

Visit Managers

* sqlobject (turbogears 1.1a0)
* sqlalchemy (turbogears 1.1a0)

Template Engines

* cheetah (TurboCheetah 0.9.5)
* json (TurboJson 0.9.2)
* kid (TurboKid 0.9.5)

Widget Packages


TurboGears Extensions

* visit (turbogears 1.1a0)
* identity (turbogears 1.1a0)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to