-
1. Re: Example config for a symmetric cluster with no discovery?
ataylor Jun 9, 2011 11:48 AM (in response to codefinger)if you download 2.2.2 it has this exact example shipped
-
2. Re: Example config for a symmetric cluster with no discovery?
codefinger Jun 9, 2011 3:04 PM (in response to ataylor)Is the clustered-static-discovery example the one you are refering to? it appears to use an element <static-connectors> that is not present in 2.1.2 (which I'm using via Torquebox).
<cluster-connections>
<cluster-connection name="my-cluster">
<address>jms</address>
<connector-ref>netty-connector</connector-ref>
<retry-interval>500</retry-interval>
<use-duplicate-detection>true</use-duplicate-detection>
<forward-when-no-consumers>true</forward-when-no-consumers>
<max-hops>1</max-hops>
<static-connectors>
<connector-ref>server1-connector</connector-ref>
</static-connectors>
</cluster-connection>
</cluster-connections>
What is the equivelent to this in 2.1.2 hornetq-configuration.xml?
Also, is that example symmetric? it appears server1-3 are connecting to server0 only.
Thanks!
-
3. Re: Example config for a symmetric cluster with no discovery?
benbrowning Jun 10, 2011 8:23 AM (in response to codefinger)Yes, that example should be symmetric. If you take a look at the clustered-static-oneway example you'll see that it uses <static-connectors allow-direct-connections-only="true">. As I understand it, allow-direct-connections-only defaults to false and when false it means the cluster will discover other members without needing a <connector-ref> element for each member of the cluster. I don't think any harm would come from adding the extra <connector-ref> elements for each server though.