[ceph-users] [Ceph-rgw] pool assigment

2014-04-11 Thread ghislain.chevalier
Hi all,

Context : CEPH dumpling on Ubuntu 12.04

I would like to manage as accurately as possible the pools assigned to Rados 
gateway
My goal is to apply specific SLA to applications which use http-driven storage.
I 'd like to store the contents by associating a pool to a bucket, or a pool to 
a user(account)

Today, all the contents are stored in .rgw.buckets
I read in a post that if the pool .rgw.bucketname exists, contents will be 
stored in it, but it fails.

I tried to modify the metadata associated to the bucket but it fails.
radosgw-admin metadata get bucket:bucketname gives a set information

{ key: bucket:bucketname,
  ver: { tag:  _fimhlBaK9aEKoX--jQKuvjT,
  ver: 1},
  mtime: 1394793288,
  data: { bucket: { name: bucketname,
  pool: .rgw. bucketname,
  index_pool: .rgw. bucketname.index,
  marker: default.9841.1,
  bucket_id: default.9841.1},
  owner: johndoe,
  creation_time: 1394793288,
  linked: true,
  has_bucket_info: false}}

which don't match with information given by radosgw-admin bucket 
-bucket=bucketname stats
{ bucket: bucketname,
  pool: .rgw.buckets,
  index_pool: .rgw.buckets.index,
  id: default.9841.1,
  marker: default.9841.1,
  owner: johndoe,
  ver: 45,
  master_ver: 0,
  mtime: 1394793288,
  max_marker: ,
  usage: { rgw.main: { size_kb: 3005,
  size_kb_actual: 3016,
  num_objects: 3}}

Is there a guideline I can rely on in order to reach my goal?

best regards

- - - - - - - - - - - - - - - - -
Ghislain Chevalier
ORANGE/OLNC/OLPS/ASE/DAPI/CSE
Storage Service Architect
 +33299124432
ghislain.cheval...@orange.commailto:ghislain.cheval...@orange-ftgroup.com
* Pensez à l'Environnement avant d'imprimer ce message !




_

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] [Ceph-rgw] pool assigment

2014-04-11 Thread Yehuda Sadeh
On Fri, Apr 11, 2014 at 3:20 AM,  ghislain.cheval...@orange.com wrote:
 Hi all,

 Context : CEPH dumpling on Ubuntu 12.04

 I would like to manage as accurately as possible the pools assigned to Rados
 gateway
 My goal is to apply specific SLA to applications which use http-driven
 storage.
 I 'd like to store the contents by associating a pool to a bucket, or a pool
 to a user(account)

 Today, all the contents are stored in .rgw.buckets
 I read in a post that if the pool .rgw.bucketname exists, contents will be
 stored in it, but it fails.

That's incorrect.


 I tried to modify the metadata associated to the bucket but it fails.
 radosgw-admin metadata get bucket:bucketname gives a set information

 { key: bucket:bucketname,
   ver: { tag:  _fimhlBaK9aEKoX--jQKuvjT,
   ver: 1},
   mtime: 1394793288,
   data: { bucket: { name: bucketname,
   pool: .rgw. bucketname,
   index_pool: .rgw. bucketname.index,
   marker: default.9841.1,
   bucket_id: default.9841.1},
   owner: johndoe,
   creation_time: 1394793288,
   linked: true,
   has_bucket_info: false}}

 which don't match with information given by radosgw-admin bucket
 -bucket=bucketname stats
 { bucket: bucketname,
   pool: .rgw.buckets,
   index_pool: .rgw.buckets.index,
   id: default.9841.1,
   marker: default.9841.1,
   owner: johndoe,
   ver: 45,
   master_ver: 0,
   mtime: 1394793288,
   max_marker: ,
   usage: { rgw.main: { size_kb: 3005,
   size_kb_actual: 3016,
   num_objects: 3}}

 Is there a guideline I can rely on in order to reach my goal?


Look here:

http://comments.gmane.org/gmane.comp.file-systems.ceph.user/4992

The idea is to define different placement targets. You can change a
user's default placement target, and on bucket creation users can
define which placement target to use (if they're allowed).

Yehuda
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com