This alert monitors the number of dropped messages in VerneMQ due to full message queues within the last minute. If you receive this alert, it means that message queues are full and VerneMQ is dropping messages. This can be a result of slow consumers, slow VerneMQ performance, or fast publishers.
Monitor the current message queue length for each topic by using the command:
vmq-admin metrics show | grep queue | sort | uniq -c
You can also monitor VerneMQ performance metrics like CPU utilization, memory usage, and network I/O by using the top
command:
top
Analyze the message flow and performance data to determine if the issue is caused by slow consumers, slow VerneMQ performance, or fast publishers.
If increasing the capacity of your infrastructure is not a viable solution, consider increasing the queue length or adjusting the max_online_messages
value in VerneMQ. This can help mitigate the issue of dropped messages due to full queues.
Update the VerneMQ configuration file (vernemq.conf
) to set the desired max_online_messages
value:
max_online_messages=<your_desired_value>
Then, restart VerneMQ to apply the changes:
sudo service vernemq restart
Continue to monitor the message queue length and VerneMQ performance metrics after making changes, to ensure that the issue is resolved or mitigated.