apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.06k stars 1.1k forks source link

SSVM scaling issue #6038

Closed Pearl1594 closed 2 years ago

Pearl1594 commented 2 years ago
ISSUE TYPE
COMPONENT NAME
SSVM
CLOUDSTACK VERSION
4.15.x
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

When active cmds i.e., no of entries in cmd_exec_log table is 0 and the SSVM standby capacity - secstorage.capacity.standby is higher than the max sessions an SSVM can handle secstorage.session.max, then the no of SSVMs get scaled up. However, when there aren't any active commands, a logic is added to scale down the SSVMs.

STEPS TO REPRODUCE
1. Set `secstorage.session.max` to 5
2. Set `secstorage.capacity.standby` to 10
3. Notice after 30s a new SSVM spawns up and in the next iteration it is cleaned up
EXPECTED RESULTS
number of SSVMs created should remain intact unless deleted
ACTUAL RESULTS
SSVMs scaled down based on no of active commands i.e., load
sureshanaparti commented 2 years ago

Fixed in #6042