Jump to: navigation, search

Difference between revisions of "Swift/ideas/account-quota-files"

< Swift‎ | ideas
(Problem)
(Problem)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Problem ==
 
== Problem ==
It's possible to set "X-Container-Meta-Quota-Bytes" and "X-Container-Meta-Quota-Count" on containers, as documented in the [https://docs.openstack.org/swift/latest/api/container_quotas.html official docs]. It's currently possible to configure quotas on Accounts for "quota-bytes", which is by the way not documented in the official documentation but only [https://www.swiftstack.com/docs/admin/middleware/account_quotas.html here]. There's no way to configure an account quota limit for number of files, or "quota-count". Because of this, a user could possibly exhaust the filesystem inodes.
+
It's possible to set "X-Container-Meta-Quota-Bytes" and "X-Container-Meta-Quota-Count" on containers, as documented in the [https://docs.openstack.org/swift/latest/api/container_quotas.html official docs]. It's currently possible to configure quotas on Accounts for "quota-bytes", as documented [https://docs.openstack.org/swift/latest/middleware.html#module-swift.common.middleware.account_quotas here]. There's currently no way to configure an account quota limit for number of files, or "quota-count". Because of this, a user could possibly exhaust the filesystem inodes.
  
 
== Proposed solution ==
 
== Proposed solution ==
The code https://github.com/openstack/swift/blob/master/swift/common/middleware/account_quotas.py should include a way for users with ResellerAdmin role to add a quota-count limit on accounts, and enforce such limit.
+
The [https://github.com/openstack/swift/blob/master/swift/common/middleware/account_quotas.py code] should include a way for users with ResellerAdmin role to add a quota-count limit on accounts, and enforce such limit.
  
 
Contact: mpasserini on IRC
 
Contact: mpasserini on IRC

Latest revision as of 15:49, 7 June 2018

Problem

It's possible to set "X-Container-Meta-Quota-Bytes" and "X-Container-Meta-Quota-Count" on containers, as documented in the official docs. It's currently possible to configure quotas on Accounts for "quota-bytes", as documented here. There's currently no way to configure an account quota limit for number of files, or "quota-count". Because of this, a user could possibly exhaust the filesystem inodes.

Proposed solution

The code should include a way for users with ResellerAdmin role to add a quota-count limit on accounts, and enforce such limit.

Contact: mpasserini on IRC