Ask Your Question
0

How to see the "real" available resources ?

asked 2013-05-14 06:14:22 -0500

henrik16 gravatar image

Hi guys, is there any option that allows me to see what resources are available to create instances? I noticed that default flavors and project quoatas are editable and that can cause problems if we set more resources than we have like error state having 48GB RAM ! So there is a way to see what resources are "realy" available? Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
3

answered 2013-05-14 06:54:21 -0500

RomilGupta gravatar image

updated 2013-05-14 06:58:18 -0500

Hi,

Hope this will help you :

nova hypervisor-stats

It will return the statistics of the Hypervisor node example,

+----------------------+-------+
| Property             | Value |
+----------------------+-------+
| count                | 2     |
| current_workload     | 0     |
| disk_available_least | 1378  |
| free_disk_gb         | 1606  |
| free_ram_mb          | 47003 |
| local_gb             | 1606  |
| local_gb_used        | 0     |
| memory_mb            | 48027 |
| memory_mb_used       | 1024  |
| running_vms          | 0     |
| vcpus                | 28    |
| vcpus_used           | 0     |
+----------------------+-------+
edit flag offensive delete link more

Comments

Thanks... This is the only way to see that? I mean, from horizon I can't see this?

henrik16 gravatar imagehenrik16 ( 2013-05-14 08:12:43 -0500 )edit

There are any way to use resources available from other machines ? Like Network and Controller node?

henrik16 gravatar imagehenrik16 ( 2013-05-14 08:14:43 -0500 )edit

Yes, you can see this also from horizon under Admin->Hypervisors section, but in my experience I've noticed that the real ram usage, launching the "free -mh" command on the computes node, is different from what the above command says. Can you verify this?

Simone Cesar gravatar imageSimone Cesar ( 2017-04-11 09:50:23 -0500 )edit

@RomilGupta , using nova hypervisor-stats command i got

free_ram_mb = -1510

najeh gravatar imagenajeh ( 2019-01-25 07:08:33 -0500 )edit
0

answered 2019-03-07 08:20:33 -0500

SriniG gravatar image

openstack host list (it shows the hostnames/ service/ zone)

| Hostname | Service | Zone | +-----------+-------------+---------------+ | Host Name | Service | Zone | +-----------+-------------+---------------+ | contr00 | consoleauth | internal | | contr00 | scheduler | internal | | contr00 | conductor | internal | | compu00 | compute | build | | compu01 | compute | build | | compu02 | compute | build | | compu03 | compute | build | | compu04 | compute | nova |

+-----------+-------------+---------------+

openstack host show HOSTNAME_From_the_above_output

This will show each hypervisor CPU / RAM / Disk usage +-----------+----------------------------------+-----+-----------+---------+ | Host | Project | CPU | Memory MB | Disk GB | +-----------+----------------------------------+-----+-----------+---------+ | compu00 | (total) | 12 | 96518 | 2656 | | compu00 | (used_now) | 3 | 5067 | 1633 | | compu00 | (used_max) | 75 | 153600 | 2956 | | compu00 | 0ba8f04fe5a145e5a9820454c991b1c7 | 75 | 153600 | 2956 | +-----------+----------------------------------+-----+-----------+---------+

Overall usage

openstack usage list

Usage from 2019-02-07 to 2019-03-08: +---------+---------+--------------+-----------+---------------+ | Project | Servers | RAM MB-Hours | CPU Hours | Disk GB-Hours | +---------+---------+--------------+-----------+---------------+ | jenkin | 803 | 24786055.59 | 12102.57 | 763136.95 | | user | 197 | 512767089.93 | 256350.06 | 8613798.97 | +---------+---------+--------------+-----------+---------------+

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-14 06:14:22 -0500

Seen: 4,672 times

Last updated: Mar 07