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

UI: Show allocation associations in the topo viz more often (and fix a bug) #9906

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

DingoEatingFuzz
Copy link
Contributor

Closes #9769

This fixes the bug reported in the above issue and hopefully also clears up some of the confusing behavior.

Bug
When allocation associations aren't supposed to be drawn, resizing the window will cause them to be drawn anyway.

Confusion
Sometimes allocation associations aren't supposed to be drawn but it's not clear when or why.

The motive behind this behavior is the lines can become more overwhelming than they are helpful for densely placed allocs on large clusters. The lines are supposed to help get a sense of spread, but when it's just spaghetti, it's not solving that anymore.

I think this motive is still valid, but the logic behind it is admittedly naive. Before this pr, the logic was allocCount < nodeCount * 0.75 And as you can see in the issue, this means three allocs on a three node cluster don't get lines. Having lines in this scenario isn't at all overwhelming, so I adjusted the logic.

Now lines will always be drawn if the sibling alloc count is <10.

On very small clusters, the node count heuristic is impractical and
leads to confusion. By additionally requiring 10+ sibling allocs, the
lines will be shown more often.
@github-actions
Copy link

Ember Asset Size action

As of ac758a7

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +223 B +41 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

@github-actions
Copy link

Ember Test Audit comparison

master ac758a7 change
passes 1544 1544 0
failures 0 0 0
flaky 0 0 0
duration 8m 36s 854ms 7m 16s 071ms -1m 20s 783ms

Copy link
Contributor

@backspace backspace left a comment

Choose a reason for hiding this comment

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

Nice precision adjustments 😀

@DingoEatingFuzz DingoEatingFuzz merged commit 5bbe53f into master Jan 28, 2021
@DingoEatingFuzz DingoEatingFuzz deleted the b-ui/topo-lines-not-shown branch January 28, 2021 00:05
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird node sizing in nomad topology view
2 participants