Created
August 29, 2013 16:53
-
-
Save ferd/6380600 to your computer and use it in GitHub Desktop.
show all log info related to lager's mailbox size over an entire cluster sorted by message_queue_len, including node names.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1> recon_lib:time_fold( | |
| N=1000, Delay=10000, | |
| fun(_) -> {lists:usort(fun({_,X}, {_,Y}) -> X > Y end, | |
| element(1, recon:named_rpc( | |
| fun() -> erlang:process_info(whereis(lager_event), message_queue_len) end) | |
| )), | |
| nostate} | |
| end, | |
| nostate, | |
| fun(Vals,_) -> io:format("~p~n",[Vals]) end, | |
| nostate | |
| ). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment