From 8e31c002e3cde152b31f9196e3b97e8e3b33f284 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 29 Mar 2017 16:41:39 -0400 Subject: [PATCH] doc/rgw: update section on global quotas Signed-off-by: Casey Bodley --- doc/radosgw/admin.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/radosgw/admin.rst b/doc/radosgw/admin.rst index cfbbb2b7724..06d0cc608d9 100644 --- a/doc/radosgw/admin.rst +++ b/doc/radosgw/admin.rst @@ -413,18 +413,22 @@ new user, and that quota is enabled. See ``rgw bucket default quota max objects Reading / Writing Global Quotas ------------------------------- -You can read and write quota settings in a region map. To get a -region map, execute the following. :: +You can read and write global quota settings in the period configuration. To +view the global quota settings:: - radosgw-admin regionmap get > regionmap.json + radosgw-admin global quota get -To set quota settings for the entire region, simply modify the -quota settings in the region map. Then, use ``region set`` to -update the region map. :: +The global quota settings can be manipulated with the ``global quota`` +counterparts of the ``quota set``, ``quota enable``, and ``quota disable`` +commands. :: - radosgw-admin region set < regionmap.json + radosgw-admin global quota set --quota-scope bucket --max-objects 1024 + radosgw-admin global quota enable --quota-scope bucket -.. note:: After updating the region map, you must restart the gateway. +.. note:: In a multisite configuration, where there is a realm and period + present, changes to the global quotas must be committed using ``period + update --commit``. If there is no period present, the rados gateway(s) must + be restarted for the changes to take effect. Usage -- 2.39.5