[Gluster-devel] Object Quota feature proposal for GlusterFS-3.7

Prashanth Pai ppai at redhat.com
Wed Feb 18 02:47:20 UTC 2015

This might be helpful for  better integration with Swift. Swift maintains accounting metadata per account and per container. From glusterfs perspective, accounts are (represented as) first level directories in root and containers are second level directories. So accounts contain containers.

Each account has following metadata:

Each container has following metadata:

I've got a few questions:
Will there be separate count stored for files vs directories ?
Does the count represent entire sub tree or just the immediate directory contents ?
Would a getxattr on a dir for count aggregate counts from all distributed bricks ?


 -Prashanth Pai

----- Original Message -----
From: "Vijaikumar M" <vmallika at redhat.com>
To: "gluster-devel at gluster.org >> Gluster Devel" <gluster-devel at gluster.org>
Sent: Tuesday, February 17, 2015 5:22:34 PM
Subject: [Gluster-devel] Object Quota feature proposal for GlusterFS-3.7

Hi All, 

We are proposing files/objects quota feature for GlusterFS-3.7. 

Here is the feature page: http://www.gluster.org/community/documentation/index.php/Features/Object_Count 

'Object Quotas' is an enhancement to the existing 'File Usage Quotas' and has the following benefits: 

    * Easy to query number of objects present in a volume. 
    * Can serve as an accounting mechanism for quota enforcement based on number of Inodes. 
    * This interface will be useful for integration with OpenStack Swift and Ceilometer. 

We can set the following Quota object limits, similar to file usage: 

    * 1) Directory level - limit the number of files at the directory level 
    * 2) Volume level - limit the number of files at the volume level 

Looking forward for Question/Feedback. 


Gluster-devel mailing list
Gluster-devel at gluster.org

More information about the Gluster-devel mailing list