[Gluster-users] libgfapi management functions
Prasad, Nirmal
nprasad at idirect.net
Tue Sep 2 14:35:54 UTC 2014
Thanks for the response – the one functionality or hook I’m looking for is a notification for brick failure – presently the process involves checking the volume status to see if a certain brick goes offline.
When a brick fails, would want to start a timer and replace the brick if it does not come up automatically – alternatively if gluster allowed specifying “hot-stand-bys” to replace with at a certain timeout (eg. 1 minute or a replica threshold) it would work.
Thanks
Regards
Nirmal
From: RAGHAVENDRA TALUR [mailto:raghavendra.talur at gmail.com]
Sent: Monday, September 01, 2014 3:26 PM
To: Prasad, Nirmal
Cc: gluster-users at gluster.org
Subject: Re: [Gluster-users] libgfapi management functions
On Sat, Aug 30, 2014 at 9:12 PM, Prasad, Nirmal <nprasad at idirect.net<mailto:nprasad at idirect.net>> wrote:
Hi,
Is there any plan or interest in getting the management functions added to gfapi? – looks pretty much like the client library functions could be added.
eg. the present libgfapi has glfs_mgmt.c with a few rpc messages exchanged with glusterd
https://github.com/gluster/glusterfs/blob/master/api/src/glfs-mgmt.c
Any interest or plans to have more operations exposed (especially brick status change notifications to be propagated to applications)? I’m wondering if gluster cli could be built on this library – it would involve taking the functionality that exists in the cli into a library and separating out the console interactions.
Thanks
Regards
Nirmal
_______________________________________________
Gluster-users mailing list
Gluster-users at gluster.org<mailto:Gluster-users at gluster.org>
http://supercolony.gluster.org/mailman/listinfo/gluster-users
Hi Nirmal,
The file glfs_mgmt.c has only those functions which are required by the client stack of glusterfs to interact with
glusterd. The management here refers to interaction of the process/library with the glusterfs management daemon which is glusterd for its own purpose.
GFAPI is currently intended to be used only as a interface/api to the file glusterfs filesystem and not for management operations.
Do you have a specific requirement which would require such a feature from GFAPI?
There are other projects being developed to provide API for management operations like
http://www.gluster.org/community/documentation/index.php/Features/rest-api
--
Raghavendra Talur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140902/7c4eaaeb/attachment.html>
More information about the Gluster-users
mailing list