From: "Sergey Arkhipov" <sarkhipov@xxxxxxxx>
To: ceph-users@xxxxxxxxxxxxxx
Sent: Monday, March 30, 2015 2:55:33 AM
Subject: RADOS Gateway quota managementCould someone please help me to understand how to limit users?Steps to reproduce: create bucket, set quota like that (max_objects = 3 and enable) and successfully upload 9 files. User quota is also defined:Hi,Currently I am trying to figure out how to work with RADOS Gateway (ceph 0.87) limits and I've managed to produce such strange behavior:{ "bucket": "test1-8",
"pool": ".rgw.buckets",
"index_pool": ".rgw.buckets.index",
"id": "default.17497.14",
"marker": "default.17497.14",
"owner": "cb254310-8b24-4622-93fb-640ca4a45998",
"ver": 21,
"master_ver": 0,
"mtime": 1427705802,
"max_marker": "",
"usage": { "rgw.main": { "size_kb": 16000,
"size_kb_actual": 16020,
"num_objects": 9}},
"bucket_quota": { "enabled": true,
"max_size_kb": -1,
"max_objects": 3}}"bucket_quota": { "enabled": true,
"max_size_kb": -1,
"max_objects": 3},
"user_quota": { "enabled": true,
"max_size_kb": 1048576,
"max_objects": 5},
--
The question is whether the user is able to continue writing objects at this point. The quota system is working asynchronously, so it's possible to get into edge cases where users exceeded it a bit (it looks a whole lot better with larger numbers). The question is whether it's working for you at all.
Yehuda
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com