rabbitmqctl

How to parse rabbitmq status output?

筅森魡賤 提交于 2019-12-10 19:48:44
问题 I installed RabbitMQ on Linux, it's a great piece of software. When I run this command: sudo rabbitmqctl status I get a mess of output: [{pid,18665}, {running_applications, [{rabbitmq_management,"RabbitMQ Management Console","3.1.5"}, {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.1.5"}, {webmachine,"webmachine","1.10.3-rmq3.1.5-gite9359c7"}, {mochiweb,"MochiMedia Web Server","2.7.0-rmq3.1.5-git680dba8"}, {rabbitmq_management_agent,"RabbitMQ Management Agent","3.1.5"}, {rabbit,"RabbitMQ"

RabbitMQ Error: unable to connect to nodes : nodedown

我怕爱的太早我们不能终老 提交于 2019-12-10 04:10:20
问题 I am trying to do clustering using two Rhel instances. I am able to ping each other and even when i am trying to use command empd -names , i get it is up and running on 4369.When i am use the command as sudo rabbitmqctl join_cluster rabbit@ip-10-23-20-36 i am getting the below error ensuring as well to i am stop_app first.. sudo rabbitmqctl join_cluster rabbit@ip-10-23-20-36 Clustering node 'rabbit@ip-10-23-20-36' with 'rabbit@ip-10-23-209-142' ... Error: unable to connect to nodes ['rabbit

Reproduce RabbitMQ network partition scenario

此生再无相见时 提交于 2019-12-09 11:56:05
问题 I would like to reproduce the network partition scenario with all the three modes - ignore , autoheal and pause_minority . How can I achieve this? I tried stopping(/sbin/service reboot) one of the nodes of the cluster but this didn't cause any network partitioning. I also tried deleting the mnesia on one node to create inconsistent mnesia across the cluster but that also didn't help. 回答1: In order to simulate a network partition you can block the outgoing connections using iptables Suppose

why do we need routing key in rabbitmq

孤街浪徒 提交于 2019-12-08 15:55:57
问题 I am wondering why do we need routing key to route message from exchange to queue. Can't we use the simply queue name to route the message. Also, in case of publishing to multiple queues we can use multiple queue names. Can anyone point out the scenario where we actually need routing key, queue name won't be suffice. 回答1: There are several types of exchanges. The fanout exchange ignores the routing key and sends messages to all queues. But pretty much all other exchange types use the routing

RabbitMQ installing multiple services on windows machine

风格不统一 提交于 2019-12-08 06:13:14
问题 I know there are many resources regarding my question but still i am not able to figure out exact way to install 2 services of RabbitMQ on single windows machine. I know there are two way to run rabbitmq. Either as service or application. When we install RMQ it will by default install one sevice under name "RabbitMQ" which we can always run. And other way you can use below commands and run another instance of RMQ. set RABBITMQ_NODE_PORT=5673 set RABBITMQ_NODENAME=test1 set RABBITMQ_SERVICE

RabbitMQ Error: unable to connect to nodes : nodedown

て烟熏妆下的殇ゞ 提交于 2019-12-05 05:31:45
I am trying to do clustering using two Rhel instances. I am able to ping each other and even when i am trying to use command empd -names , i get it is up and running on 4369.When i am use the command as sudo rabbitmqctl join_cluster rabbit@ip-10-23-20-36 i am getting the below error ensuring as well to i am stop_app first.. sudo rabbitmqctl join_cluster rabbit@ip-10-23-20-36 Clustering node 'rabbit@ip-10-23-20-36' with 'rabbit@ip-10-23-209-142' ... Error: unable to connect to nodes ['rabbit@ip-10-23-209-142']: nodedown DIAGNOSTICS attempted to contact: ['rabbit@ip-10-23-209-142'] rabbit@ip-10

Define rabbitmq policies in configuration file

丶灬走出姿态 提交于 2019-12-03 11:55:31
问题 I'd like to define mirroring for all my queues by default. I currently have to use rabbitmqctl once the node is up: rabbitmqctl set_policy ha-all "" '{"ha-mode":"all"}' If one of my nodes fail, I'd have to remember to re-execute that code on restart. Is there a way to automatically configure my node to use mirrored queues? 回答1: Policy CAN be specified in a definition file, which can be referred to from your config file. Example of how I have set a specific policy (not sure if ha can be

Define rabbitmq policies in configuration file

ぃ、小莉子 提交于 2019-12-03 02:14:25
I'd like to define mirroring for all my queues by default. I currently have to use rabbitmqctl once the node is up: rabbitmqctl set_policy ha-all "" '{"ha-mode":"all"}' If one of my nodes fail, I'd have to remember to re-execute that code on restart. Is there a way to automatically configure my node to use mirrored queues? IvanD Policy CAN be specified in a definition file, which can be referred to from your config file. Example of how I have set a specific policy (not sure if ha can be specified in policy): /etc/rabbitmq/rabbitmq.config [ {rabbit, [{vm_memory_high_watermark, 0.8}] },

rabbtimqadmin - Could not connect: [Errno -2] Name or service not known

霸气de小男生 提交于 2019-12-01 07:03:14
I have RabbitMQ installed on a CentOS 5.x server which I use for message passing between my programs. I've installed rabbitmqadmin following the directions on https://www.rabbitmq.com/management-cli.html and have used it on my servers in the past. From what I can tell it looks like this particular server is misconfigured. My web-searches have failed me on trying to get more information on how to troubleshoot this issue. The error: [root@server ~]# python26 /usr/local/bin/rabbitmqadmin list nodes *** Could not connect: [Errno -2] Name or service not known [root@server ~]# I have tried several

rabbtimqadmin - Could not connect: [Errno -2] Name or service not known

只谈情不闲聊 提交于 2019-12-01 04:33:57
问题 I have RabbitMQ installed on a CentOS 5.x server which I use for message passing between my programs. I've installed rabbitmqadmin following the directions on https://www.rabbitmq.com/management-cli.html and have used it on my servers in the past. From what I can tell it looks like this particular server is misconfigured. My web-searches have failed me on trying to get more information on how to troubleshoot this issue. The error: [root@server ~]# python26 /usr/local/bin/rabbitmqadmin list