rabbitmq-top plugin

332 views
Skip to first unread message

user6785

unread,
Mar 30, 2015, 1:31:37 PM3/30/15
to rabbitm...@googlegroups.com
Hi Team , Simon 

We looked at the rabbitmq-top plugin https://github.com/simonmacmullen/rabbitmq-top  , its very interesting , thanks for writing this up .

couple of questions regarding it :

1. what is Reduction/seconds parameters means , how does it relates to CPU stats ( what's the formula to calculate it ) ?
2. what is 'Type' column ? for example 'what does 'registered' means in 'Type' column ?
     

actually we are looking to get some CPU related stats , currently there is no such stats available via the existing HTTP API . if this plugins works for us it will be very useful to get CPU stats along with memory/pending messages/FD threshold/socket threshold and many more via the HTTP API .. this will very helpful to build monitoring tool which is currently based on the HTTP API calls .


Michael Klishin

unread,
Mar 30, 2015, 2:19:38 PM3/30/15
to rabbitm...@googlegroups.com, user6785
On 30 March 2015 at 20:31:41, user6785 (ashis...@gmail.com) wrote:
> 1. what is Reduction/seconds parameters means , how does it
> relates to CPU stats ( what's the formula to calculate it ) ?

Reductions are "work currency" in the Erlang runtime. Processes are given a "reduction budget"
which they "spend" by doing work. This is to ensure other processes do not experience starvation
and the scheduler is fairer (more balanced).

See [1], for example. 

> 2. what is 'Type' column ? for example 'what does 'registered'
> means in 'Type' column ?

This is in no way related to runtime performance, don't worry about it.
If you are really curious, see section 12.3 on [2].

1. http://jlouisramblings.blogspot.ru/2013/01/how-erlang-does-scheduling.html
2. http://www.erlang.org/doc/reference_manual/processes.html
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


user6785

unread,
Apr 12, 2015, 10:34:59 AM4/12/15
to rabbitm...@googlegroups.com, ashis...@gmail.com
Thanks Michael .

It not very clear as to what should be the amount of reduction used by various different process within the Erlang VM ( rabbitmq broker ) and what should be the correct threshold for reduction per process .

what we are looking for is to get some kind of CPU stats used by the broker to have some sense of the core utilization on a host .

Michael Klishin

unread,
Apr 12, 2015, 11:02:42 AM4/12/15
to user6785, rabbitm...@googlegroups.com
Then use tools such as top, vmstat, etc. reductions are relative units. You can simply use tools that are not Erlang-specific.

MK
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages