[Linux-ha-dev] implement UUID as node ID
gshi at ncsa.uiuc.edu
Wed Jun 23 14:07:17 MDT 2004
At 09:50 PM 6/23/2004 +0200, you wrote:
>On Jun 23, 2004, at 9:41 PM, Guochun Shi wrote:
>> For implement UUID as node id, heartbeat should provide message APIs:
>> sendmsgto_nodename(ll_cluster_t* lcl , struct ha_msg* msg, const char* nodename);
>> sendmsgto_nodeid(ll_cluster_t* lcl , struct ha_msg* msg, uuid_t* nodeid);
>>other APIs should remain the same.
>>sendmsgto_nodename() is necessary as nodename is human readable. This function requires
>> each node keeps a map from nodename to uuid. This map table can be created using heartbeat
>> messages from other nodes. If there are more than 1 entries in the table, we will need send
>> the message multiple times with different destination or we can modify the "to" field in struct ha_msg
>> to handle this case so that we only send it once.
>will you be adding F_UUID to messages to compliment F_ORIG?
Yeah, we need both the sender name and the sender uuid to be in the message in order to create the map table
at the beginning.
>> ccm needs modification to use sendmsgto_nodeid(). I am not sure how other subsystems will be affected.
>> A file should be created to store the uuid for the local machine. Maybe the same location as the
>> generation number file (/var/lib/heartbeat)
>please dont forget the uuid <--> node name utility functions :)
right, those utilities shall be made available to clients.
More information about the Linux-HA-Dev