[nova] live migration with the NUMA topology
alifshit at redhat.com
Thu Dec 12 16:17:04 UTC 2019
On Thu, Dec 12, 2019 at 9:01 AM Matt Riedemann <mriedemos at gmail.com> wrote:
> On 12/12/2019 7:24 AM, Brin Zhang(张百林) wrote:
> > I have a question, if the destination server's NUMA topology (e.g.
> > nume_node=2) < source server's NUMA topology (e.g. numa_noed=4) in a
> > instance. If I am living migration *this* instance, what will be
> > happened? Rollback and keep the instance to the original status? Or make
> > it to ERROR? In that SPEC I had not find the details about the red
> > description in "Third, information about the instance’s new NUMA
> > characteristics needs to be generated on the destination (an
> > InstanceNUMATopolgy object is not enough, more on that later)", or lack
> > of careful reading J. Anyway, I want to know how to deal with this NUMA
> > topology during live migration?
> Artom can answer this in detail but I would expect the claim to fail on
> the dest host here:
> Which will be handled here in conductor:
> And trigger a "reschedule" to an alternate host. If we run out of
> alternates then MaxRetriesExceeded would be raised:
> And handled here as NoValidHost:
> The vm_state should be unchanged (stay ACTIVE) but the migration status
> will go to "error".
> Artom has been working on functional tests  but I'm not sure if they
> cover this kind of scenario - I'd hope they would.
> Of course the simpler answer might be, and it would be cool if it is,
> the scheduler should not select the dest host that can't fit the
> instance so we don't even get to the low-level compute resource claim.
Yeah, the scheduler (unless it's bypassed, obviously) shouldn't pick a
host where the instance can't fit. And once we're on the host, if the
claim fails (either because the scheduler was bypassed or another
instance raced with ours and took our resources), we'll keep
rescheduling until we can't, and then the migration fails. So what
Matt wrote above is correct as well.
>  https://review.opendev.org/#/c/672595/
Software Engineer, OpenStack Compute DFG
More information about the openstack-discuss