Runtime bindnet address change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have been following this thread closely and wonder if my question too is related to this issue: http://www.spinics.net/lists/corosync/msg02542.html

I have a cluster of machines which have to be set with the correct bindnetaddr in the totem.

The problem is that when the machines are power cycled, they may or may not get the same IP and thus the bindnetaddr may change. Also, if the interface port cable is pulled out and pushed back in, there is a dynamic change in the bindnetaddr. Does corosync handle this dynamic change.

I have a v2.2 client and digging in to the code, there is a function ptr used:

void (*confchg_fn) (
                enum totem_configuration_type configuration_type,
                const unsigned int *member_list, size_t member_list_entries,
                const unsigned int *left_list, size_t left_list_entries,
                const unsigned int *joined_list, size_t joined_list_entries,
                const struct memb_ring_id *ring_id))

Does the code monitor any change in the IP address so that the bindnetaddr is changed on the fly in the config?

I think there has to be a a thread which runs every so often that checks the bound IP address using "ip -o addr" and sets off a call to the confchg_fn in case the ip address changes.

Thanks
Koushik
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss

[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux