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

    Questions: Placing a new VM in a suitable pool/How is a host chosen ?

    Scheduled Pinned Locked Moved Xen Orchestra
    2 Posts 2 Posters 200 Views 1 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.
    • S Offline
      skurtin
      last edited by

      Hello,

      I was tasked to automate some processes involving XO. After gaining insight into the API I am now stuck with the question how to choose a suitable pool for a new VM. We have multiple pools, mainly for separation purpose. Using the WebUI I can choose a pool based on my gut feeling, but then the host is chosen automagically. Therefor my both questions:
      What would be a good method to pick a pool for a new VM ? Would checking the RAM allocation be enough ? Would it be a good way to gather all metrics from all hosts and sum them up ?
      How is a host inside a pool chosen ? What factors are taken into account ? I have no insight into the process/algo.

      Thank you in advance.
      Best regards.

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

        1. To pick a pool: it's up to you to decide, depending on available pool storage capacity, speed. Same for compute and network. It's very very specific to your own needs, there's no universal rules.
        2. Host selection for a VM: it's not decided by XO but by XAPI (except if you specifically ask to boot on a host). IIRC, it's a mix of load and memory available, but if you want to dig further, it should be written in the XAPI code somewhere 🙂
        1 Reply Last reply Reply Quote 0
        • First post
          Last post