-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refreshing secrets is slow #177
Comments
Resurrecting this very old ticket.
Once all these PR will be merged, cost of refresh should be:
You can read the detail of improvements on each PR. |
Edit, with all these improvements (starting from chef-vault < 3.0) our total refresh time (to refresh all secrets when search_query result has not changed + update secrets to include all admins) has gone from >3h to 20minutes. |
There is still easy points on the way updates are done when changing only the admin list so I think it would be doable to win a few more minutes there. |
I think we can now close this issue and reopen a new one if some obvious speed issue is found. |
Right now
knife vault refresh foo bar
takes a long time if the search for foo/bar hits a lot of nodes (hundreds to about a thousand in my test).From my analysis, this primarily comes from two sources:
.search(:client, "name:foo OR name:bar OR name:baz …)
.The text was updated successfully, but these errors were encountered: