[ClusterLabs] Antw: Locate resource with functioning member of clone set?
Jan Pokorný
jpokorny at redhat.com
Wed Nov 23 14:49:28 UTC 2016
On 18/11/16 08:22 +0100, Ulrich Windl wrote:
>> 1) is there a way to set up a "kill script", such that before trying to
>> launch a new copy of a process, pacemaker will run this script, which would
>> be responsible for making sure that there are no other instances of the
>> process running?
>>
>> [...]
>
> I wonder: Wouldn't a monitor operation that reports the resource as
> running as long as the port is occupied resolve both issues?
What if the port is occupied by something entirely different?
Note also that on Linux at least, there's some time-to-dispose-socket
after respective process termination, so SO_REUSEADDR socket option
on the respective daemon's side is a potentional player in this game.
--
Jan (Poki)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20161123/7d016e84/attachment-0004.sig>
More information about the Users
mailing list