What's the difference between a proxy resource and using dependencies
What's the difference between a proxy resource and using dependencies? As an example, if I want 2 applications to share the same Virtual-IP, which option is better :-
1)put the Virtual-Ip in its own group and then use dependencies from the 2 application service groups
2)Or add a proxy resource in the 2 application service groups to the Virtual-Ip resource?
In general what's the best practice for sharing infrastructure resources like NIC/Virtual-IP/Mount/Voume?. I am still reading up, but can a basic resource like Virtual-IP or MOUNT be part of 2 service groups if both groups require the same?
Thanks,
Annu
Generally for OnOff resources you use dependencies and for resources with "None" operations you use Proxy - let me explain further.
An IP has "OnOff" operations - you online it and offline it and a NIC has "None" operations - you don't online or offline it, but it it required to be there for your application to work, so VCS just monitors it. A proxy just copies state of resource it is proxying - it does NOT offline or online the resource it is proxing so it is suitable for NIC, but not IP.
Also if 2 applications share the same IP, then it is better to put the resources all into one service group and use resource dependencies to make both applications depend on the IP as both applications will move as one unit from one server to another as they cannot co-exist on different servers if there share the same IP.
Mike