[Linux-ha-dev] uuid as nodeid patch
gshi at ncsa.uiuc.edu
Wed Jul 7 11:29:04 MDT 2004
At 09:36 AM 7/7/2004 +0200, you wrote:
> Guochun Shi <gshi at ncsa.uiuc.edu> said:
>> 2. Since we have node name list in ha.cf file, nodename will be used
>> to tell whether a packet comes from a bad node or not
>> 3. Backward compatibility -- heartbeat must deal with packets coming from old versions. If the destination uuid field is absent we will use nodename
>> to determine destination.
>> 4. Ping node does not have an uuid.
>> 5. uuid is stored in /var/lib/heartbeat/hb_uuid file
>- The UUID table is not persistent, so I can't sent to a node which I've
> not seen in this start cycle.
> It's completely dynamically learned, and I can't provide it with a
> pre-loaded mapping either.
Right. Currently only those in the ha.cf node list are allowed to be in the table. Later (alan suggests) we
can delete the static node list in ha.cf and have complete dynamic configuration.
>- GetUUID() is total overkill. Just closing the file descriptor is good
> enough - close() _must_ sync the file, and report any potential
> errors. The fsync() and close() at least are completely sufficient -
> the additional sync() is not needed.
Ok, I will delete the last sync() :)
>- Can you please move the changes to hb_uuid.c or something? heartbeat.c
> is crowded enough as it is.
Sounds good. I will move it.
Thanks for the feedback
More information about the Linux-HA-Dev