roger v1.0.0 Roger.Info

Get information about the current partitions, queues and jobs of the entire cluster.

Most of the functions here are mirrored from Roger.NodeInfo but calls these function for each node through Roger.System.call/2.

Summary

Functions

Retrieve combined partition info on all running and waiting partitions, over the entire cluster

Retrieve queued jobs for the given partition and queue

Retrieve all jobs that are currently running on the cluster

Retrieve all running jobs for the given partition on the cluster

Retrieve all partitions that are currently started on all nodes in the cluster

Retrieve all partitions that are currently waiting for start

Functions

partitions()

Retrieve combined partition info on all running and waiting partitions, over the entire cluster.

queued_jobs(partition_id, queue_type, count \\ 100)

Retrieve queued jobs for the given partition and queue.

This basically does a basic.get AMQP command on the queue and requeues the message using a nack.

running_jobs()

Retrieve all jobs that are currently running on the cluster.

running_jobs(partition_id)

Retrieve all running jobs for the given partition on the cluster.

running_partitions()

Retrieve all partitions that are currently started on all nodes in the cluster.

waiting_partitions()

Retrieve all partitions that are currently waiting for start.