Skip to content

Instantly share code, notes, and snippets.

@ferd
Created August 29, 2013 16:53
Show Gist options
  • Select an option

  • Save ferd/6380600 to your computer and use it in GitHub Desktop.

Select an option

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.
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