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

When deploying node to Kubernetes it times out #8975

Closed
PaX101 opened this issue Apr 25, 2024 · 3 comments · Fixed by apache/cloudstack-kubernetes-provider#60
Closed

When deploying node to Kubernetes it times out #8975

PaX101 opened this issue Apr 25, 2024 · 3 comments · Fixed by apache/cloudstack-kubernetes-provider#60
Assignees
Milestone

Comments

@PaX101
Copy link

PaX101 commented Apr 25, 2024

When deploying a node on Kubernetes in Cloudstack 4.19.0.0 it times out when it tries to list the VM's:

Error syncing load balancer: failed to ensure load balancer: error retrieving list of hosts: Get https://my.url.com/client/api?apiKey=myapikeyhere&command=listVirtualMachines&listall=true&response=json&signature=mysignature: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Kub

When i try and load the page myself if takes around 5-10 minutes to load the VM list similar to the bug in 4.18 when trying to list VM's. If i change the command to: listVirtualMachinesMetrics in my broswer it loads instantly.

@rohityadavcloud
Copy link
Member

@PaX101 yes because you're listing the listVirtualMachinesMetrics API which by default returns VM stats (which slows down the API request). If you don't need all the details, you can pass details=min to the API response (or specific details you'd expect).

If you're not able to control this API request, one way to address this could be to change the default behaviour that's change-able via global setting.

@rohityadavcloud rohityadavcloud self-assigned this Apr 26, 2024
@rohityadavcloud rohityadavcloud added this to the 4.19.1.0 milestone Apr 26, 2024
@rohityadavcloud
Copy link
Member

@PaX101 I've proposed a PR here which might help your case - #8985
Can you try to disable vm.stats.increment.metrics global setting in your environment and see if it helps speed you listVIrtualMachines API calls?

@weizhouapache
Copy link
Member

@PaX101 yes because you're listing the listVirtualMachinesMetrics API which by default returns VM stats (which slows down the API request). If you don't need all the details, you can pass details=min to the API response (or specific details you'd expect).

If you're not able to control this API request, one way to address this could be to change the default behaviour that's change-able via global setting.

good idea to list virtualmachine with details parameters
I created a PR to address it in ccm: apache/cloudstack-kubernetes-provider#60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment