<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nova has stayed out of doing this auto-migrations so far.  You are requesting a very specific type of overallocation of resources, as in don't count machines that are shutoff when scheduling, but then automatically move them if they are turned back on.  It is an interesting idea, but not something we have discussed implementing.<div><br></div><div>You can generally over-allocate quite a bit, assuming you have swap enabled, and if some of your machines are not fully allocating their ram internally (which is usually the case) you should be fine. In deployments I have done when performance is really important, we simply do not over-allocate at all.</div><div><br></div><div>Keep in mind that the main use case of OpenStack is to run a cloud system, not a virtualization system. In a cloud, you very rarely stop machines and start them later, you generally delete the machine completely when you are done and launch a new one when you need it.  For this reason the particular use-case you are looking for hasn't really been considered.</div><div><br></div><div>Vish</div><div><br></div><div><div><div>On Apr 12, 2012, at 9:50 PM, Văn Đình Phúc wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> 
 
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> 
<meta name="GENERATOR" content="MSHTML 8.00.6001.18702"> 
<div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"> 
<div><font color="#000000" size="3" face="Times New Roman"><span id="result_box" lang="en"><span class="hps alt-edited">Ignoring</span> <span class="hps">issues  
of</span> <span class="hps">Ram</span><span>.</span> <span class="hps">I</span>  
<span class="hps">have</span> <span class="hps">a</span> <span class="hps">number  
of</span> <span class="hps">questions</span> <span class="hps">as</span> <span class="hps">the following</span> <span class="hps">model:</span></span></font></div> 
<div><font color="#000000" size="3" face="Times New Roman"><span lang="en"><span class="hps"></span></span></font> </div> 
<div><font color="#000000" size="3" face="Times New Roman">My node-1's  
resource as the following:</font></div> 
<ul> 
  <li><font color="#000000" size="3" face="Times New Roman">CPU : 4 core</font></li> 
  <li><font color="#000000" size="3" face="Times New Roman">RAM: 4  
GB.</font></li></ul><p><font color="#000000" size="3" face="Times New Roman">Now , My  
Node-1 is hosting 4 instances:</font></p> 
<ul> 
  <li>3 instance: (each VM: 1 core CPU, 2 GB ram,..). <br>2  
  instance(i-00000001, i-00000002) is turn of and 1 instance(i-00000003) is  
  running.</li> 
  <li>1 instance : (1 core CPU, 1 GB ram). <br>It is  
running.(i-00000004)</li></ul><p><font color="#000000" size="3" face="Times New Roman">I request new ínstance by  
the euca-run-instance command. My new instance ( i-00000005) is located on the  
node 1. This is the problem for the nova-scheduler.</font></p><p><font color="#000000" size="3" face="Times New Roman">What is happen ? If I  
reboot 2 instances : i-00000001,i-00000002.</font></p><p>How do we manage this problem in Openstack ? </p><p><font color="#000000" size="3" face="Times New Roman">I think that: My 2  
instances (i-00000001 , i-00000002) should be migrated to the rest available  
resources as node-2 and node-3.</font></p><p><font color="#000000" size="3" face="Times New Roman">If not, it's actually very  
difficult to manage and reboot  the instances which are turned off.  
And their resources-allocated will be reused for the new instances.</font></p><font color="#000000" size="3" face="Times New Roman"> 
</font><div><font color="#000000" size="3" face="Times New Roman"></font><font color="#993300" size="3" face="Times New Roman">----- <i><b>Thông  
điệp gốc :</b></i> -----</font><font color="#000000" size="3" face="Times New Roman"> 
<div style="BACKGROUND: #f0b070"><b>Gửi từ   : </b><a href="mailto:vishvananda@gmail.com">Vishvananda Ishaya</a> <font color="#0000ff">[<a href="mailto:vishvananda@gmail.com">vishvananda@gmail.com</a>]</font> </div> 
<div><b>Gửi lúc  : </b>12/04/2012 11:43 PM</div></font></div> 
<div style="font-color: " black;="" background:="" #e4e4e4=""><b>Gửi tới  :  
</b><a href="mailto:openstack@lists.launchpad.net;vishvananda@gmail.com">openstack@lists.launchpad.net;vishvananda@gmail.com</a></div> 
<div><b>Chủ đề : </b>Re: [Openstack] The Scheduling feature when reboot the  
instance</div> 
<div> </div>No this does not exist.  If you are going to overprovision  
ram, you should probably make sure that you have swap enabled on your host. 
<div><br></div> 
<div>Vish</div> 
<div><br></div> 
<div> 
<div> 
<div>On Apr 12, 2012, at 4:10 AM, Văn Đình Phúc wrote:</div><br class="Apple-interchange-newline"> 
<blockquote type="cite"> 
  <meta name="GENERATOR" content="MSHTML 8.00.6001.18702"> 
  <div bgcolor="#e7efff"> 
  <div>Hi.</div> 
  <div>I'm using Openstack (2011.3  
  (2011.3-nova-milestone-tarball:tarmac-20110922115702-k9nkvxqzhj130av2) with 3  
  Compute nodes.</div> 
  <div>My scheduling option is default.</div> 
  <div>I have the problem as the following steps:</div> 
  <ul> 
    <li>Compute node 1 is installed the modules: nova-api,  
    nova-compute and nova-network.  
    </li><li>The resource of node-1 max is fitfor 3 instances  
    (m1.small): i-00000001,   i-00000002, i-00000003.  
    </li><li>I turn off  i-00000001.  
    </li><li>and then I request new ínstance by the euca-run-instance command , My  
    new instance ( i-00000004) is located on the node 1.  
    </li><li>The resources: RAM , CPU,.. of node-2 and node-3 is available.  
 
    </li><li>finally, I reboot the i-00000001.What is happen? the i-00000001 is  
    rebooted on the node-1 , and It's shutdown off after reboot.I checked the  
    libvirt's log :<br><br>"Failed to allocate 2147483648 B: Cannot  
    allocate memory<br>2012-04-12 16:11:50.530: shutting down"<br></li></ul><p>So , Do Openstack have the sheduling feature when rebooting the  
  instance ? </p><p>Example: As above , My instance (i-00000001) will  
  be migrated to node-2 or node-3 when the  
  resource of node-1 is not available.</p> 
  <div><span><phucvdbmail.gif></span></div><font color="#000000" size="3" face="Times New Roman"> 
  <div> </div></font> 
  <div style="LINE-HEIGHT: 15pt; MARGIN: 0in 0in 0pt"><b><span style="COLOR: blue; mso-fareast-language: EN-US">Văn Đình  
  Phúc<br></span></b><i><span style="COLOR: blue; mso-fareast-language: EN-US">Manager -  
  Cloud Team</span></i></div> 
  <div style="LINE-HEIGHT: 15pt; MARGIN: 0in 0in 0pt"><i><span style="COLOR: blue; mso-fareast-language: EN-US"><span style="COLOR: blue; mso-fareast-language: EN-US">Techno Department  
  </span></span></i></div> 
  <div> 
  <div style="MARGIN: 0cm 0cm 0pt"><i><span style="COLOR: blue; mso-fareast-language: EN-US"><span style="mso-bookmark: _Toc216859802"><i style="mso-bidi-font-style: normal"><span style="COLOR: blue; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-weight: bold">Bkav  
  Specialization Division</span></i></span> </span></i></div></div> 
  <div><span style="COLOR: blue; mso-fareast-language: EN-US"></span> </div> 
  <div><span style="COLOR: blue; mso-fareast-language: EN-US">Office:  Bkav  
  Building - Yen Hoa New Town, Cau Giay Dist, Hanoi</span><span style="mso-fareast-language: EN-US"><o:p></o:p></span><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-no-proof: yes"><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><v:shape style="WIDTH: 24pt; HEIGHT: 13.5pt; VISIBILITY: visible; mso-wrap-style: square" id="Picture_x0020_2" type="#_x0000_t75" o:spid="_x0000_i1025" o:bullet="t"><v:imagedata src="file://C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/file:///C:/DOCUME~1/GiangVT/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.gif" o:title="bakdsjfplekgwaxkgqbhbhmvtlvwrmrvkqxeepjhvfdmjjewhthnhilkrxanxrelqajavubjfiaxebsjmjgsbfmxganqffrmlcydcsvxpnawskrhmutgpnkpwopudobptikjrfogdeairwyglcrqepnybcp"></v:imagedata></v:shape></span><v:shape style="WIDTH: 24pt; HEIGHT: 13.5pt; VISIBILITY: visible; mso-wrap-style: square" id="Picture_x0020_2" type="#_x0000_t75" o:spid="_x0000_i1025" o:bullet="t"><v:imagedata src="file://C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/C:/eOffice/signatures/file:///C:/DOCUME~1/GiangVT/LOCALS~1/Temp/msohtmlclip1/01/clip_image001.gif" o:title="bakdsjfplekgwaxkgqbhbhmvtlvwrmrvkqxeepjhvfdmjjewhthnhilkrxanxrelqajavubjfiaxebsjmjgsbfmxganqffrmlcydcsvxpnawskrhmutgpnkpwopudobptikjrfogdeairwyglcrqepnybcp"></v:imagedata></v:shape>  
  </div> 
  <div> 
  <div><span style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: blue; FONT-SIZE: 12pt; mso-fareast-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-bidi-language: AR-SA">Tel:        
  (84-4) 3763.2552 </span></div></div> 
  <div><span style="COLOR: blue; mso-fareast-language: EN-US">Mobile: 0169  
  4702 388</span> </div> 
  <div> 
  <div> 
  <div style="MARGIN: 0cm 0cm 0pt"><b><span style="COLOR: #ff8000; mso-fareast-language: EN-US">____________________________________________  
  </span></b><span style="mso-fareast-language: EN-US"><o:p></o:p></span></div><a href="http://www.bkav.com.vn/"></a></div></div> 
  <div> 
  <div><font color="#804000"><span style="COLOR: maroon"><span style="COLOR: maroon; FONT-SIZE: 12pt"> 
  <div style="MARGIN: 0cm 0cm 0pt"><span style="COLOR: maroon; mso-fareast-language: EN-US">Do your best, the rest will  
  come ! </span><span style="COLOR: #804000; mso-fareast-language: EN-US"> </span><span style="mso-fareast-language: EN-US"><o:p></o:p></span></div> 
  <div style="MARGIN: 0cm 0cm 0pt"><span style="COLOR: maroon; mso-fareast-language: EN-US">Hãy làm việc hết mình,  
  những điều tốt đẹp sẽ đến với bạn ! </span><span style="mso-fareast-language: EN-US"><o:p></o:p></span></div></span></span></font></div> 
  <div><font color="#804000"><span style="COLOR: maroon"><strong><b><span style="COLOR: maroon; FONT-SIZE: 12pt"></span></b></strong></span></font> </div> 
  <div><font color="#804000"><span style="COLOR: maroon"><span style="COLOR: maroon; FONT-SIZE: 12pt"><span class="apple-style-span"><i><span style="LINE-HEIGHT: 115%; COLOR: black; FONT-SIZE: 9pt"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-bidi-language: AR-SA"><strong>Disclaimer:</strong></span><i><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-language: EN-US; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-bidi-language: AR-SA">  
  This e-mail and any files transmitted with it are confidential and may contain  
  privileged information. It is intended solely for the use of the individual to  
  whom it is addressed and others authorized to receive it. If you are not the  
  intended recipient you are notified that disclosing, copying, distributing or  
  taking any action in reliance on the contents of this information is strictly  
  prohibited. If you have received this message in error, please notify the  
  sender immediately by reply e-mail and delete completely this e-mail from your  
  system, without reproducing, distributing or retaining  
  copies.</span></i></span></i></span></span></span></font></div></div> 
  <div><font size="3" face="Times New Roman"></font> </div> 
  <div></div></div>_______________________________________________<br>Mailing  
  list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post  
  to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe  
  : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More  
  help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></div></blockquote></div><br></div></body></html>