can someone explain load average in flower?
Asked Answered
V

2

20

I use flower to monitor my rabbitmq queues, I am not able to understand how load average is calculated, if someone can explain then that would be of great help.
I've a quad core processor .
Thank You.

Venturous answered 12/5, 2016 at 15:1 Comment(2)
Did you ever find it?Is
Looking through the celery & flower source, it ultimately comes from here github.com/celery/celery/blob/…Graduation
A
14

I understand that this question has been asked for awhile and that it's probably figured out but for those who are new here is what I found:

As Stephen pointed out in the comments load average is defined as follows :

def _load_average():
    return tuple(ceil(l * 1e2) / 1e2 for l in os.getloadavg())

The source file is here.

And os.getloadavg() as documented here:

system run queue averaged over the last 1, 5, and 15 minutes

Therefore the three numbers in the load average in the flower dashboard is just the system's queue load average multiplied by 100 (percentage, I am guessing) over the last 1, 5, and 15 minutes, respectively.

Apothecium answered 6/3, 2018 at 16:34 Comment(2)
It multiplied by 100 only for the ceiling and right after it divides by 100. That means the the value we see it the value itself, not multiplied by 100Duisburg
So queue load average is the average number of tasks in the queue ?Tallage
B
1

It denoted the load for specific worker/worker system in three different timelines. Consider this is the load average you are seeing in screen, 0.44, 0.28, 0.25, then it explains this way.

  1. last minute (0.44)
  2. last five minutes (0.28)
  3. the last fifteen (0.25).

This article will give complete clarity on this topic.

Benefit answered 5/10, 2021 at 12:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.