Hi guys,
I have to identify by IP address consumers that for some reason goes down. So I saw some people implementing a log queue listener to get close of connection messages. It worked for me.
After all, I had to build a cluster for RabbitMQ with mirrored queues and I chose to use HAProxy to handle load balancing between brokers in the cluster. Because of proxy, close of connection messages from log queue inform loss of connection between proxy's ip address instead of consumer one.
I was thinking to get port number of channel that is unique and it can identify each consumer. But the only way to consumer get this information is through message received. I don't think that this information is available on message...isn't it?
If you know any other way to handle with it, please let me know.
Thanks in advance,
Daniele