Skip to content
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

add metrics for fast vs slow password hashing #4976

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

rnewson
Copy link
Member

@rnewson rnewson commented Feb 7, 2024

Overview

bump a counter whenever we do a slow or fast password hash, to guide administrators on setting the password cache configuration appropriately and to expose a potential source of slow performance.

Testing recommendations

The counters are visible in the metrics / Prometheus output.

Related Issues or Pull Requests

#4814

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@rnewson rnewson merged commit 66c34e2 into main Feb 8, 2024
14 checks passed
@rnewson rnewson deleted the couch_passwords_metrics branch February 8, 2024 17:05
@pgj
Copy link
Contributor

pgj commented Feb 8, 2024

Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants