You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Mice Xia <mi...@tcloudcomputing.com> on 2012/07/24 05:11:44 UTC
max guest limit in hypervisor capabilities
Hi, All
I noticed there is a page about hypervisor capabilities in global
configuration, and I tried to modify the limit to a smaller number (such
as 5), but VMs can still be created even their number reached the limit.
I'm using ASF trunk, does this limit have any effect to VM creation, or
just a recommended sizing info?
Thanks & Regards
Mice
答复: max guest limit in hypervisor capabilities
Posted by Mice Xia <mi...@tcloudcomputing.com>.
Hi, Koushik
i've filed a bug, CS-15679, should I also submit a patch for it?
Regards
Mice
答复: max guest limit in hypervisor capabilities
Posted by Mice Xia <mi...@tcloudcomputing.com>.
Hi, Koushik
i've filed a bug, CS-15679, should I also submit a patch for it?
Regards
Mice
RE: max guest limit in hypervisor capabilities
Posted by Koushik Das <ko...@citrix.com>.
I found that it is getting checked in the first fit allocator (server/src/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java). The '==' check is incorrect though, should have been '>='. Please go ahead and file a bug if this is not working as expected.
Code snippet
//find number of guest VMs occupying capacity on this host.
Long vmCount = _vmInstanceDao.countRunningByHostId(host.getId());
Long maxGuestLimit = getHostMaxGuestLimit(host);
if (vmCount.longValue() == maxGuestLimit.longValue()){
if (s_logger.isDebugEnabled()) {
s_logger.debug("Host name: " + host.getName() + ", hostId: "+ host.getId() +" already has max Running VMs(count includes system VMs), limit is: " + maxGuestLimit + " , skipping this and trying other available hosts");
}
continue;
}
-----Original Message-----
From: Mice Xia [mailto:mice_xia@tcloudcomputing.com]
Sent: Tuesday, July 24, 2012 11:33 AM
To: cloudstack-dev@incubator.apache.org; cloudstack-users@incubator.apache.org
Cc: Mice Xia
Subject: 答复: max guest limit in hypervisor capabilities
Hi, Koushik
SELECT * FROM cloud.hypervisor_capabilities;
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| id | uuid | hypervisor_type | hypervisor_version | max_guests_limit | security_group_enabled |
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| 1 | fb09cd73-d2ff-4f11-84bb-ea0ae7d358ee | XenServer | default | 2 | 1 |
| 2 | 518962ab-f50b-4e95-aaf2-aaece3e6c892 | XenServer | XCP 1.0 | 50 | 1 |
| 3 | e7feccc6-415b-440d-bc9d-fd9ffbfa3c47 | XenServer | 5.6 | 50 | 1 |
| 4 | 8107d8e2-b5dd-4041-a532-dc996e2d012a | XenServer | 5.6 FP1 | 50 | 1 |
| 5 | 50aa2194-e747-4667-8c75-0e0203826b5a | XenServer | 5.6 SP2 | 2 | 1 |
As it is, limits of Xenserver default and xenserver 5.6 sp2 were already modified to 2 Not like a UI related issue.
Regards
Mice
RE: max guest limit in hypervisor capabilities
Posted by Koushik Das <ko...@citrix.com>.
I found that it is getting checked in the first fit allocator (server/src/com/cloud/agent/manager/allocator/impl/FirstFitAllocator.java). The '==' check is incorrect though, should have been '>='. Please go ahead and file a bug if this is not working as expected.
Code snippet
//find number of guest VMs occupying capacity on this host.
Long vmCount = _vmInstanceDao.countRunningByHostId(host.getId());
Long maxGuestLimit = getHostMaxGuestLimit(host);
if (vmCount.longValue() == maxGuestLimit.longValue()){
if (s_logger.isDebugEnabled()) {
s_logger.debug("Host name: " + host.getName() + ", hostId: "+ host.getId() +" already has max Running VMs(count includes system VMs), limit is: " + maxGuestLimit + " , skipping this and trying other available hosts");
}
continue;
}
-----Original Message-----
From: Mice Xia [mailto:mice_xia@tcloudcomputing.com]
Sent: Tuesday, July 24, 2012 11:33 AM
To: cloudstack-dev@incubator.apache.org; cloudstack-users@incubator.apache.org
Cc: Mice Xia
Subject: 答复: max guest limit in hypervisor capabilities
Hi, Koushik
SELECT * FROM cloud.hypervisor_capabilities;
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| id | uuid | hypervisor_type | hypervisor_version | max_guests_limit | security_group_enabled |
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| 1 | fb09cd73-d2ff-4f11-84bb-ea0ae7d358ee | XenServer | default | 2 | 1 |
| 2 | 518962ab-f50b-4e95-aaf2-aaece3e6c892 | XenServer | XCP 1.0 | 50 | 1 |
| 3 | e7feccc6-415b-440d-bc9d-fd9ffbfa3c47 | XenServer | 5.6 | 50 | 1 |
| 4 | 8107d8e2-b5dd-4041-a532-dc996e2d012a | XenServer | 5.6 FP1 | 50 | 1 |
| 5 | 50aa2194-e747-4667-8c75-0e0203826b5a | XenServer | 5.6 SP2 | 2 | 1 |
As it is, limits of Xenserver default and xenserver 5.6 sp2 were already modified to 2 Not like a UI related issue.
Regards
Mice
答复: max guest limit in hypervisor capabilities
Posted by Mice Xia <mi...@tcloudcomputing.com>.
Hi, Koushik
SELECT * FROM cloud.hypervisor_capabilities;
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| id | uuid | hypervisor_type | hypervisor_version | max_guests_limit | security_group_enabled |
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| 1 | fb09cd73-d2ff-4f11-84bb-ea0ae7d358ee | XenServer | default | 2 | 1 |
| 2 | 518962ab-f50b-4e95-aaf2-aaece3e6c892 | XenServer | XCP 1.0 | 50 | 1 |
| 3 | e7feccc6-415b-440d-bc9d-fd9ffbfa3c47 | XenServer | 5.6 | 50 | 1 |
| 4 | 8107d8e2-b5dd-4041-a532-dc996e2d012a | XenServer | 5.6 FP1 | 50 | 1 |
| 5 | 50aa2194-e747-4667-8c75-0e0203826b5a | XenServer | 5.6 SP2 | 2 | 1 |
As it is, limits of Xenserver default and xenserver 5.6 sp2 were already modified to 2
Not like a UI related issue.
Regards
Mice
答复: max guest limit in hypervisor capabilities
Posted by Mice Xia <mi...@tcloudcomputing.com>.
Hi, Koushik
SELECT * FROM cloud.hypervisor_capabilities;
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| id | uuid | hypervisor_type | hypervisor_version | max_guests_limit | security_group_enabled |
+----+--------------------------------------+-----------------+--------------------+------------------+------------------------+
| 1 | fb09cd73-d2ff-4f11-84bb-ea0ae7d358ee | XenServer | default | 2 | 1 |
| 2 | 518962ab-f50b-4e95-aaf2-aaece3e6c892 | XenServer | XCP 1.0 | 50 | 1 |
| 3 | e7feccc6-415b-440d-bc9d-fd9ffbfa3c47 | XenServer | 5.6 | 50 | 1 |
| 4 | 8107d8e2-b5dd-4041-a532-dc996e2d012a | XenServer | 5.6 FP1 | 50 | 1 |
| 5 | 50aa2194-e747-4667-8c75-0e0203826b5a | XenServer | 5.6 SP2 | 2 | 1 |
As it is, limits of Xenserver default and xenserver 5.6 sp2 were already modified to 2
Not like a UI related issue.
Regards
Mice
RE: max guest limit in hypervisor capabilities
Posted by Koushik Das <ko...@citrix.com>.
Can you check the output of this query "SELECT * FROM cloud.hypervisor_capabilities;"
Trying updating the entry for the corresponding hypervisor + version and see if it works
Thanks,
Koushik
-----Original Message-----
From: Mice Xia [mailto:mice_xia@tcloudcomputing.com]
Sent: Tuesday, July 24, 2012 8:42 AM
To: cloudstack-users@incubator.apache.org; cloudstack-dev@incubator.apache.org
Subject: max guest limit in hypervisor capabilities
Hi, All
I noticed there is a page about hypervisor capabilities in global configuration, and I tried to modify the limit to a smaller number (such as 5), but VMs can still be created even their number reached the limit.
I'm using ASF trunk, does this limit have any effect to VM creation, or just a recommended sizing info?
Thanks & Regards
Mice
RE: max guest limit in hypervisor capabilities
Posted by Koushik Das <ko...@citrix.com>.
Can you check the output of this query "SELECT * FROM cloud.hypervisor_capabilities;"
Trying updating the entry for the corresponding hypervisor + version and see if it works
Thanks,
Koushik
-----Original Message-----
From: Mice Xia [mailto:mice_xia@tcloudcomputing.com]
Sent: Tuesday, July 24, 2012 8:42 AM
To: cloudstack-users@incubator.apache.org; cloudstack-dev@incubator.apache.org
Subject: max guest limit in hypervisor capabilities
Hi, All
I noticed there is a page about hypervisor capabilities in global configuration, and I tried to modify the limit to a smaller number (such as 5), but VMs can still be created even their number reached the limit.
I'm using ASF trunk, does this limit have any effect to VM creation, or just a recommended sizing info?
Thanks & Regards
Mice