You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/03/11 12:14:42 UTC

[GitHub] [cloudstack] shwstppr commented on issue #4778: Listhostsmetric cpuallocated >100%

shwstppr commented on issue #4778:
URL: https://github.com/apache/cloudstack/issues/4778#issuecomment-796693807


   @div8cn In `listHosts` API response, we get two different values cpuallocated with and without operprovisioning applied.
   ```
   (localcloud) SBCM5> > list hosts id=4937aa4f-6f27-4dc8-af70-2335279edf27 
   {
     "count": 1,
     "host": [
       {
         "capabilities": "hvm,snapshot",
         "clusterid": "881c01ec-7a4b-4c55-af5c-d53de5880b5e",
         "clustername": "p1-c1",
         "clustertype": "CloudManaged",
         "cpuallocated": "7.09%",
         "cpuallocatedpercentage": "7.09%",
         "cpuallocatedvalue": 500,
         "cpuallocatedwithoverprovisioning": "3.55%",
         "cpuloadaverage": 0.09,
         "cpunumber": 3,
         "cpusockets": 3,
         "cpuspeed": 2350,
         "cpuused": "2.09%",
         "cpuwithoverprovisioning": "14100",
         "created": "2021-03-03T06:09:26+0000",
         "details": {
           "Host.OS": "CentOS",
           "Host.OS.Kernel.Version": "3.10.0-957.12.2.el7.x86_64",
           "Host.OS.Version": "7.6.1810",
           "com.cloud.network.Networks.RouterPrivateIpStrategy": "HostLocal",
           "secured": "true"
         },
         "events": "PingTimeout; AgentDisconnected; StartAgentRebalance; AgentConnected; ShutdownRequested; Ping; ManagementServerDown; HostDown; Remove",
         "hahost": false,
         "hostha": {
           "haenable": false,
           "hastate": "Disabled"
         },
         "hosttags": "test,ha",
         "hypervisor": "KVM",
         "id": "4937aa4f-6f27-4dc8-af70-2335279edf27",
         "ipaddress": "10.10.3.146",
         "islocalstorageactive": false,
         "lastpinged": "1970-01-19T06:13:21+0000",
         "managementserverid": "2bb26158-495c-472e-865f-d24205d2befc",
         "memoryallocated": 268435456,
         "memoryallocatedbytes": 268435456,
         "memoryallocatedpercentage": "3.69%",
         "memorytotal": 7277121536,
         "memoryused": 396492800,
         "memorywithoverprovisioning": "7277121536",
         "name": "pr4710-t3640-kvm-centos7-kvm1",
         "networkkbsread": 1131042,
         "networkkbswrite": 1,
         "outofbandmanagement": {
           "enabled": false,
           "powerstate": "Disabled"
         },
         "podid": "496029eb-411a-4736-954d-73d5a8d15e56",
         "podname": "Pod1",
         "resourcestate": "Enabled",
         "state": "Up",
         "type": "Routing",
         "ueficapability": false,
         "version": "4.15.1.0-SNAPSHOT",
         "zoneid": "3f4d015c-7d6b-4b5e-86b0-79552910f77b",
         "zonename": "pr4710-t3640-kvm-centos7"
       }
     ]
   }
   ```
   I've created PR #4795 to enable this in listHostsMetrics response as well. Should this be done for memory allocated as well?
   @rhtyd @DaanHoogland @weizhouapache thoughts?


----------------------------------------------------------------
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:
users@infra.apache.org