[Gluster-devel] file brick locations without libgfapi / xattr

Jay Vyas jayunit100 at gmail.com
Wed May 8 17:35:37 UTC 2013


Hi guys:

Is there a way to "guess" which node / brick contains a file in glusterfs,
without using xattrs ?

We need programmatic access to optimize locality, and currently are doing
this with xattrs, however, we'd like to simply get the gluster meta data in
a platform neutral way.

One very silly solutoin might be:

ssh into each server, and account time to read 50KB from the file, and
select the fasted read time as the "local" server.

But of course, this would be a really bad hack :) ^^

-- 
Jay Vyas
http://jayunit100.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20130508/0b7b2d66/attachment-0001.html>


More information about the Gluster-devel mailing list