Re: [Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-23 Thread Shengjie_Min
 Two regions case:
 If you want to get the meters for TenantA from 'swift-cluster-1'
 specifically. According to the API design we have now, there is no API 
 can do that directly unless you do some complex API calls combination.

I think you can use:
GET /v1/sources/swift-cluster-1/projects/project/meters/meter

in that case, no?

I actually didn't see this API you mentioned above defined anywhere.

Shengjie

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-23 Thread Julien Danjou
On Fri, Nov 23 2012, shengjie_...@dell.com wrote:

 Two regions case:
 If you want to get the meters for TenantA from 'swift-cluster-1'
 specifically. According to the API design we have now, there is no API 
 can do that directly unless you do some complex API calls combination.

I think you can use:
GET /v1/sources/swift-cluster-1/projects/project/meters/meter

in that case, no?

 I actually didn't see this API you mentioned above defined anywhere.

We can probably add that in the API anyway. :)

-- 
Julien Danjou
// Free Software hacker  freelance
// http://julien.danjou.info


pgpLWvbNocQJb.pgp
Description: PGP signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-22 Thread Shengjie_Min
Hi,

You can deploy several ceilometer and use several databases, or just one and 
use a different 'source' field for each of your region/cluster to 
differentiate where meters come from.

Thanks, Julien, I didn't know source it's meant to be presenting region/cluster 
info. I guess this wiki should be updated :)
http://wiki.openstack.org/EfficientMetering

In the field definition, source has two question marks there.  

Shengjie


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-22 Thread Shengjie_Min

You can deploy several ceilometer and use several databases, or just one and 
use a different 'source' field for each of your region/cluster to 
differentiate where meters come from.

Let's say if you deploy one ceilometer instance for two swift clusters 
'swift-cluster-1' and 'swift-cluster-2'. According to the design, if we use 
'source' field for region/cluster to tell what cluster the meters come from. 
The Ceilometer API doesn't seem being well thought through yet.

A single region case:
If you want to get the meters for TenantA, this API will simply do the job:
GET /v1/projects/(project)/meters/(meter)

Two regions case:
If you want to get the meters for TenantA from 'swift-cluster-1' specifically.  
According to the API design we have now, there is no API can do that directly 
unless you do some complex API calls combination.

Shengjie

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-22 Thread Julien Danjou
On Thu, Nov 22 2012, shengjie_...@dell.com wrote:

 Let's say if you deploy one ceilometer instance for two swift clusters
 swift-cluster-1' and 'swift-cluster-2'. According to the design, if we use
 source' field for region/cluster to tell what cluster the meters come from.
 The Ceilometer API doesn't seem being well thought through yet.

 A single region case:
 If you want to get the meters for TenantA, this API will simply do the job:
 GET /v1/projects/(project)/meters/(meter)

 Two regions case:
 If you want to get the meters for TenantA from 'swift-cluster-1'
 specifically. According to the API design we have now, there is no API can
 do that directly unless you do some complex API calls combination.

I think you can use:
GET /v1/sources/swift-cluster-1/projects/project/meters/meter

in that case, no?

-- 
Julien Danjou
/* Free Software hacker  freelance
   http://julien.danjou.info */


pgpXLk9LHdkzJ.pgp
Description: PGP signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-20 Thread Shengjie_Min
Hi,

Has anybody come across the scenario you need to deploy two or more openstack 
swift or nova clusters for whatever DR or HA reasons. How Ceilometer is going 
to cope with that? Just wondering is there any plans or blueprints addressing 
the usage data replication/distinguish/isolation among multi-DCs?

Thanks,
Shengjie
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] [ceilometer] How does ceilometer work with multi-DC scenario

2012-11-20 Thread Julien Danjou
On Tue, Nov 20 2012, shengjie_...@dell.com wrote:

 Has anybody come across the scenario you need to deploy two or more
 openstack swift or nova clusters for whatever DR or HA reasons. How
 Ceilometer is going to cope with that? Just wondering is there any plans or
 blueprints addressing the usage data replication/distinguish/isolation among
 multi-DCs?

You can deploy several ceilometer and use several databases, or just one
and use a different 'source' field for each of your region/cluster to
differentiate where meters come from.

-- 
Julien Danjou
# Free Software hacker  freelance
# http://julien.danjou.info


pgpAMx4Vs8WRp.pgp
Description: PGP signature
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp