[ 
https://issues.apache.org/jira/browse/FLUME-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290927#comment-13290927
 ] 

Arvind Prabhakar commented on FLUME-1244:
-----------------------------------------

Here is my attempt at Load Balancing RPC client. Some details:

* To activate the client, set the property {{client.type}} to 
{{default_loadbalance}}.
* It requires that you have at least two hosts specified via {{hosts = h1 h2}} 
and {{hosts.h1 = hostname:port}} etc.
* By default it uses a round-robin scheme to distribute load over the various 
hosts. 
* To change the load distribution scheme to random instead of round robin, set 
the value of {{host-selector}} to {{random}}. Otherwise it can be set to 
{{round_robin}}.
* To specify your own implementation of host selection algorithm, implement the 
interface {{org.apache.flume.api.LoadBalancingRpcClient.HostSelector}}.
* This implementation uses optimistic failover where a failure in handling 
event send request will result in the client automatically advancing to the 
next available host specified by the selector.
* If all hosts fail, the EventDeliveryException will be raised.

                
> Implement a load-balancing RpcClient with round/robin and random distribution 
> capabilties.
> ------------------------------------------------------------------------------------------
>
>                 Key: FLUME-1244
>                 URL: https://issues.apache.org/jira/browse/FLUME-1244
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Arvind Prabhakar
>            Assignee: Arvind Prabhakar
>             Fix For: v1.2.0
>
>         Attachments: FLUME-1244-1.patch
>
>
> We now have a load balancing sink processor implemented via FLUME-1198 which 
> provides the ability to distribute load over a set of sinks via round/robin 
> or random distribution scheme. A similar implementation should be available 
> for the RpcClient within the client SDK.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to