RabbitMQ - How to find out the Queue mode (default or lazy)
up vote
0
down vote
favorite
The question is simple, In RabbitMQ, How to find out the Queue mode (default or lazy).
I have tried documentation and experimenting with:
- Rabbitmqctl
- Rabbitmq management plugin
- HTTP API
- AMQPLib for nodeJs
I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy.
rabbitmq
add a comment |
up vote
0
down vote
favorite
The question is simple, In RabbitMQ, How to find out the Queue mode (default or lazy).
I have tried documentation and experimenting with:
- Rabbitmqctl
- Rabbitmq management plugin
- HTTP API
- AMQPLib for nodeJs
I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy.
rabbitmq
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The question is simple, In RabbitMQ, How to find out the Queue mode (default or lazy).
I have tried documentation and experimenting with:
- Rabbitmqctl
- Rabbitmq management plugin
- HTTP API
- AMQPLib for nodeJs
I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy.
rabbitmq
The question is simple, In RabbitMQ, How to find out the Queue mode (default or lazy).
I have tried documentation and experimenting with:
- Rabbitmqctl
- Rabbitmq management plugin
- HTTP API
- AMQPLib for nodeJs
I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy.
rabbitmq
rabbitmq
asked Nov 22 at 15:06
Sumit Maingi
1,22811430
1,22811430
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
you can use the HTTP API to do that:
for example, the list of the queues with all the attributes:
curl -u guest:guest 'localhost:15672/api/queues'
you have to find:
"mode": "lazy"
or
"arguments": {
"x-queue-mode": "lazy"
},
Simply in this way:
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"mode": "lazy"' -A 50 -B 10
or
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"x-queue-mode"' -A 80 -B 3
or with some language to do that.
its called justmode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!
– Sumit Maingi
Nov 23 at 4:38
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
add a comment |
up vote
0
down vote
Using managament plugin I created new queue with lazy mode:
Then I can see that the mode is set up:
Is it wrong?
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running indefault
mode and notlazy
as I intended it would solve the issue. Thanks for taking the time out to help though.
– Sumit Maingi
Nov 23 at 4:36
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
|
show 1 more comment
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
you can use the HTTP API to do that:
for example, the list of the queues with all the attributes:
curl -u guest:guest 'localhost:15672/api/queues'
you have to find:
"mode": "lazy"
or
"arguments": {
"x-queue-mode": "lazy"
},
Simply in this way:
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"mode": "lazy"' -A 50 -B 10
or
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"x-queue-mode"' -A 80 -B 3
or with some language to do that.
its called justmode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!
– Sumit Maingi
Nov 23 at 4:38
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
add a comment |
up vote
1
down vote
accepted
you can use the HTTP API to do that:
for example, the list of the queues with all the attributes:
curl -u guest:guest 'localhost:15672/api/queues'
you have to find:
"mode": "lazy"
or
"arguments": {
"x-queue-mode": "lazy"
},
Simply in this way:
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"mode": "lazy"' -A 50 -B 10
or
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"x-queue-mode"' -A 80 -B 3
or with some language to do that.
its called justmode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!
– Sumit Maingi
Nov 23 at 4:38
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
you can use the HTTP API to do that:
for example, the list of the queues with all the attributes:
curl -u guest:guest 'localhost:15672/api/queues'
you have to find:
"mode": "lazy"
or
"arguments": {
"x-queue-mode": "lazy"
},
Simply in this way:
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"mode": "lazy"' -A 50 -B 10
or
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"x-queue-mode"' -A 80 -B 3
or with some language to do that.
you can use the HTTP API to do that:
for example, the list of the queues with all the attributes:
curl -u guest:guest 'localhost:15672/api/queues'
you have to find:
"mode": "lazy"
or
"arguments": {
"x-queue-mode": "lazy"
},
Simply in this way:
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"mode": "lazy"' -A 50 -B 10
or
curl -u guest:guest
'localhost:15672/api/queues' | python -m json.tool | grep '"x-queue-mode"' -A 80 -B 3
or with some language to do that.
edited Nov 23 at 10:48
answered Nov 22 at 15:50
Gabriele
14.4k42233
14.4k42233
its called justmode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!
– Sumit Maingi
Nov 23 at 4:38
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
add a comment |
its called justmode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!
– Sumit Maingi
Nov 23 at 4:38
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
its called just
mode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!– Sumit Maingi
Nov 23 at 4:38
its called just
mode
now apparently in rabbitmq 3.7.8 as it returns from the api you mentioned. This helped, thanks!– Sumit Maingi
Nov 23 at 4:38
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
you are right! thanks for pointing out!, I updated the answer
– Gabriele
Nov 23 at 10:45
add a comment |
up vote
0
down vote
Using managament plugin I created new queue with lazy mode:
Then I can see that the mode is set up:
Is it wrong?
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running indefault
mode and notlazy
as I intended it would solve the issue. Thanks for taking the time out to help though.
– Sumit Maingi
Nov 23 at 4:36
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
|
show 1 more comment
up vote
0
down vote
Using managament plugin I created new queue with lazy mode:
Then I can see that the mode is set up:
Is it wrong?
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running indefault
mode and notlazy
as I intended it would solve the issue. Thanks for taking the time out to help though.
– Sumit Maingi
Nov 23 at 4:36
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
|
show 1 more comment
up vote
0
down vote
up vote
0
down vote
Using managament plugin I created new queue with lazy mode:
Then I can see that the mode is set up:
Is it wrong?
Using managament plugin I created new queue with lazy mode:
Then I can see that the mode is set up:
Is it wrong?
answered Nov 22 at 15:30
Grzesiek Danowski
1905
1905
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running indefault
mode and notlazy
as I intended it would solve the issue. Thanks for taking the time out to help though.
– Sumit Maingi
Nov 23 at 4:36
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
|
show 1 more comment
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running indefault
mode and notlazy
as I intended it would solve the issue. Thanks for taking the time out to help though.
– Sumit Maingi
Nov 23 at 4:36
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running in
default
mode and not lazy
as I intended it would solve the issue. Thanks for taking the time out to help though.– Sumit Maingi
Nov 23 at 4:36
Not wrong, but as I mentioned in my question, I can see when I apply it via policy but not when I do it while creating the queue. I wanted to see if my code was working correctly or not, so even if I could see that it was running in
default
mode and not lazy
as I intended it would solve the issue. Thanks for taking the time out to help though.– Sumit Maingi
Nov 23 at 4:36
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
Did you get other data using Rabbitmq management plugin then using http api? In both cases I see "x-queue-mode" attribute. You said that you are interested in any of the 4 ways :).
– Grzesiek Danowski
Nov 23 at 7:31
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
No, I said I tried them but couldn't find anything, this is the sentence which I was telling you about: "I know how to set that using policies, I simply want to know the current mode of a queue when the mode is set upon declaration and not via a policy."
– Sumit Maingi
Nov 23 at 7:35
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
Creating queue by Rabbitmq management plugin means creating via a policy?
– Grzesiek Danowski
Nov 23 at 7:58
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
you are right, I misread your answer, but in my case creating the queue from the console wasnt an option. But yes, I had misread your answer originally.
– Sumit Maingi
Nov 23 at 8:19
|
show 1 more comment
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433752%2frabbitmq-how-to-find-out-the-queue-mode-default-or-lazy%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown