amazon-ec2-instance-selector icon indicating copy to clipboard operation
amazon-ec2-instance-selector copied to clipboard

--output table-wide never return

Open tanvp112 opened this issue 1 year ago • 1 comments

I tried the following command ec2-instance-selector --memory 4 --vcpus 2 --cpu-architecture x86_64 -r us-east-1 -o table-wide on Windows 11 with aws-cli/2.15.11 and the command never return. Eventually the process has to be killed. I have tried the same on Fedora with same aws cli version and the outcome is the same.

Any body has similar issue?

tanvp112 avatar Feb 13 '24 09:02 tanvp112

I experience this too. It happens on both table-wide and interactive.

Thing is, it does work it's just excruciatingly slow the first time. Once the cache is built it seems to be reasonably fast.

Nuking the cache and running took 2 minutes. Subsequent runs took only 6-8 seconds.

The us-east-1-spot-pricing-cache.gob cache file seems to be what takes all the time. Interestingly, specifying --usage-class on-demand on the first run after nuking the cache still results in that cache file being generated even though the requested filter won't select spot instances. ¯\_(ツ)_/¯

elementalvoid avatar Jul 12 '24 20:07 elementalvoid

The latest version should fix this (3.0.0). I reduced the amount of spot pricing data it pulled so that it's much faster and did away with the cache. Feel free to reopen if it's still super slow. Apologies on the delay as well.

bwagner5 avatar Jan 14 '25 15:01 bwagner5

Yes, I can confirm the same command now return result as expected. Thanks!

tanvp112 avatar Jan 15 '25 04:01 tanvp112