Skip to content

Refresh oximeter producer list more aggressively - #6926

Merged
bnaecker merged 5 commits into
mainfrom
refresh-harder
Oct 25, 2024
Merged

bnaecker merged 5 commits into
mainfrom
refresh-harder

Conversation

@bnaecker

Copy link
Copy Markdown
Collaborator

- Remove `oximeter` producer HTTP endpoint for registering individual
  producers.
- Dramatically reduce interval on which `oximeter` collector refreshes
  its list of producers. This is now the only way the collector learns
  of producers. The interval is also much smaller in tests to ensure
  pretty snappy registrations
- Remove calls from both Nexus and the `oximeter` standalone mock Nexus
  for registering producers
- Have `oximeter` collector start polling producers immediately, rather
  than waiting for the first polling interval to expire.
- Closes #6916, #6895, and #6901
@bnaecker
bnaecker requested a review from jgallagher October 24, 2024 16:06

@jgallagher jgallagher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love bugfixes with a bunch of code removal. LGTM!

Comment thread nexus/src/app/oximeter.rs Resolved
Comment thread nexus/test-utils/src/lib.rs Resolved
@bnaecker
bnaecker enabled auto-merge (squash) October 24, 2024 16:56
bnaecker and others added 2 commits October 24, 2024 17:52
Lots of tests use `force_collect()` to wait for oximeter to collect from
themselves, before asserting things about the metrics. That no longer
works, since the producer isn't registered right away. Now, use
`wait_for_producer()` in tests to first wait for oximeter to notice the
registration, and then continue as usual.
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.

oximeter should refresh its producer list more frequently

2 participants