kohrar commented on PR #8737:
URL: https://github.com/apache/cloudstack/pull/8737#issuecomment-1992300251

   Thanks for the detailed breakdown on your deletion performance @JoaoJandre. 
Since you have so many rows in the vm_stats table, what's the performance like 
when you run a list VM command (eg. `list virtualmachines listall=true`)? 
Without an index on timestamp, are you noticing any significant slowdowns with 
these commands?  I only noticed this after users complained that listing VMs 
when creating a port forwarding was taking >30 seconds to load. Our instance 
did have `vm.stats.increment.metrics` enabled which we've subsequently disabled 
to help speed up these types of API calls.
   
   > However, if at any time the user decides that they want to retain less 
stats, the query to delete the excess stats might take much longer, and 
eventually timeout, leading to a snowball where ACS is unable to clean the 
vm_stats table and it keeps growing, making the problem worse.
   
   Where is the timeout happening and could the timeout be increased? A slow 
deletion happening in the background isn't as impactful as a slow or 
unresponsive user interface, so I'd still rather have the index in place.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to