Ask Your Question
0

How does the controller know which host to launch an instance on?

asked 2014-01-08 18:32:29 -0500

joethecoder gravatar image

updated 2014-01-22 15:12:36 -0500

Evgeny gravatar image

Hi,

I am new to OpenStack. Trying to install a basic two node OpenStack on Ubuntu. One controller and one compute node. When I launch an instance from the command line on the controller after installing all the services, how does it know on which physical host the instance has to be launched? I am referring to OpenStack installation guide on Ubuntu. I do not see any command line parameter saying that this instance has to be launched on this host. Thanks!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-01-09 02:57:45 -0500

The "nova boot" command is simply a wrapper for the API. In other words, it can be used from any machine that has access to the environment. When the command is issued to the API, nova uses it's built in scheduler to determine the placement of the instance on a hypervisor. There are many different scheduler configurations, e.g. use the hypervisor with the fewest instances running, or find the hypervisor with the most memory free. Executing "nova boot" on a specific compute host will not guarantee its placement on that specific node.

edit flag offensive delete link more

Comments

thanks for the clarification

joethecoder gravatar imagejoethecoder ( 2014-01-09 18:16:00 -0500 )edit
0

answered 2014-01-08 18:47:22 -0500

joethecoder gravatar image

I guess "nova boot" command is to be run on the compute node, and not the controller. I assumed that all the management commands would run on the controller. If that is correct, sorry for the noise.

edit flag offensive delete link more

Comments

You need to run on the controller. Compute nodes are registered in the Controller. Once you start nova boot command request will go to compute nodes. If there are mutliple compute nodes which nodes the request is sent is based on many parameters. Hope this clarfies

dheeru gravatar imagedheeru ( 2014-01-08 19:51:33 -0500 )edit

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: 2014-01-08 18:32:29 -0500

Seen: 87 times

Last updated: Jan 09 '14