Checking that RabbitMQ server is running using Pika

142 views
Skip to first unread message

Dylan Galea

unread,
Dec 1, 2020, 10:20:28 AM12/1/20
to Pika
Is there a way of checking using pika whether rabbitMQ is running or not?

Dylan Galea

unread,
Dec 1, 2020, 10:20:58 AM12/1/20
to Pika
By rabbitmq i mean the rabbitmq server

Shaheed Haque

unread,
Dec 1, 2020, 11:14:49 AM12/1/20
to pika-...@googlegroups.com
In general, asking questions like this in a distributed systems context, You need to specify what you want to do based on the information. If you simply want to render a pretty UI to a human, any kind of query that succeeds is probably enough.

However, if you intend to use the information to affect the running of the system, then it is worth pondering on the fact that the information is stale as soon as you get it. The best that one can do is to try whatever operation you had in mind, and deal with any failure. 

This is true for all systems, not just RabbitMQ/pika. 

--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pika-python/4bcd0f3e-945a-42e1-bfb7-71b61c2e39c2n%40googlegroups.com.

Dylan Galea

unread,
Dec 2, 2020, 1:58:31 AM12/2/20
to pika-...@googlegroups.com
So basically I want just like a ping request, where the user can ping the rabbit server, and if it is running it says 'ok' and if not it says it is not ok. So I think the best way is to use some arbitrary command. Is there a light weight command you suggest?

Shaheed Haque

unread,
Dec 2, 2020, 2:30:42 AM12/2/20
to pika-...@googlegroups.com


On Wed, 2 Dec 2020, 06:58 Dylan Galea, <dillu...@gmail.com> wrote:
So basically I want just like a ping request, where the user can ping the rabbit server, and if it is running it says 'ok' and if not it says it is not ok. So I think the best way is to use some arbitrary command. Is there a light weight command you suggest?

Offhand, no, I've only ever needed the other type. I suggest just poking around the pika api for something that requires/checks connectivity... 

On Tue, 1 Dec 2020, 17:14 Shaheed Haque, <shahee...@gmail.com> wrote:
In general, asking questions like this in a distributed systems context, You need to specify what you want to do based on the information. If you simply want to render a pretty UI to a human, any kind of query that succeeds is probably enough.

However, if you intend to use the information to affect the running of the system, then it is worth pondering on the fact that the information is stale as soon as you get it. The best that one can do is to try whatever operation you had in mind, and deal with any failure. 

This is true for all systems, not just RabbitMQ/pika. 

On Tue, 1 Dec 2020, 15:21 Dylan Galea, <dillu...@gmail.com> wrote:
By rabbitmq i mean the rabbitmq server

On Tuesday, December 1, 2020 at 4:20:28 PM UTC+1 Dylan Galea wrote:
Is there a way of checking using pika whether rabbitMQ is running or not?

--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pika-python/4bcd0f3e-945a-42e1-bfb7-71b61c2e39c2n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pika-python/CAHAc2jdvzTjkLo-jfO1Fwbu0fKBjFT%2BBgX35K%3D9FJ3yZzwJEJA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Pika" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pika-python...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages