Re: dynamic membership modification

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

 



Patrick,

Patrick Hemmer napsal(a):
> What is the proper way of adding and removing nodes at runtime?
> 
> There was a commit
> (https://github.com/corosync/corosync/commit/a358791d5b5b5eaaedeba7eae4f89b0e03807c44)
> a couple years ago which added support for dynamically adding and
> removing UDPU members. But it looks like in the current release (2.3.2)
> this code is gone.

The code is still there. See cmap_keys(8) man page.
> 
> I've been able to add nodes by simply putting them in the corosync.conf
> and calling `corosync-cfgtool -R`, but this does not work for removing.
> If I remove a node and issue the reload, corosync-cmapctl and
> corosync-quorumtool both still show the node.

Yes. The behavior there is little ... weird. The problem is that after
removing UDPU node, corosync will not update it's internal totemsrp
structures so it's still aware of nodes. Maybe there may be interesting
to explore possibility of moving totemsrp to gather state...


> The goal here is to add and remove members without having to shut
> corosync down and interrupt any services which are using it.
> 

This is perfectly possible. Again see example in cmap_keys(8).
corosync-cfgtool -R is perfectly valid, it will just make your life A
LOT easier (you don't need to change key on every node, but only you
will change corosync.conf on all "to be alive" nodes and issue reload).

Regards,
  Honza

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

_______________________________________________
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