[Gluster-devel] Glusterd daemon management code refactoring

Anders Blomdell anders.blomdell at control.lth.se
Fri Dec 12 10:29:47 UTC 2014


On 2014-12-12 10:26, Krishnan Parthasarathi wrote:
> Anders,
> 
>>>> ### Abstract data types
>>>>
>>>>         struct conn_mgmt {
>>>>             struct rpc_clnt *rpc;
>>>>             int (*connect) (struct conn_mgmt *self);
>>>>             int (*disconnect) (struct conn_mgmt self);
>>>>             int (*notify) (struct conn_mgmt *self, rpc_clnt_event_t
>>>>             *rpc_event);
>>>>         }
>>> Great, one place to fix IPv6/IPv4 coexistence :-)
>> Just for cross referencing:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1117886
> 
> I am glad that this refactoring has positive side-effects
> that we didn't imagine :-)
One thing to lookout for is 'gluster poll', which is quite special, it should probably
try all addresses returned by getaddrinfo, for small installations (< 20 machines, say)
one could give all machines the same alias name, and mounting with that alias name
would work automagically even with some machines down, since mounting would try until
it found a responding machine, but the 'gluster poll' on that alias name would probably
break things if not anticipated before. Just my 5 ¢.

/Anders

-- 
Anders Blomdell                  Email: anders.blomdell at control.lth.se
Department of Automatic Control
Lund University                  Phone:    +46 46 222 4625
P.O. Box 118                     Fax:      +46 46 138118
SE-221 00 Lund, Sweden



More information about the Gluster-devel mailing list