Skip to content

Instantly share code, notes, and snippets.

@donbonifacio
Last active October 18, 2018 19:38
Show Gist options
  • Save donbonifacio/b3b760c910851e2c785bfb86aafee0b1 to your computer and use it in GitHub Desktop.
Save donbonifacio/b3b760c910851e2c785bfb86aafee0b1 to your computer and use it in GitHub Desktop.

Monitoring

  • rabbitmqctl status - generic node info
  • rabbitmqctl cluster_status - checks connectivity with other nodes and alarms

Troubleshoot

Consumer prefetch

By default Rabbit will prefetch several messages to boost performance. If the consumption is slower than the prefetch, the broker may hold on to infinite messages on it's queue. This is defined by the qos setting. It should be set to some number to prevend this unbounded queue.

Memory and disk alarms

By default Rabbit will allocate some usage limits for memory and disk (for example, 40% of memory). If rabbit reaches those limits, it will block publishers. Take care in our producers code, they may block on rabbit because of this and you may get yourself on a deadlock.

Messages TTL

By default, messages have a TTL of 15s and will desapear if not consumed on that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment