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

ClusterMapInfo Injects Local Cluster Info on Empty #917

Merged
merged 2 commits into from Sep 3, 2021

Conversation

mbolt35
Copy link
Collaborator

@mbolt35 mbolt35 commented Sep 3, 2021

What does this PR change?

On initial startup, or if cost-model had not been running for the last 5 minutes, the initial prometheus query to get cluster info would always return 0 data (since the cost-model emits this metric). To account for variance here, we always include the local cluster info in the event that the map is empty.

How does this PR impact users? (This is the kind of thing that goes in release notes!)

  • Bug Fix for improperly displaying cluster id/name labels

How was this PR tested?

Turning off cost-model deployment for 10 minutes, starting up. Observing the bug no longer occurs.

@mbolt35 mbolt35 added the bug Something isn't working label Sep 3, 2021
@mbolt35 mbolt35 self-assigned this Sep 3, 2021
Copy link
Collaborator

@michaelmdresser michaelmdresser left a comment

Choose a reason for hiding this comment

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

Looks solid to me! Niko certainly knows this stuff better than I do, though.

@mbolt35 mbolt35 merged commit ca90b93 into develop Sep 3, 2021
@mbolt35 mbolt35 deleted the bolt/cluster-info-local branch September 3, 2021 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants