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

    Perf-Alert: Plugin - CPU-usage is per core

    Scheduled Pinned Locked Moved Management
    11 Posts 3 Posters 527 Views 3 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.
    • olivierlambertO Offline
      olivierlambert Vates πŸͺ Co-Founder CEO
      last edited by

      Hi!

      I'm not sure to get it πŸ€”

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        KPS Top contributor @olivierlambert
        last edited by

        @olivierlambert
        The alert is already triggered, when ONE vCore is at >95%
        IMHO, it should trigger, when the VM usage exceeds 95% on all its cores

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates πŸͺ Co-Founder CEO
          last edited by

          Just to double check I get it:

          1. You configure the perf alert plugin to report VM usage at more than 95%
          2. You have a VM with 16 cores having only one core at 100%, the rest is almost idle.
          3. You do NOT want to be alerted in that case, only if ALL cores are beyond 95%

          Is that correct?

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            KPS Top contributor @olivierlambert
            last edited by KPS

            @olivierlambert
            Correct - nearly…
            When the total usage is >95% inside the vm

            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates πŸͺ Co-Founder CEO
              last edited by

              Not sure to get the difference between "ALL cores are beyond 95%" vs "total usage >95%", isn't the same thing?

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                KPS Top contributor @olivierlambert
                last edited by

                @olivierlambert
                Nearly, but no:

                Take a 2-core system with

                • core 1 at 100%
                • core 2 at 91%

                Total >95%, but not all cores >95%

                1 Reply Last reply Reply Quote 0
                • olivierlambertO Offline
                  olivierlambert Vates πŸͺ Co-Founder CEO
                  last edited by olivierlambert

                  Ah yes, you mean the average total CPU usage then πŸ™‚ Got it, thanks!

                  edit: or the sum, like if you have 8 cores, 800% would be the max and the threshold will be 760% (equivalent to 95 per 100)

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates πŸͺ Co-Founder CEO
                    last edited by

                    @Bastien-Nollet can you check the current logic for CPU alerts? I thought initially it was like @KPS described πŸ€”

                    1 Reply Last reply Reply Quote 0
                    • Bastien NolletB Offline
                      Bastien Nollet Vates πŸͺ XO Team
                      last edited by

                      @olivierlambert I'm not familiar with the perf-alert plugin but it seems that @KPS is right, see : https://github.com/vatesfr/xen-orchestra/blob/7882debe7adc7d4945da7e27d9825b1ffcf78ca9/packages/xo-server-perf-alert/src/index.js#L31

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Offline
                        olivierlambert Vates πŸͺ Co-Founder CEO
                        last edited by

                        Okay so it will be more logical to use the same logic than with the Load balancer, where we compute a total of all vCPUs πŸ™‚

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