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:




  1. Rabbitmqctl

  2. Rabbitmq management plugin

  3. HTTP API

  4. 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.










share|improve this question


























    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:




    1. Rabbitmqctl

    2. Rabbitmq management plugin

    3. HTTP API

    4. 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.










    share|improve this question
























      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:




      1. Rabbitmqctl

      2. Rabbitmq management plugin

      3. HTTP API

      4. 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.










      share|improve this question













      The question is simple, In RabbitMQ, How to find out the Queue mode (default or lazy).



      I have tried documentation and experimenting with:




      1. Rabbitmqctl

      2. Rabbitmq management plugin

      3. HTTP API

      4. 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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 at 15:06









      Sumit Maingi

      1,22811430




      1,22811430
























          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.






          share|improve this answer























          • 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


















          up vote
          0
          down vote













          Using managament plugin I created new queue with lazy mode:
          creating new queue



          Then I can see that the mode is set up:



          show queue properties



          Is it wrong?






          share|improve this answer





















          • 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










          • 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











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          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

























          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.






          share|improve this answer























          • 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















          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.






          share|improve this answer























          • 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













          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.






          share|improve this answer














          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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 at 10:48

























          answered Nov 22 at 15:50









          Gabriele

          14.4k42233




          14.4k42233












          • 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


















          • 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
















          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












          up vote
          0
          down vote













          Using managament plugin I created new queue with lazy mode:
          creating new queue



          Then I can see that the mode is set up:



          show queue properties



          Is it wrong?






          share|improve this answer





















          • 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










          • 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















          up vote
          0
          down vote













          Using managament plugin I created new queue with lazy mode:
          creating new queue



          Then I can see that the mode is set up:



          show queue properties



          Is it wrong?






          share|improve this answer





















          • 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










          • 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













          up vote
          0
          down vote










          up vote
          0
          down vote









          Using managament plugin I created new queue with lazy mode:
          creating new queue



          Then I can see that the mode is set up:



          show queue properties



          Is it wrong?






          share|improve this answer












          Using managament plugin I created new queue with lazy mode:
          creating new queue



          Then I can see that the mode is set up:



          show queue properties



          Is it wrong?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 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










          • 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










          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          What visual should I use to simply compare current year value vs last year in Power BI desktop

          Alexandru Averescu

          Trompette piccolo