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

Weird node sizing in nomad topology view #9769

Closed
apollo13 opened this issue Jan 11, 2021 · 10 comments · Fixed by #9906
Closed

Weird node sizing in nomad topology view #9769

apollo13 opened this issue Jan 11, 2021 · 10 comments · Fixed by #9906

Comments

@apollo13
Copy link
Contributor

apollo13 commented Jan 11, 2021

On 1.0.1 I see the following in the nomad topology:
image

Is there a reason why the client nomad03 is smaller than the others?

Also I do not see the blue lines after clicking on an allocation:
image

Interestingly enough they do show up after hitting F12 to open developer tools:
image

I am running on Firefox 84.0.2 and Chromium 87.0.4280.88 on Fedora 33 which both show the same behavior.

@backspace
Copy link
Contributor

Regarding the heights, I believe it’s because they are scaled to reflect the relative memory capacity of the nodes. You can see here where the scale is configured with the memory of the nodes. The memory on your nodes is quite similar but the difference between nomad03 and the other two is visually significant because they’re at opposite ends of the domain.

For the lines, is there anything in the Javascript console when you open it up after clicking? Does it show in both Firefox and Chromium when the developer tools are open?

@apollo13
Copy link
Contributor Author

apollo13 commented Jan 11, 2021

other two is visually significant because they’re at opposite ends of the domain.

Ah, makes sense

For the lines, is there anything in the Javascript console when you open it up after clicking?

Nope

Does it show in both Firefox and Chromium when the developer tools are open?

It doesn't show when the tools are open, but rather when toggling them (or switching between fullscreen or not).

That said, there seems to be some very very strong caching going on; even though all my member servers report 1.0.1 I have to refresh the UI all the time to get the topology. Ie if I close the nomad tab and open a new one it doesn't show the version in the lower left corner (or the topology button).

@apollo13
Copy link
Contributor Author

I realize that I am seeing different js files here, but why? why I even cleared the cache in the browser, what else could be keeping such a strong handle on the cache?

@apollo13
Copy link
Contributor Author

I managed to fix the caching issue by removing all history in firefox; but it sounds as if nomad should have some kind of cache busters.

@apollo13
Copy link
Contributor Author

@backspace I made you a small screencast: https://apolloner.eu/~apollo13/.tmp/nomad.webm

@backspace
Copy link
Contributor

hmm, I can’t explain why the lines show sometimes and not others, maybe @DingoEatingFuzz, who wrote this feature, would have an idea? 🤞

Regarding caching, the Javascript assets are fingerprinted in the filenames, which is meant to bust the cache when the UI is updated. Is it possible the aggressive caching is happening via whatever’s serving the index.html file that links to the assets? This kind of thing can be difficult to diagnose without reproduction 😳

@apollo13
Copy link
Contributor Author

Is it possible the aggressive caching is happening via whatever’s serving the index.html file that links to the assets?

Probably, though I am serving directly via nomad (granted a haproxy is in between, but that one does not touch cache headers, I'll try to come up with a reproducer)

@DingoEatingFuzz
Copy link
Contributor

Regarding lines not showing up sometimes: the UI will intentionally not show lines among allocations if that job+task-group represents a large enough percentage of the cluster.

However, it doesn't look like in your example that is happening. It's also interesting that the lines show up when you open the dev tools. I suspect this isn't related to the devtools but a window.resize event that opening the devtools triggers.

I'll look into this, thanks for that report!

@apollo13
Copy link
Contributor Author

I suspect this isn't related to the devtools but a window.resize event that opening the devtools triggers.

Jupp, resizing window as well as switching to full screen all make those lines appear.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, 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 Oct 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants