On Mon, Jul 07, 2008 at 04:18:48PM +0200, Ehlers, Kolja wrote:
>> I am running Apache and one virtual ip adress in one group now
>> and 9 tomcat instances ungrouped. I want heartbeat to start and
>> monitor the apache/ip group on only one node and all tomcats on
>> both nodes. So if apache or the ip fails merge the ip and apache
>> to the other node, the tomcats are already started there.
>
> what I probably could do to have my 9 tomcat instances on both
> nodes is create another 9 resources. Then apply to the first ones
> a rule to only run on node1 and to the other to stay on node2. Is
> this the proper way to do this?
> 
> For explanation: I will be using the apache_jk to balance the load
> to the different tomcat workers and this will only work if all
> tomcats run on both nodes.

It may work, I haven't tried an active/active setup and looking at the
example I'm not entirely sure why it lets you specify two primitives
with the same id ("apache"). I suppose it must be because they're in
different groups?

Anyway, you might want to read about clones:

  http://www.linux-ha.org/v2/Concepts/Clones

I'm not sure how you provide different configuration information to
each clone. My best guess is you'd keep your existing tomcat resource
definitions, but have heartbeat run two clones of each one (limiting
each node to run a single clone of each resource).

It sounds like the tomcat OCF script is pretty functional, so this
should actually be pretty easy. Since you don't seem to want to make
use of the state of the tomcat resources in any way, this is probably
all you need to do to get exactly what you want.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to