-
1. Re: Wildfly 10: Some questions related to configuration of activemq messaging
jbertram Aug 16, 2016 12:13 PM (in response to wwang2016)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
wwang2016 Aug 17, 2016 9:54 AM (in response to jbertram)1 of 1 people found this helpfulThanks a lot!
Artemis document is the best complementary document of the Wildfly10 model reference
Wayne