[opencms-dev] Load balancing

Jordi Martí jmarti at theinit.com
Thu Mar 20 12:22:06 CET 2008


Alkacon has an OCEE module just for that. But of course, it is not open
source. ;-))

I've used OpenCMS the way you say, but having to sacrifice / implement in
other way some functionalities as:
	- Indexes: indexes are built in filesystem. If one instance indexes
a file, the other one won't do it, or that's what experience tells me. You
should manually reindex in both machines through a external process.
	- FlexCache: if publishing happens in one machine, the other one
will not know that a page has been published, and cache won't be
invalidated. That's why I generally use a timeout based cache (cache
property => "timeout=10").
	- Config files: for example, if you import a module in one machine,
the other file "opencms-modules.xml" in the other machine won't be modified.
You could rsync both files or mount that directory or something like that. 

There's no problem with filesystem created JSP and images, because if one
instance doesn't have it, it creates in on the fly, so there's no problem.

I don't remember any more, but I guess there will be. It depends on what
functionalities you use or want to use.

I would be glad to hear from others what troubles they have and how they
solve it.

  
 
JORDI MARTÍ 
Email: jmarti AT theinit _dot_ com
Skype ID: jmarti.theinit


 
 
 
 
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de Yves Glodt
Enviado el: jueves, 20 de marzo de 2008 11:31
Para: The OpenCms mailing list
Asunto: [opencms-dev] Load balancing

Hello,

in my setup I have a hardware loadbalancer/failover device, which will
balance 
requests to two physical servers running opencms.

These 2 servers are 1:1 copies of each other, and they connect both to the 
*same* database (which provides failover through DRBD)

I guess this is not a problem, to have 2 or more opencms-instances from 
different servers connecting to the same database, or is it ??? :-)

I would like to request come comments about this kind of setup... What other

ways are good for providing balancing and failover

Regards,
Yves

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list