Questions tagged [rabbitmqctl]

command line tool for managing a RabbitMQ broker

RabbitMQ is an implementation of AMQP, the emerging standard for high performance enterprise messaging. The RabbitMQ server is a robust and scalable implementation of an AMQP broker.

rabbitmqctl is a command line tool for managing a RabbitMQ broker. It performs all actions by connecting to one of the broker's nodes. See the man page for further details

Diagnostic information is displayed if the broker was not running, could not be reached, or rejected the connection due to mismatching Erlang cookies.

224 questions
8
votes
3 answers

rabbitmq list queues on all vhosts

I've got rabbitmq with couple virtual hosts, there is few queues on each. How can I list all queues from all vhosts using rabbitmqctl? I've tried: rabbitmqctl list_queues -p /* rabbitmqctl list_queues -p * rabbitmqctl list_queues -p / rabbitmqctl…
Damian Słowiński
  • 108
  • 1
  • 1
  • 5
8
votes
4 answers

How to handle RabbitMQ Logs?

We're running RabbitMQ and the .log it's writing to the log folder get quiet large. What's the right thing to do there, can we just delete it from time to time, should we rotate them away and then delete them? I fail to find any documentation on…
Razze
  • 4,124
  • 3
  • 16
  • 23
7
votes
1 answer

RabbitMQ - access to vhost 'XXX' refused for user 'guest'

I am using RabbitMQ 3.0.3 version. The service was working fine for last 4-5 years. Recently some updates patches were installed on the server and the Service stopped responding. This is what is happening: The RabbitMQ service (windows service) is…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
7
votes
1 answer

simultaneously receive logs from Rabbitmq and run your flask app

I have rabbitmq installed and working properly and I know how to receive logs but don't know how to show it to UI with flask. flask_app.py from flask import Flask from threading import Thread app = Flask(__name__) import pika connection =…
kapil matani
  • 157
  • 1
  • 9
6
votes
1 answer

How to change RabbitMQ Heartbeat without restart

There are several questions here in SO about RabbitMQ heartbeat but I haven't found one addressing how to actually change the default heartbeat value of 60 seconds (580 seconds in previous versions). In the case when a consumer is running for longer…
lloiacono
  • 4,714
  • 2
  • 30
  • 46
6
votes
1 answer

How to create an exchange using rabbitmqctl

rabbitmqctl have the subcommand list_exchanges to list all the exchanges. How can I create an exchange using rabbitmqctl, as I didn't see the add_exchanges subcommands?
user1744416
  • 171
  • 1
  • 12
6
votes
3 answers

RabbitMQ log and Mnesia location in Environment variables not reflecting?

I want to change the Rabbitmq MNESIA dir to /disk folder instead of default /var/lib. I did the change in /usr/lib/rabbitmq/bin at rabbitmq-env with RABBITMQ_MNESIA_BASE=/disk/rabbitmq/ RABBITMQ_LOG_BASE=/disk/rabbitmq/log/ And after restarting it…
Dileephell
  • 620
  • 2
  • 7
  • 18
6
votes
1 answer

Whether to create connection every time when amqp.Dial is threadsafe or not in go lang

As it is mentioned in the RabbitMQ docs that tcp connections are expensive to make. So, for that concept of channel was introduced. Now i came across this example. In the main() it creates the connection everytime a message is publised. conn, err…
Naresh
  • 5,073
  • 12
  • 67
  • 124
6
votes
1 answer

RabbitMQ+TLS: ssl_upgrade_error

Following the directions stated here, I have set up a certificate authority and created the rabbitmq.config with the appropriate fields. However, when I try to connect to the RabbitMQ server with openssl s_client -connect 127.0.0.1:5671 -tls1 I…
user14717
  • 4,757
  • 2
  • 44
  • 68
5
votes
2 answers

Init container to wait for rabbit-mq readiness

I saw the example for docker healthcheck of RabbitMQ at docker-library/healthcheck. I would like to apply a similar mechanism to my Kubernetes deployment to await on Rabbit deployment readiness. I'm doing a similar thing with MongoDB, using a…
Mugen
  • 8,301
  • 10
  • 62
  • 140
5
votes
1 answer

RabbitMq : Is there a way to apply policy on all virtual host in cluster environment for queue mirroring?

In RabbitMQ, If I want to mirror queue in cluster environment I use below command : rabbitmqctl set_policy ha-all "" '{"ha-mode":"all","ha-sync-mode":"automatic"}' This command will apply policy to all queues of virtual host "\". If I have to apply…
5
votes
1 answer

RabbitMq: Adding user permanently?

I use the following commands to add a user of RabbitMQ on CentOS 7 rabbitmqctl add_user test test rabbitmqctl set_user_tags test administrator rabbitmqctl set_permissions -p / test ".*" ".*" ".*" The problem is that this configuration is not…
Abu Muhammad
  • 1,185
  • 5
  • 20
  • 29
5
votes
2 answers

Scaling in Rabbitmq

While using Clusters in Rabbit MQ, I was planning to use the Competing Subscriber pattern. Producer : 1 Exchange : 1 direct Queue : 1 Consumers : n (multiple) listening to the same queue. Now if I have a cluster containing 3 nodes, there would be…
Lalit Singh Rana
  • 137
  • 1
  • 1
  • 10
5
votes
2 answers

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

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…
James Oravec
  • 19,579
  • 27
  • 94
  • 160
4
votes
0 answers

RabbitMQ delivery acknowledgement timeout workarounds: pika or editing RabbitMQ configuration file for Amazon-MQ managed cluster

Background: Recent changes to RabbitMQ 3.8.x have created a delivery acknowledgement timeout of 30 minutes. According to the documents, this can be overridden in the rabbitmq.conf file by setting a consumer_timeout value. My issue: I am using the…
Mov
  • 51
  • 3
1
2
3
14 15