From: Aris S. <ari...@gm...> - 2010-06-19 04:37:19
Hi,
Can CppCMS be load balanced using cluster mechanism to handled high
load user? What I mean here is some like horizontal scalability which
I can add new server node to increase throughput.
regards,
-Aris
>
> Can CppCMS be load balanced using cluster mechanism to
> handled high
> load user? What I mean here is some like horizontal
> scalability which
> I can add new server node to increase throughput.
>
The simplest way is to put it behind a kind of reverse proxy.
For example, lighttpd has load balancing option:
See: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFastCGI
So you transfer all requests to multiple FastCGI/SCGI backends for load-balancing.
Several points to be aware of:
- Cache - you need to work with distributed cache servers (tcp cache
backend) so all network nodes would see same cache images.
Of course cache-servers can be load balanced as well. So you
need to deploy several cache-servers and balance the load between
them (quite simple, see
http://art-blog.no-ip.info/wikipp/en/page/ref_config#cache
- Sessions - best use encrypted or signed cookies that allow
moving session storage to client side.
Or you may deploy file based session storage over NFS or use
similar same cache-servers for server side session storage
http://art-blog.no-ip.info/wikipp/en/page/ref_config#sessions
(CppCMS 1.x.x beta still has no sessions-over-tcp backend but will
be back soon)
Artyom