Blog

Swift and quotas in upcoming 1.8.0 (Grizzly) release.

Posté par Chmouel | 8/03/2013  | sous OpenStack/Dev | | Pas de commentaires 

There are two new nifty middlewares for doing quotas in upcoming Swift release 1.8.0 called container_quotas and account_quotas.

 

Those are two different middlewares because they are actually addressing different use cases.

container_quotas is typically used by end users the use case here is to let user to specify a limit on one of their container.

 

Why would you want to restrict yourself you may ask ? This is because when you allow a public upload to a container for example with tempurl or/and formpost you want to make sure people are not uploading a unlimited amount of datas.

The headers to configure for the container quota are :

X-Container-Meta-Quota-Bytes - The Maximum size of the container, in bytes.
X-Container-Meta-Quota-Count - Maximum object count of the

 

The account_quotas is more the typical quota implementation. A "super
user" with the reselleradmin group/role can set a byte limit for
an account and the account will not be able to have new
objects/containers until someone cleanups his account to get under the
limited quotas.

 

The headers to configure the account quotas are :

 

X-Account-Meta-Quota-Bytes - The Maximum size of the account in bytes.

The commit for the container quotas is here :

Basic container quotas

and account quotas commit :

Account quotas

 

 

Enjoy.

 

 Chmouel Boudjnah - Señor Dev at eNovance.

Commenter

Commenter

Recherche

Catégories

Articles récents

The absolute minimum to get you started with Vagrant

How to create specific Nova flavors for tenants

Swiftsync - A way to synchronize two swift clusters

Keystone and PKI Tokens

How to revoke a token with keystone and PKI (v2.0 API)

Tags

amazon web services aws solution provider best open source applications Blog canonical ceph cinder cloud computing cloud storage data availability dell devops enocloud eNovance enovance marketplace essex folsom france glance grizzly hastexo heat horizon infogérance sur aws infrastructures IT applications keystone nova open nebula open source cloud openstack openstack object storage openstack public cloud openstack swift ops oslo python quantum rackspace storage support 24x7 swift ubuntu uforge xebia

Archives