Ask Your Question
0

Info retrieval for a Swift billing system

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

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
0

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

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
0

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

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 https://github.com/notmyname/slogging . It may give you some pointers.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 54 times

Last updated: Sep 25 '12