Le 31/12/2012 12:41, Jose Baez a écrit :
> Hi!
>
> I have been looking around and haven't seen if this scenario is possible:
>
> 1.) Server-1 with two virtual/floating IP's.
>
> 2.) Each Virtual IP is linked to a process. Process X sends/receives from
> Virtual IP-1 and Process Y sends/receives from Virtual IP-2
>
> 3.) If one process dies, HB would take its virtualIP down and tells
> Server-2 to activate that Virtual IP and start exclusively that process.
>
> If this is possible, could you tell me where I can find info/example on how
> to achieve this?
>

Of course it is possible, and it's a very common setup.
You have to create two groups:
* VIP1+PX
* VIP2+PY
If I understand correctly, when both nodes are available you want node1 
to host everything: you have to define a location constraint with a 
score of N such as 0 < N < +INF (which means: "advisory" and not mandatory).

Btw, a group is a syntaxic shortcut for collocation + ordering so it 
will achieve what you want (you just have to configure a monitor 
operation on your services).

You can find all these in Pacemaker Explained / Cluster from Scratch.

-- 
Cheers,
Florian Crouzat
_______________________________________________
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