Groups
Sign in
Groups
membrane-monitor
Conversations
About
Send feedback
Help
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 AM
11/14/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
11/14/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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:
https://github.com/membrane/service-proxy/blob/master/core/src/main/java/com/predic8/membrane/core/interceptor/balancer/DispatchingStrategy.java
Please ask if you have any questions.
Cheers,
Thomas
oscar.m...@gmail.com
unread,
Jan 19, 2017, 4:54:40 AM
1/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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