Sha256: 8743a42993cb9bac539c874f42051209b829779251bc77e4cdd6bc00e165bea5

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

#!/usr/bin/env escript
Process.setproctitle($0)
%%! -name riakstatuscheck@127.0.0.1 -hidden

main([]) -> main(["riak@127.0.0.1"]);
main([Node]) ->
  io:format("~w\n", [
    lists:foldl(
      fun({_VNode, Count}, Sum) -> Sum + Count end,
      0,
      rpc:call(list_to_atom(Node), riak_kv_bitcask_backend, key_counts, [])
    )
  ]).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
riemann-tools-1.1.1 tools/riemann-riak/bin/riemann-riak-keys
riemann-tools-1.1.0 tools/riemann-riak/bin/riemann-riak-keys
riemann-tools-1.0.0 tools/riemann-riak/bin/riemann-riak-keys