[
https://issues.apache.org/jira/browse/SCB-751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang updated SCB-751:
-----------------------------
Fix Version/s: (was: pack-0.6.0)
pack-0.7.0
> The load balancer of Saga may be faced with peak problem.
> ---------------------------------------------------------
>
> Key: SCB-751
> URL: https://issues.apache.org/jira/browse/SCB-751
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Saga
> Affects Versions: saga-0.2.0
> Environment: project: incubator-servicecomb-saga-0.2.0
> Reporter: Gannalyo
> Assignee: justin li
> Priority: Major
> Labels: load-balancer, saga
> Fix For: pack-0.7.0
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Currently, Saga's load balancer will *select a fastest 'MessageSender'* to
> send msg from pool.
> My problem:
> At some point, if every Alpha node need take 10 minutes to handle business
> for some reasons(e.g. network), that means, Saga will handle all following
> requests by the fastest 'MessageSender' within 10 minutes.
> So, I think that the performance for Saga's load balancer will get a discount.
> Of course, I believe one alpha node can handle many many requests. Just for
> improving Saga.
> Part of code from LoadBalancedClusterMessageSender.java
> {code:java}
> ...
> MessageSender messageSender = fastestSender();
> try {
> long startTime = System.nanoTime();
> AlphaResponse response = messageSender.send(event);
> senders.put(messageSender, System.nanoTime() - startTime);
> return response;
> } catch (OmegaException e) {
> throw e;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)