XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Migrations after updates

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 5 Posters 50 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Online
      acebmxer
      last edited by acebmxer

      While testing the latest 8.3 updates (may have been happening before) I noticed my vms will migrate back over to host 1 when it come back online so both host are running equal ran/cpu usage (4 vms) 2 on each host. When i finish updating host 2 and it come back online i expect 2 of vms to migrate back to host2. They do not, but will if i manually migrate them.

      My load balancer settings... Is this expected behavior or should i modify my settings?

      Screenshot 2026-03-05 151603.png

      Screenshot 2026-03-05 151835.png

      D Bastien NolletB 2 Replies Last reply Reply Quote 0
      • D Offline
        DustinB @acebmxer
        last edited by

        @acebmxer Using performance mode should migrate your VM's so all systems are equally "performant" the different modes are outlined here https://docs.xcp-ng.org/management/vm-load-balancing/

        As to why your VMs not migrate, I would only be guessing - anyways my guess is that it only polls the system every so often and if your systems are performing well enough nothing gets moved...

        1 Reply Last reply Reply Quote 0
        • G Offline
          Greg_E
          last edited by

          This reminds me that I have some work to do on my policy, mostly for anti-affinity.

          1 Reply Last reply Reply Quote 0
          • florentF Offline
            florent Vates 🪐 XO Team
            last edited by

            ping @bastien-nollet

            1 Reply Last reply Reply Quote 0
            • Bastien NolletB Offline
              Bastien Nollet Vates 🪐 XO Team @acebmxer
              last edited by

              Hi @acebmxer,

              I think the reason for this is a feature we recently added that prevents VMs from moving back-and-forth between hosts. VMs now have a cooldown (default 30min) between 2 load-balancer-triggered migrations

              Can you try to set the migration cooldown to 0 and tell us if it fixes this behaviour? (in the "Advanced" section of the load balancer configuration)

              A 1 Reply Last reply Reply Quote 0
              • A Online
                acebmxer @Bastien Nollet
                last edited by acebmxer

                @Bastien-Nollet

                I was playing around with the settings last night and the only way i could get behavior i was looking for was to set free memory limit.

                I did try your suggestion this morning. I reconfigured settings back to those in screenshot. Applied your recommendation and then but host 2 in maintenance mode. waited a few minutes. Took out of maintenance mode and vms still sitting on host 1.

                I dont seem to have this issue on my work production servers. I guess to little vms and to little load in the home lab. I think in the past i may not have noticed it as I would be doing some other work in a vm or two generating load.

                Unless other have different recommendations i think having free memory set to half the host ram will keep this even. Are there any unforeseen issues i should be aware in this config for home lab?

                I am used to VMware just spreading vms across all host evenly then shuffling around the load based off cpu accordingly.

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post