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

Refresh oximeter producer list more aggressively #6926

Merged
merged 5 commits into from
Oct 25, 2024
Merged

Conversation

bnaecker
Copy link
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
Copy link
Contributor

@jgallagher jgallagher left a comment

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!

nexus/src/app/oximeter.rs Show resolved Hide resolved
nexus/test-utils/src/lib.rs Show resolved Hide 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.
@bnaecker bnaecker merged commit 62916d4 into main Oct 25, 2024
17 checks passed
@bnaecker bnaecker deleted the refresh-harder branch October 25, 2024 19:11
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