user list
Is there a way to get a list of the users that have objects stored within a swift cluster? We want to do some per-user accounting/
Thanks,
Sam
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- 2012-12-11
- Last reply:
- 2012-12-17
Samuel Merritt (torgomatic) said : | #1 |
Well, there's no easy way, but there is a way.
You can find all the account databases on a node by looking in /srv/node/
With that in hand, you can do a series of HEAD requests to see how much stuff is stored under each account.
Sam Fineberg (fineberg) said : | #2 |
This is kind of what I expected, but not what I wanted. Maybe its time to write a blueprint for an easier way to do this.
Samuel Merritt (torgomatic) said : | #3 |
Sure. If you want to have a go at coding it yourself, one fairly easy way would be to make the account auditor log the name of the account it's auditing (in, say, AccountAuditor.
I've only spent a minute or two thinking about this, though, so don't take the above as some sort of hard requirement. :)
clayg (clay-gerrard) said : | #4 |
Doesn't slogging already make a pretty good run at this?
https:/
Can you help with this problem?
Provide an answer of your own, or ask Sam Fineberg for more information if necessary.