From: root Date: Sun, 19 Jun 2016 07:36:06 +0000 (+0530) Subject: rgw: Add documentation for RGW default quota X-Git-Tag: v0.94.10~68^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7f6b47fdfdd539e6172112f83f3b83a57b515e8;p=ceph.git rgw: Add documentation for RGW default quota Fixes http://tracker.ceph.com/issues/16447 Cherry picked from e3ab3476146cf0fe604783e9e5a0d63237271735 This was modified to use size in kB, rather than size in bytes, since Jewel has not yet been converted to use size in bytes. Signed-off-by: Pavan Rallabhandi Signed-off-by: Daniel Gryniewicz (cherry picked from commit 11328d7dcc6634ab81ebce4801ebc243a27b84b0) --- diff --git a/doc/radosgw/admin.rst b/doc/radosgw/admin.rst index 849f236e3c0..cfc541bafe1 100644 --- a/doc/radosgw/admin.rst +++ b/doc/radosgw/admin.rst @@ -400,6 +400,15 @@ To see how much of the quota a user has consumed, execute the following:: .. note:: You should execute ``radosgw-admin user stats`` with the ``--sync-stats`` option to receive the latest data. +Default Quotas +-------------- + +You can set default quotas in the config. These defaults are used when +creating a new user and have no effect on existing users. If the +relevant default quota is set in config, then that quota is set on the +new user, and that quota is enabled. See ``rgw bucket default quota max objects``, +``rgw bucket default quota max size``, ``rgw user default quota max objects``, and +``rgw user default quota max size`` in `Ceph Object Gateway Config Reference`_ Reading / Writing Global Quotas ------------------------------- @@ -468,3 +477,4 @@ ranges for trim operations. :: .. _radosgw-admin: ../../man/8/radosgw-admin/ .. _Pool Configuration: ../../rados/configuration/pool-pg-config-ref/ +.. _Ceph Object Gateway Config Reference: ../config-ref/ diff --git a/doc/radosgw/config-ref.rst b/doc/radosgw/config-ref.rst index a5eed1f6bb2..63740af1bf5 100644 --- a/doc/radosgw/config-ref.rst +++ b/doc/radosgw/config-ref.rst @@ -322,6 +322,40 @@ Ceph configuration file, the default value will be set automatically. :Type: Boolean :Default: ``false`` + +``rgw bucket default quota max objects`` + +:Description: Default max number of objects per bucket. Set on new users, + if no other quota is specified. Has no effect on existing users. +:Type: Integer +:Default: ``-1`` + + +``rgw bucket default quota max size`` + +:Description: Default max capacity per bucket, in kB. Set on new users, + if no other quota is specified. Has no effect on existing users. +:Type: Integer +:Default: ``-1`` + + +``rgw user default quota max objects`` + +:Description: Default max number of objects for a user. This includes all + objects in all buckets owned by the user. Set on new users, + if no other quota is specified. Has no effect on existing users. +:Type: Integer +:Default: ``-1`` + + +``rgw user default quota max size`` + +:Description: The value for user max size quota in kB set on new users, + if no other quota is specified. Has no effect on existing users. +:Type: Integer +:Default: ``-1`` + + Regions =======