[aida] Scaling an Aida/Web site?

nico petton.nicolas at gmail.com
Thu Oct 16 13:15:24 CEST 2008


I did some experiements some weeks ago to see how Scribo can scale with
a Magma repository.

The cool thing with Magma is that your objects work like if they were in
your image.

I put the Scribo repository, the UrlResolver, WebSecurityManager and
WebIndex in a Magma repository.

This repository was shared between 5 Squeak VMs.

I used Apache for load balancing, and I wrote a small bash script to
make sure that user sessions are always in the same vm, with a cookie.

So, when a request came, the script checked for this cookie, and if it
find it, redirect to the right VM. If not, use the load balancing, and
then AIDA started a session, with a cookie for the next request.

I can say that it worked great!

According to httperf, this setup can handle 150 requests per second :)

The script and Apache configuration was adapted from this one by Ramon
Leon for Seaside:



Nicolas Petton
           \   /
Ma clé PGP est disponible ici :
-------------- section suivante --------------
Une pi�ce jointe non texte a �t� nettoy�e...
Nom: non disponible
Type: application/pgp-signature
Taille: 197 octets
Desc: Ceci est une partie de message
 =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20081016/520485bb/attachment.sig 

More information about the Aida mailing list