Info retrieval for a Swift billing system

asked 2012-09-14 10:52:40 -0600

gcivitella gravatar image

Hi all,

I'm trying to figure out how a billing system could retrieve stats info about all the tenants in a Swift cluster. Do someone has a working example to show? Is the .reseller_admin status involved while choosing credentials to query for stats? What about doing the same query while using Keystone authentication?

Thanks a lot Giuseppe

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-09-25 17:01:20 -0600

gcivitella gravatar image

On /srv/node/*/account/ there are some .db files. Those are the sqlite databases holding account usage data. There is one db for every account.

edit flag offensive delete link more

answered 2012-09-25 17:11:01 -0600

notmyname gravatar image

You are correct that there are .db files and by reading them you can get usage info. Note however that there are multiple replicas of the data in the cluster, so you need to account for that when aggregating your data.

I have a project that does some degree of usage tracking for swift clusters at . It may give you some pointers.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-09-14 10:52:40 -0600

Seen: 68 times

Last updated: Sep 25 '12