-
round-robin is not a good solution as this might cause packets re-ordering for a sender. Therefore I suggest to implement following algorithms:
-
Select component/connection by the sender bareJID hashCode
-
Select component/connection by the receiver bareJID hashCode
-
Select component/connection by the receiver full JID hashCode
-
| Type |
Task
|
| Priority |
Blocker
|
| Assignee | |
| RedmineID |
196
|
| Version |
Candidate for next major release
|
| Estimation |
0
|
Iterations
Issue Votes (0)
Add a support for simple: round-robin, hash by destination BareJID, hash by destination full JID load balancing for virtual components. The class to update: source:/trunk/src/main/java/tigase/cluster/VirtualComponent.java
redirect-to property should accept a comma separated list of JIDs for the packet redirection.
A new property redirect-algorithm should allow to set one of above algorithms for packets redirection.
http://www.tigase.org/content/virtual-components-cluster-mode document update with the new features.
A documentation page with title: "Load balancing external components" with example configuration