Re: cluster service development - question

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

 



Lon Hohberger wrote:
> On Tue, 2005-10-04 at 12:40 -0400, Lon Hohberger wrote:
> 
>>On Tue, 2005-10-04 at 17:50 +0200, Christian Niessner wrote:
>>
>>>hi,
>>>
>>>i'm currently developing a cluster service for the cluster release 
>>>1.00.00. It's using libmagma for messaging and node membership 
>>>maintainance, and these parts work really well.. But i also have to
>>>maintain a list of all configured nodes.
>>>
>>>What is the 'best practice' to get this list? (Node id and name would be
>>>fine...) It doesn't seem do be possible with libmagma...
> 
> 
> Ugh, I read this wrong.
> 
> Here you go.  It's part of a rewrite of clustat which has "how to get
> this stuff from ccsd" built right in.  I haven't committed this yet, but
> will soon as part of a larger clustat rewrite.
> 
> ccs_member_list() returns cluster_member_list_t *.
> 
> build_member_list does that, but compares it against who is in the
> configuration (and in this case, who is running rgmanager).  It's kind
> of hackish the way I'm overloading the cm_state field with a bunch of
> bitflags, but it works.
> 

Just to point out that the next cman version (the userland daemon on head of
CVS) will behave as you want - ie requesting the members list will retrieve all
the nodes known to CCS.

-- 

patrick

--

Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux