Skip to content

Instantly share code, notes, and snippets.

View jmshoffs0812's full-sized avatar

Justin Shoffstall jmshoffs0812

  • Tallahassee, FL
View GitHub Profile
PBStatusFun = fun() ->
VnodePids = [Pid || {_, Pid} <- riak_core_vnode_manager:all_index_pid(riak_kv_vnode)],
Links = [process_info(Pid, [links]) || Pid <- VnodePids],
WorkerPoolPids = [WPPid || [{links,[_, WPPid]}] <- Links],
WorkerPoolLinks = [process_info(Pid, [links]) || Pid <- WorkerPoolPids],
PoolboyPids = [PoolboyPid || [{links,[_, PoolboyPid]}] <- WorkerPoolLinks],
[poolboy:status(Pid) || Pid <- PoolboyPids]
end.
PBStatusFun = fun(Index) ->
@jmshoffs0812
jmshoffs0812 / gist:1163777
Created August 22, 2011 22:14 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Systems Engineer
Favorite Python project: http://python-requests.org
Favorite Conference: TXJS
Python Experience Level: Intermediate