<div dir="ltr"><div>Hi all, </div>We want to support xbzrle compress for live migration.<div><br></div><div>Now there are 3 options,</div><div>1. add the enable flag in nova.conf. </div><div>    such as<span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)"> </span><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)">a dedicated 'live_migration_compression=on|off" parameter in </span>nova.conf.</div><div>    And nova simply enable it.</div><div>    seems not good.</div><div>2.  add a parameters in live migration API.</div><div><br></div><div><div>A new array compress will be added as optional, the json-schema as below::</div><div><br></div><div>  {</div><div>    'type': 'object',</div><div>    'properties': {</div><div>      'os-migrateLive': {</div><div>        'type': 'object',</div><div>        'properties': {</div><div>          'block_migration': parameter_types.boolean,</div><div>          'disk_over_commit': parameter_types.boolean,</div><div>          'compress': {</div><div>            'type': 'array',</div><div>            'items': ["xbzrle"],</div><div>          },</div><div>          'host': host</div><div>        },</div><div>        'additionalProperties': False,</div><div>      },</div><div>    },</div><div>    'required': ['os-migrateLive'],</div><div>    'additionalProperties': False,</div><div>  }</div></div><div><br></div><div><br></div><div>3. <span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)"> </span><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)">dynamically choose when to activate</span><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)"> xbzrle compress for live migration.</span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)">     This is the best. </span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)">    </span><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)"> xbzrle</span><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)"> really wants to be used if the network is not able to keep up with the dirtying rate of the guest RAM.</span></div><div><span style="color:rgb(0,0,0);font-family:sans-serif;background-color:rgb(229,236,249)">     But how do I check the coming migration fit this situation?</span></div><div><p style="margin-top:0px;margin-bottom:0px;padding-top:0.5em;padding-bottom:0.5em;color:rgb(0,0,0);font-family:sans-serif"><span class="" style="white-space:pre;font-family:'Lucida Console','Lucida Sans Typewriter',Monaco,monospace"> </span></p></div><div><br></div><div>REF:</div><div><a href="https://review.openstack.org/#/c/248465/">https://review.openstack.org/#/c/248465/</a><br></div><div><br></div><div><br></div><div>BR</div><div>Shaohe Feng</div></div>