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

    Tag-Based Automation: Manage VM CPU Priority via assigned tag.

    Scheduled Pinned Locked Moved Management
    37 Posts 6 Posters 2.0k 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.
    • J Offline
      john.c @johnnezero
      last edited by Danp

      @johnnezero said:

      WHAT: Automatically assigns CPU weights and I/O priorities based on assigned VM tag (i.e. replicating what vcenter did via resource pools etc.).

      It would be even better if you could split the configuration section off, so that it’s in its own conf file. Would make it easier to manage, also if this ends up being used, by Vates in the Vates VMS software. There can then be a vendor recommended configuration with the option of customer’s own workflow based, configuration.

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

        Ping @julienxovates

        1 Reply Last reply Reply Quote 0
        • johnnezeroJ Offline
          johnnezero @Danp
          last edited by

          @Danp Thanks for the correction - i.e. "Good-eye, Good-eye 🙂

          1 Reply Last reply Reply Quote 0
          • johnnezeroJ Offline
            johnnezero @john.c
            last edited by

            @john.c Great idea, and done! ("Keep 'em coming")

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              john.c @johnnezero
              last edited by john.c

              @johnnezero said:

              @john.c Great idea, and done! ("Keep 'em coming")

              Thanks for the change. By the way I meant when doing Vendor config and customer workflow config. To implement that requires nested config file. In other words the set-performance.conf, then a file for instance in a set-performance.conf.d/custom.conf (or similar). The custom.conf in the conf.d directory overrides the same property as well as section within set-performance.conf.

              johnnezeroJ 1 Reply Last reply Reply Quote 0
              • johnnezeroJ Offline
                johnnezero @john.c
                last edited by

                @john.c Great ideas (especially if Vates decides to bake something similar into XO someday) but may be getting too far into the weeds for now...

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  john.c @johnnezero
                  last edited by john.c

                  @johnnezero said:

                  @john.c Great ideas (especially if Vates decides to bake something similar into XO someday) but may be getting too far into the weeds for now...

                  That’s okay. Just putting it out there - no rush! Any way to maintain Linux good practice relocate the conf file to /usr/local/etc/ (or /etc) then keep script in /usr/local/bin.

                  johnnezeroJ 1 Reply Last reply Reply Quote 0
                  • J Offline
                    john.c
                    last edited by john.c

                    @johnnezero Also there’s shortcut directories including one called cron.hourly, you can place a symlink (or hard link) to the script there. Cron will then execute the script without you needing to alter the crontab file.

                    Just drop .sh for using the shortcut directory as it will not run there otherwise.

                    johnnezeroJ 2 Replies Last reply Reply Quote 0
                    • johnnezeroJ Offline
                      johnnezero @john.c
                      last edited by

                      @john.c Yet another awesome idea - adding it to the "ToDo List", thanks!

                      1 Reply Last reply Reply Quote 0
                      • johnnezeroJ Offline
                        johnnezero @john.c
                        last edited by johnnezero

                        @john.c Wandered off through the weeds (with Claude/AI that us), and got it done. 🙂

                        1 Reply Last reply Reply Quote 0
                        • johnnezeroJ Offline
                          johnnezero @john.c
                          last edited by

                          @john.c Also done! Thanks for all the great input, keep em' coming...

                          P 1 Reply Last reply Reply Quote 0
                          • P Offline
                            Pilow @johnnezero
                            last edited by

                            @johnnezero this could be a plugin in XOA !

                            johnnezeroJ 1 Reply Last reply Reply Quote 0
                            • johnnezeroJ Offline
                              johnnezero @Pilow
                              last edited by

                              @Pilow Sounds like an awesome idea. Send any details you may have on how to make plugins (if you know how that is).
                              Adding to the ToDo list - Thanks!

                              J 1 Reply Last reply Reply Quote 0
                              • J Offline
                                john.c @johnnezero
                                last edited by john.c

                                @johnnezero said:

                                @Pilow Sounds like an awesome idea. Send any details you may have on how to make plugins (if you know how that is).
                                Adding to the ToDo list - Thanks!

                                @johnnezero said:

                                @Pilow Sounds like an awesome idea. Send any details you may have on how to make plugins (if you know how that is).
                                Adding to the ToDo list - Thanks!

                                Looks like I can help out again just tracked down this past thread on the forums.

                                https://xcp-ng.org/forum/topic/7202/how-do-i-create-a-new-plugin

                                How’s your JavaScript (Typescript), JSON etc? These are the languages needed to develop plugins for Xen Orchestra.

                                johnnezeroJ 2 Replies Last reply Reply Quote 0
                                • johnnezeroJ Offline
                                  johnnezero @john.c
                                  last edited by

                                  @john.c Thanks much, looking into it.
                                  "Open-Source for the Win!" 🙂

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    john.c @johnnezero
                                    last edited by

                                    @johnnezero said:

                                    @john.c Thanks much, looking into it.
                                    "Open-Source for the Win!" 🙂

                                    Your welcome!

                                    1 Reply Last reply Reply Quote 0
                                    • tjkreidlT Online
                                      tjkreidl Ambassador @johnnezero
                                      last edited by

                                      @johnnezero It would be also interesting to take UMA/NUMA into account as VMs -- in particular, VMs with vGPUS -- can run much more efficiently if they do not cross memory bank boundaries that span more than one CPU instance. On some Linux systems -- not sure about the one hosting XCP-ng -- you can even disable NUMA. Just an additional thought here. I published a number of years ago a three-part series "A Tale of Two Servers" discussing a number of related optimizations but alas, the Citrix blogs were eliminated and I'm snot sure where copies of these articles exist anymore. But there are plenty of articles on this, in particular by Frank Denneman, and also ones like the following;
                                      https://indico.cern.ch/event/304944/contributions/1672535/attachments/578723/796898/numa.pdf
                                      https://docs.xenserver.com/en-us/xenserver/9/numa.html

                                      J johnnezeroJ 2 Replies Last reply Reply Quote 0
                                      • J Offline
                                        john.c @tjkreidl
                                        last edited by john.c

                                        @tjkreidl said:

                                        @johnnezero It would be also interesting to take UMA/NUMA into account as VMs -- in particular, VMs with vGPUS -- can run much more efficiently if they do not cross memory bank boundaries that span more than one CPU instance. On some Linux systems -- not sure about the one hosting XCP-ng -- you can even disable NUMA. Just an additional thought here. I published a number of years ago a three-part series "A Tale of Two Servers" discussing a number of related optimizations but alas, the Citrix blogs were eliminated and I'm snot sure where copies of these articles exist anymore. But there are plenty of articles on this, in particular by Frank Denneman, and also ones like the following;
                                        https://indico.cern.ch/event/304944/contributions/1672535/attachments/578723/796898/numa.pdf
                                        https://docs.xenserver.com/en-us/xenserver/9/numa.html

                                        If you remember the URL and date maybe try the wayback machine of Internet Archive. They’re known to archive sites and articles wherever they can, may hold a copy that’s accessible.

                                        tjkreidlT 1 Reply Last reply Reply Quote 0
                                        • johnnezeroJ Offline
                                          johnnezero @tjkreidl
                                          last edited by johnnezero

                                          @tjkreidl Wow that all sounds pretty intense - will keep it in mind. Thanks much!

                                          1 Reply Last reply Reply Quote 0
                                          • tjkreidlT Online
                                            tjkreidl Ambassador @john.c
                                            last edited by

                                            @john.c Not found with the Wayback Machine, alas. Still not finding it anywhere else, but will keep looking!
                                            It's a crying shame Citrix didn't preserve the treasure trove of old community blogs.

                                            J 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