Option for generating API token per task, not per request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
In Progress
|
Low
|
Amy Ge |
Bug Description
Hello,
I'm doing a successful benchmarks of our OpenStack infrastructure, but there's a problem with draining out Keystone during testing other components.
We have configured Keystone to make the key last actually long enough to take the whole test on single token, so it would be nice to have an option to use single token during whole task (or, regenerate it on first expiry warning) when we want to test a raw performance of different component (Swift in this example). Right now it loses a few percent of completed actions only because the Keystone server refused connection, or threw 503s.
When I set the concurrency level to 100, it even got the whole database down for a moment, so the problem is real. I would like to know if you're able to fix that, or point me to official workaround for this case.
With regards,
Kuba
summary: |
- Option for generating API token per whole tas + Option for generating API token per task, not per request |
Changed in rally: | |
assignee: | nobody → Amy Ge (yaoge) |
status: | New → Confirmed |
Changed in rally: | |
status: | Confirmed → In Progress |
Changed in rally: | |
importance: | Undecided → Low |
This looks more like a feature than bug.
I agree that this can be quite convenient, however I would suggest few things about implementation here:
1) Use token per subtask (not task)
2) Implement Context that generates and caches tokens in context object for every user
3) Modify base OpenStackScenario to check whatever token exists
4) Modify OSClients to accept tokens
So that is possible to implement.
Would you like to try?