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

new on-demand instances show the spot price (on managed 1.21 node groups) #36

Closed
dekarl opened this issue Dec 15, 2022 · 3 comments
Closed
Assignees

Comments

@dekarl
Copy link

dekarl commented Dec 15, 2022

While watching a node-group update of a managed EKS 1.21 node group I noticed that new instances come up as spot instances with the correct spot price and switch to on-demand after half a minute (when the capacityType label get's added) but keep showing the cached spot price instead of the correct on-demand price.

I'm not sure if the node should keep an attribute "last capacityType" and remove the cached price when lastCapacityType != currentCapacityType as that's a corner case.

The easiest solution might be to just not cache the price of a node at all and look it up for every update from the cached instance price lists. Or Update it, when updating a node?
https://github.com/awslabs/eks-node-viewer/blob/main/cmd/eks-node-viewer/main.go#L150

This was running version 164e1c9

@kappa8219
Copy link

+1 with all nodes as spots. Even more after some time it just quits(with zero exit code). EKS 1.21.

-disable-pricing changes nothing.

@tzneal tzneal mentioned this issue Jan 11, 2023
@tzneal tzneal self-assigned this Jan 11, 2023
@tzneal
Copy link
Contributor

tzneal commented Jan 11, 2023

Should be resolved now, feel free to re-open if you still run into this.

@tzneal tzneal closed this as completed Jan 11, 2023
@dekarl
Copy link
Author

dekarl commented Jan 11, 2023

I just tested it with the latest version and its resolved in the sense that it doesn't show the wrong price anymore.

Instead fresh instances get shown without price and without capacityType. Once the capacityType is known only that is shown. The price remains NaN / empty.

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

No branches or pull requests

3 participants