2 Replies Latest reply on Aug 17, 2016 9:54 AM by Wayne Wang

    Wildfly 10: Some questions related to configuration of activemq messaging

    Wayne Wang Apprentice

      Hi,

       

      I am trying to clean up / optimize the configurations for standalone-full-ha.xml that is used to support HA for messaging.

       

      The following are questions that I am not sure of after consulting with the following link

       

      Wildfly Model Reference

       

      I have a configuration to set up colocated backup server

       

      (1) address-setting

      Attribute: "redistribution-delay" means How long to wait when the last consumer is closed on a queue.

      The unit of measurement is milliseconds. However, the default value of -1. What does that mean?

      what is a reasonable value?


      (2) discovery-group

      Attribute: "refresh-timeout" means Period the discovery group waits after receiving the last broadcast from a particular server before removing that server's connector pair entry from its list.

      The default value is 10000 milliseconds. Is that a reasonable value? Is a 1000 milliseconds a better value?


      (3) pooled-connection-factory

      Attribute: "reconnect-attempts" By default, a pooled connection factory will try to reconnect infinitely to the messaging server(s)

      The default value is -1.

      what is a reasonable value?


      (4) connection-factory: name=RemoteConnectionFactory (out-of-box definition)

      Attribute: "reconnect-attempts" means the reconnect attempts

      The default value is 0 while the out-of-box value is set to -1

      What does it mean by zero or -1?


      (5) security

      The default value is true

      In a scenario where I have a colocated backup server configuration, I see sample configuration with the following setting

      <security enabled="false"/>

      Is that necessary?


      (6) security-setting

      The default value of the following is false:

       

      delete-non-durable-queue

      delete-durable-queue

      create-non-durable-queue

      create-durable-queue

      send

      consume

      manage


      However, the out-of-box configuration set the following to be true


      delete-non-durable-queue

      create-non-durable-queue

      send

      consume


      can we set the value to be true for all the attributes?


      What are the concerns in setting up the values?


      Thanks,


      Wayne






       

      Message was edited by: Wayne Wang

        • 1. Re: Wildfly 10: Some questions related to configuration of activemq messaging
          Justin Bertram Master

          In general I would encourage you to read the Artemis documentation.  Lots of the questions you have are answered there.

           

          Attribute: "redistribution-delay" means How long to wait when the last consumer is closed on a queue.

          The unit of measurement is milliseconds. However, the default value of -1. What does that mean?

          what is a reasonable value?

          As the documentation states:

          ...redistribution-delay defines the delay in milliseconds after the last consumer is closed on a queue before redistributing messages from that queue to other nodes of the cluster which do have matching consumers. A delay of zero means the messages will be immediately redistributed. A value of -1 signifies that messages will never be redistributed.

          A "reasonable" value is dependent on your use-case.  There is no single "reasonable" value which is why this is configurable.

           

          Attribute: "refresh-timeout" means Period the discovery group waits after receiving the last broadcast from a particular server before removing that server's connector pair entry from its list.

          The default value is 10000 milliseconds. Is that a reasonable value? Is a 1000 milliseconds a better value?

          As I noted before, "reasonable" is really dependent on your use-case.  In this particular case it also depends on how often your broadcast-group is transmitting information.  If your broadcast-group has a broadcast-period of 5000 and your discovery-group has a refresh-timeout of 1000 then your cluster may never form properly because the timeout will consistently elapse.

           

          (3) pooled-connection-factory

          Attribute: "reconnect-attempts" By default, a pooled connection factory will try to reconnect infinitely to the messaging server(s)

          The default value is -1.

          what is a reasonable value?

          It depends on your use-case.  If you want infinite reconnect attempts then -1 is reasonable.  If you don't, then it's not.

           

          (4) connection-factory: name=RemoteConnectionFactory (out-of-box definition)

          Attribute: "reconnect-attempts" means the reconnect attempts

          The default value is 0 while the out-of-box value is set to -1

          What does it mean by zero or -1?

          Zero means it won't attempt to reconnect.  Negative one means it will attempt to reconnect indefinitely.  Again, this is covered in the Artemis documentation.

          • 2. Re: Wildfly 10: Some questions related to configuration of activemq messaging
            Wayne Wang Apprentice

            Thanks a lot!

            Artemis document is the best complementary document of the Wildfly10 model reference

             

            Wayne

            1 of 1 people found this helpful