[Seaside] deployment question

Sven Van Caekenberghe sven at stfx.eu
Thu Apr 4 16:49:22 UTC 2013


Hi Stefan,

On 04 Apr 2013, at 17:28, Stefan Krecher <stefan.krecher at googlemail.com> wrote:

> Hi,
> i have two web-apps based on seaside. Both of them are currently
> running on an amazon ec2 micro-instance (windows).
> There are two pharo-instances running, listening on different ports
> (non-reduced images, gui is running). Both images are behind apache
> 2.2 (using virtual hosts and mod_proxy).
> Persistence is image-based, using serialization as seen here:
> http://onsmalltalk.com/simple-image-based-persistence-in-squeak
> The number of users is very limited at the time und won't exceed 20 in
> the next months. The number of domain-objects is very limited too.
> Is pharo (currently 1.4) the right-choice?
> Why/ when should i switch to Linux as server?
> What would be a good argument to migrate to GLASS?
> regards,
> Stefan 

For a light load (in terms of number of requests per second) you'll be good for a while. Don't optimize unless you need it.

For Seaside, step one would be to move all static assets off the image and to apache. The next step is load balancing over a couple of Smalltalk images (with sticky sessions aka session affinity). Larger or multiple ec2 instances comes next. 

Beware though: ec2 micro instances are CPU throttled, after 1 or 2 minutes of 100% cpu they become extremely slow. In practice this won't matter too much, you just should be aware of it.

HTH,

Sven

--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill



More information about the seaside mailing list