Hi Ricardo,

Thanks for sharing. I can't say without more details on how to reproduce the 
env/condition, or look at the DB server. It might be statistics or something 
else, you could try to log mysql queries and see if they're slow(ing down).

Could you say try with a MySQL 8.x server and use a different host server (for 
example, there is an issue reportedly affecting EL9 - 
https://github.com/apache/cloudstack/issues/7910; you could try Ubuntu 
22.04/20.04 or EL8 to rule out the DB server).

Can you measure (say using dev tools of your browser) the time it takes to 
render the list VM API call (specifically the API would be called 
listVirtualMachinesMetrics API), share the outcomes with us.

Can you try the following URLs for the list instances page in the UI, see if 
any makes difference in loading times for you:


http://<cloudstack mgmt host domain or IP>:8080/client/#/vm?details=min
http://<cloudstack mgmt host domain or 
IP>:8080/client/#/vm?details=servoff,tmpl,nics

Compared to the following that you've by default:


http://<cloudstack mgmt host domain or IP>8080/client/#/vm

I've raised a PR to explore an idea further:
https://github.com/apache/cloudstack/pull/7911


Regards.

________________________________
From: Kuasar <ricardo.per...@kuasar.co.INVALID>
Sent: Thursday, August 24, 2023 19:21
To: users@cloudstack.apache.org <users@cloudstack.apache.org>; 
users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Query to Cloudstack API is degraded

Hi Rohit,

Thanks for asking, my reply below

- which APIs you think have degraded ->
         listing instances

- how have you concluded that they are degrading? ->
        we have an upper app that has a configured timeout and it wasn’t 
firing, we had to change the value, and it is visible as well, it takes 5.6s 
bringing 5 vms.

- are those list API or other async/action oriented APIs? ->
         yes, it it async

- which version of CloudStack and MySQL server is this, other details about 
your env (hypervisor, scale/size of resources etc).
        ACS 4.18.0.  —> 4GB 2Cores
        Mariadb 10.5.x -> 4GB 2Cores
        Hyp KVM

- does restarting mgmt server help? any other information on how to reproduce 
this?
        no change

We are guessing it is related to database performance/index as it not happening 
in QA


Atte,

Ricardo Pertuz


On 24 Aug 2023, 6:33 AM -0500, Rohit Yadav <rohit.ya...@shapeblue.com>, wrote:
> Hi Ricardo,
>
> Can you share more details, such as;
>
> - which APIs you think have degraded
> - how have you concluded that they are degrading?
> - are those list API or other async/action oriented APIs?
> - which version of CloudStack and MySQL server is this, other details about 
> your env (hypervisor, scale/size of resources etc)
> - does restarting mgmt server help? any other information on how to reproduce 
> this?
>
>
> Regards.
>
> ________________________________
> From: Kuasar <ricardo.per...@kuasar.co.INVALID>
> Sent: Wednesday, August 23, 2023 22:00
> To: users@cloudstack.apache.org <users@cloudstack.apache.org>
> Subject: Query to Cloudstack API is degraded
>
> During the last weeks we have been experiencing a degrading performance in 
> API queries to Cloudstack, is there a procedure you recommend to check the 
> possible bottleneck?, we are checking database indices.
>
>
> BR,
>
> Ricardo Pertuz
>
>
>
>
>

 

Reply via email to