skattoju4 opened a new pull request #3279: WIP: Skip getting used bytes for 
volumes that are not in Ready state
URL: https://github.com/apache/cloudstack/pull/3279
 
 
   ## Description
   Slow VM creation times are experienced when using solid fire managed 
storage. It is suspected that this is caused by calls to getUsedBytes in the 
solid fire storage driver that result in calls to the solid fire appliance when 
volume details are not available in the database. Volume details should be 
available in the database for volumes in ready state. We expect the error to be 
resolved by only attempting to get bytes used by active volumes by skipping 
volumes that are not in ready state.
   
   Steps to reproduce
   1. Create a large number of volumes in the database that are not in ready 
state.
   2. Attempt to create a VM
   
   Expected behaviour:
   VM creation should happen in a less than a few minutes
   
   Actual behaviour:
   VM creation takes around 5 minutes even with small images
   
   ## Types of changes
   <!--- What types of changes does your code introduce? Put an `x` in all the 
boxes that apply: -->
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ## How Has This Been Tested?
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to 
-->
   <!-- see how your change affects other areas of the code, etc. -->
   
   <!-- Please read the 
[CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md)
 document -->
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to