weizhouapache commented on issue #3942: Host reports RAM allocated, when no running VMs URL: https://github.com/apache/cloudstack/issues/3942#issuecomment-595414813 @andrijapanicsb just tested it, when vm is stopped, the resources (cpu/ram) will be reserved for 1 hour (configurable in global setting). 1. before stopping vm ``` mysql> select host_id,used_capacity,reserved_capacity,total_capacity,capacity_type from op_host_capacity where host_id=14; +---------+---------------+-------------------+----------------+---------------+ | host_id | used_capacity | reserved_capacity | total_capacity | capacity_type | +---------+---------------+-------------------+----------------+---------------+ | 14 | 3221225472 | 0 | 7297568768 | 0 | | 14 | 2500 | 0 | 9196 | 1 | | 14 | 4 | 0 | 4 | 90 | +---------+---------------+-------------------+----------------+---------------+ 3 rows in set (0.01 sec) ``` 2. after stopping vm ``` mysql> select host_id,used_capacity,reserved_capacity,total_capacity,capacity_type from op_host_capacity where host_id=14; +---------+---------------+-------------------+----------------+---------------+ | host_id | used_capacity | reserved_capacity | total_capacity | capacity_type | +---------+---------------+-------------------+----------------+---------------+ | 14 | 2684354560 | 536870912 | 7297568768 | 0 | | 14 | 2000 | 500 | 9196 | 1 | | 14 | 3 | 1 | 4 | 90 | +---------+---------------+-------------------+----------------+---------------+ 3 rows in set (0.01 sec) ``` 3. the reservation will be released after 1 hour. 
---------------------------------------------------------------- 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
