Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can someone explain load average in flower?

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.

like image 497
Nagraj93 Avatar asked May 12 '16 15:05

Nagraj93


1 Answers

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.

like image 175
Allen Avatar answered Oct 18 '22 01:10

Allen