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

    load balance, density. Doesnt seem to be working

    Scheduled Pinned Locked Moved Advanced features
    15 Posts 4 Posters 646 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.
    • M Offline
      manilx
      last edited by manilx

      I configured the following in the load balancer plugin:
      ScreenShot 2024-04-02 at 14.17.39.png

      VM's are spread on the 2 hosts I have in the pool. I understood that they would be concentrated on one.
      What am I missing?

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        I don't remember the specifics for density, maybe you are not hitting the thresholds. Question for @Bastien-Nollet I assume 😄

        M Tristis OrisT 2 Replies Last reply Reply Quote 0
        • M Offline
          manilx @olivierlambert
          last edited by

          @olivierlambert From what I understood (or expect) is that no threshold is needed, it should place all VM's on one host.

          1 Reply Last reply Reply Quote 0
          • Tristis OrisT Offline
            Tristis Oris Top contributor @olivierlambert
            last edited by

            @olivierlambert https://xen-orchestra.com/docs/load_balancing.html#density they should stack at 1 host.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              manilx @Tristis Oris
              last edited by manilx

              @Tristis-Oris They don't. Nothing happens.

              Edit: Also "In this mode, you can choose to shutdown unused (and compatible) hosts" don't see where to set this.

              Bastien NolletB 1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                Yes but there's likely a minimal load threshold where it could be group on less machines 🤔 I don't remember the numbers though, @Bastien-Nollet will take a look, it's been a while since nobody asked for density mode 😄

                1 Reply Last reply Reply Quote 0
                • Tristis OrisT Offline
                  Tristis Oris Top contributor
                  last edited by

                  probably, documentation not very correct.

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

                    Hi,

                    There are several things that can prevent the density plan from regrouping your VMs to only one host :

                    • if your hosts can't be restarted
                    • if some of the VMs on your host don't support pool migration
                    • if your host doesn't have enough memory or CPU to correctly handle all your VMs
                    • if the migration would go against anti-affinity rules (but according to your screenshot you haven't defined anti-affinity tags, so this can't happen)

                    Though, I just noticed that there is probably an issue with the CPU and memory threshold values, which would lead to trying to do migrations even if they are not possible in terms of memory or CPU. I will investigate on that, and test that the density plan is still working correctly for us.

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

                      @manilx said in load balance, density. Doesnt seem to be working:

                      @Tristis-Oris They don't. Nothing happens.

                      Edit: Also "In this mode, you can choose to shutdown unused (and compatible) hosts" don't see where to set this.

                      You actually don't need to set this, it is not configurable. Host are shut down when all their VMs have been migrated.
                      Thank you for pointing that out, we need to update the doc on this.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        manilx @Bastien Nollet
                        last edited by

                        @Bastien-Nollet All the points you pointed out are OK here and should not be a hindrance.
                        But this is definitely not working here.

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

                          @manilx Ok, then I'll have to investigate on this to see if the density plan is still working properly for us, or if there are other things that may be preventing it from working for you.

                          1 Reply Last reply Reply Quote 0
                          • olivierlambertO Offline
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by olivierlambert

                            I'm pretty sure the reason is very likely because the host can't be restarted automatically. For that, you need to enable host-set-power-on-mode.

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              manilx @olivierlambert
                              last edited by

                              @olivierlambert How do I test this to check this?

                              1 Reply Last reply Reply Quote 0
                              • olivierlambertO Offline
                                olivierlambert Vates 🪐 Co-Founder CEO
                                last edited by

                                Old article but probably still relevant: https://xen-orchestra.com/blog/how-to-use-wake-on-lan-on-xenserver-6-2/

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  manilx @olivierlambert
                                  last edited by

                                  @olivierlambert Thx, will check this out.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post