Skip to content

Backport 1.5: Disable usage metrics on performance standby nodes. (#9966)#9967

Merged
mgritter merged 2 commits into
release/1.5.xfrom
backport-pr-9966-1.5x
Sep 22, 2020
Merged

Backport 1.5: Disable usage metrics on performance standby nodes. (#9966)#9967
mgritter merged 2 commits into
release/1.5.xfrom
backport-pr-9966-1.5x

Conversation

@mgritter
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread vault/core_metrics.go Outdated
if c.expiration != nil {

// Emit on active node only
if c.expiration != nil && !c.perfStandby {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggest c.PerfStandby() instead for locking.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think that some care is needed because c.stateLock can be held while acquiring c.metricsLock, so we shouldn't acquire them in the reverse order here.

Comment thread vault/core_metrics.go Outdated
c.stateLock.RUnlock()
case <-identityCountTimer:
// Only emit on active node
if c.perfStandby {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ditto.

@ncabatoff ncabatoff changed the title Disable usage metrics on performance standby nodes. (#9966) Backport 1.5: Disable usage metrics on performance standby nodes. (#9966) Sep 18, 2020
@mgritter mgritter merged commit 0fa61ec into release/1.5.x Sep 22, 2020
@mgritter mgritter deleted the backport-pr-9966-1.5x branch September 22, 2020 16:28
pull Bot pushed a commit to NOUIY/vault that referenced this pull request Oct 22, 2025
* replace instances of ToolTip component with HDS tooltip

* Replace InfoTooltip component instances with HDS tooltip

* update tests

* remove remaining custom tooltip code

* remove rich tooltip with copy

* update test and update toolbar link with styling to remove extra link

* Apply suggestions from code review



* update test and remove setRunOptions now that tooltip violations are addressed

* Revert "Apply suggestions from code review"

This reverts commit 90f01c653be68f23b6dbd75f252d227e38dbe53f.

* Remove unused disabled tooltip code

* add comment and TODO explaining conditional modifier pattern

---------

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants