This is a library to interface with Gluster
Most of the commands below are wrappers around the CLI functionality. However recently I have reverse engineered some of the Gluster RPC protocol so that calls can be made directly against the Gluster server. This method of communication is much faster than shelling out.
Scale testing with this library has been done to about 60 servers successfully.
Please file any bugs found at: Gluster Repo Pull requests are more than welcome!
A Quota can be used set limits on the pool usage. All limits are set in bytes.
Custom error handling for the library
Return all bricks that are being served locally in the volume
A function to get the information from /etc/hostname
Returns the local IPAddr address associated with this server
Resolves a &str hostname into a ip address.
This is a helper function to convert values such as 1PB into a bytes