[opencms-dev] Load balancing
Yves Glodt
yg at mind.lu
Tue Mar 25 19:17:29 CET 2008
On Sunday 23 March 2008, Andy Thompson wrote:
> if you can afford a hardware loadbalancer - can afford ocee.
Hello Andy and List,
I can unfortunately not get more budget right now, and I need a working
solution very fast, so ocee is not an option right now, but it might be
soon.
How can I (manually, by system-cron e.g.) flush the cache of a running
opencms instance?
jsp-repositories I guess can be deleted once in a while to make sure
they are recreated from the database with the lastest data
Thanks for your input,
Yves
> we've been running our site much as jordi described. personal
> opinion was that it took as much time (read cost) to hack around
> synchronizing jsp repositories / flushing cache etc... as it would
> have taken to just buy ocee. and i'm not happy with my hacking.
>
> /shrug. had to do what we did to meet deadlines...
>
> -andy
>
> On Sat, Mar 22, 2008 at 6:20 AM, Yves Glodt <yg at mind.lu> wrote:
> > On Thursday 20 March 2008, Jordi Martí wrote:
> > > 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").
> >
> > where can this property be set?
> >
> > thanks for your detailed information!
> > Yves
> >
> > > - 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
> > >
> > >
> > > _______________________________________________
> > > 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
> >
> > --
> > Linux 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 2008 i686
> > 11:19:34 up 35 min, 1 user, load average: 0.40, 0.41, 0.36
> >
> > _______________________________________________
> > 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
--
Linux 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 2008 i686
19:13:44 up 1:52, 1 user, load average: 0.57, 0.42, 0.25
More information about the opencms-dev
mailing list