Re: [ceph-users] RADOS Gateway quota management

2015-04-03 Thread Sergey Arkhipov
Hi,

Thank you for your answer! Meanwhile I did some investigations and found
the reason: quota works on PUTs perfectly, but there are no checks on
POSTs. I've made a pull-request: https://github.com/ceph/ceph/pull/4240

2015-04-02 18:40 GMT+03:00 Yehuda Sadeh-Weinraub yeh...@redhat.com:



 --

 *From: *Sergey Arkhipov sarkhi...@asdco.ru
 *To: *ceph-users@lists.ceph.com
 *Sent: *Monday, March 30, 2015 2:55:33 AM
 *Subject: *[ceph-users] RADOS Gateway quota management


 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}}

 Steps to reproduce: create bucket, set quota like that (max_objects = 3
 and enable) and successfully upload 9 files. User quota is also defined:

   bucket_quota: { enabled: true,
   max_size_kb: -1,
   max_objects: 3},
   user_quota: { enabled: true,
   max_size_kb: 1048576,
   max_objects: 5},

 Could someone please help me to understand how to limit users?

 --

 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




-- 
Sergey Arkhipov
Software Engineer, ASD Technologies
Phone: +7 920 018 9404
Skype: serge.arkhipov
sarkhi...@asdco.ru
asdtech.co
http://asdtech.co
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] RADOS Gateway quota management

2015-04-02 Thread Sergey Arkhipov
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}}

Steps to reproduce: create bucket, set quota like that (max_objects = 3 and
enable) and successfully upload 9 files. User quota is also defined:

  bucket_quota: { enabled: true,
  max_size_kb: -1,
  max_objects: 3},
  user_quota: { enabled: true,
  max_size_kb: 1048576,
  max_objects: 5},

Could someone please help me to understand how to limit users?

-- 
Sergey Arkhipov
Software Engineer, ASD Technologies
Phone: +7 920 018 9404
Skype: serge.arkhipov
sarkhi...@asdco.ru
asdtech.co
http://asdtech.co
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] Objects, created with Rados Gateway, have incorrect UTC timestamp

2015-03-03 Thread Sergey Arkhipov
-ab83-40ef-8a51-b734a65374f5,
  time: 2015-02-26 05:00:00.00Z,
  epoch: 1424926800,
  categories: [
{ category: create_bucket,
  bytes_sent: 0,
  bytes_received: 0,
  ops: 1,
  successful_ops: 1},
{ category: get_obj,
  bytes_sent: 110,
  bytes_received: 0,
  ops: 5,
  successful_ops: 5},
{ category: list_bucket,
  bytes_sent: 1916,
  bytes_received: 0,
  ops: 1,
  successful_ops: 1},
{ category: put_obj,
  bytes_sent: 0,
  bytes_received: 110,
  ops: 5,
  successful_ops: 5}]}]}],
...
  total: { bytes_sent: 8012,
  bytes_received: 418,
  ops: 48,
  successful_ops: 48}}]}[ec2-user@node3 ~]$

Timestamp is 2015-02-26 *05*:00:00.00Z so it means that it is
GMT -3 (expected timestamp is 2015-02-26 *09*:00:00.00Z) . So it
means, that tiimezone offset applied 2 times.

Right now if I want to fetch any usage information on the time range I
have to query 3 hours back from UTC. The same problem with REST API.
Could you please advise or suggest me anything?

Thanks!

-- 
WBR,
Sergey Arkhipov (+7 920 018-94-04)
ASD Technologies Company http://asdtech.co
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com