Crate gluster [] [src]

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!

Modules

fop
heal
peer
volume

Structs

BrickStatus
Quota

A Quota can be used set limits on the pool usage. All limits are set in bytes.

Enums

AccessMode
GlusterError

Custom error handling for the library

GlusterOption
SelfHealAlgorithm
SplitBrainPolicy
Toggle

Functions

get_local_bricks

Return all bricks that are being served locally in the volume

get_local_hostname

A function to get the information from /etc/hostname

get_local_ip

Returns the local IPAddr address associated with this server

resolve_to_ip

Resolves a &str hostname into a ip address.

translate_to_bytes

This is a helper function to convert values such as 1PB into a bytes