Ask Your Question
0

monitoring compute nodes

asked 2011-08-19 14:08:43 -0500

gobexe gravatar image

I was wondering what would be the proper way of monitoring the utilization of compute nodes. Specifically, I am interested in how many instances are running on a node and what the actual CPU and memory utilization of the instances are.

I figured that one could do it by doing "ps ax|grep kvm", grab the PIDs and look at /proc/[pid] for the relevant information. Is there a more elegant way to do this?

Thanks

edit retag flag offensive close merge delete

7 answers

Sort by » oldest newest most voted
0

answered 2011-08-19 20:45:54 -0500

if you can get to the OS, you can use revealcloud http://copperegg.com/free . It will show you graphical display of all your linux instances for CPU, Memory, Load etc that will update every few seconds.

edit flag offensive delete link more
0

answered 2011-08-19 14:18:06 -0500

blamar gravatar image

Currently I don't believe OpenStack Nova has any features which allows for easy/convenient monitoring of compute hosts. If you're using KVM/libvirt I might suggest looking for KVM-specific monitoring/mangement tools such as: http://www.linux-kvm.org/page/Management_Tools (http://www.linux-kvm.org/page/Managem...)

I know that probably doesn't help you out a lot, but I've never found anything in my past searches and this is not an area of expertise for me.

edit flag offensive delete link more
0

answered 2011-08-24 12:35:34 -0500

gobexe gravatar image

Thanks Brian Lamar, that solved my question.

edit flag offensive delete link more
0

answered 2011-08-24 12:35:15 -0500

gobexe gravatar image

Here is, I think, the proper way to go about it.

Thank you everyone for your inputs.

#!/usr/bin/python from nova.virt import connection as virt_connection conn = virt_connection.get_connection(read_only=True) instances = conn.list_instances() for i in instances: print(i,conn.get_info(i))

edit flag offensive delete link more
0

answered 2011-08-22 13:32:13 -0500

blamar gravatar image

Recently Nova removed all pieces of code which used the Python twisted library because from what I understand there was nobody maintaining the code and it did not reliably work. I don't have direct experience with instancemonitor but I do know what it was removed and will not be in the next OpenStack Nova release.

edit flag offensive delete link more
0

answered 2011-08-22 07:05:39 -0500

gobexe gravatar image

nova-instancemonitor sounds to be closer to what I need. However, I could not find any documentation about it on the net. Where do I start/how do I use it?

Thanks.

edit flag offensive delete link more
0

answered 2011-08-21 22:54:57 -0500

guidodavide-dallolio gravatar image

I'm using/testing some features in nova-instancemonitor.

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: 2011-08-19 14:08:43 -0500

Seen: 62 times

Last updated: Aug 24 '11