Is there a DispatchingStrategy that does weighted distributions?

23 views
Skip to first unread message

arra...@gmail.com

unread,
Nov 14, 2016, 4:24:06 AM11/14/16
to membrane-monitor
Instead of Round Robin, which distributes load evenly, is there some way to attach a weight to different servers to distribute load?

Thomas Bayer

unread,
Nov 14, 2016, 5:00:48 AM11/14/16
to membrane-monitor, arra...@gmail.com
You can implement your own strategy to dispatch the load. Just implement the following interface:

public interface DispatchingStrategy {
public Node dispatch(LoadBalancingInterceptor interceptor) throws EmptyNodeListException;
public void done(AbstractExchange exc);
}
See:


Please ask if you have any questions.

Cheers,
Thomas

oscar.m...@gmail.com

unread,
Jan 19, 2017, 4:54:40 AM1/19/17
to membrane-monitor, arra...@gmail.com
Hello, How to do I define my custom DispatchingStrategy in proxies.xml?
Reply all
Reply to author
Forward
0 new messages