<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">hi,all<div>   </div><div> I want to change the default scheduling algorithm of nova, as follows:</div><div> when you use  command like this  <span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: 13px; line-height: normal; "><i>euca-run-instances -k test -t m1.tiny ami-tiny -n1</i></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: 13px; line-height: normal; "><i>                         </i></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: 13px; line-height: normal; "><i>euca-run-instances -k test -t m1.small ami-small -n2</i></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: 13px; line-height: normal; "> <b> </b>I want to process the two command at the same time(now it is treated separately,after the first command , the instance specified by the first command is running,and then the following command will be executed),I mean, to handle the information got from the commands at the same time. That is first to find the most reasonable host for each instance whatever it is from the first command or the second command ,and then create the instances on the hosts.More exactly, to find a way to locate the instances </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: 13px; line-height: normal; ">which is specified by the above commands at the same time on the physical machines so that </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: small; line-height: normal; ">we will get the least physical machines used.</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: small; line-height: normal; ">  But now I am confused about the process with the command  from api to amqp to scheduler, I wonder whether anybody can give me  any help on that ?</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: small; line-height: normal; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: small; line-height: normal; "><br></span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-size: small; line-height: normal; ">Thanks a lot!</span></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>