Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-751

The load balancer of Saga may be faced with peak problem.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • saga-0.2.0
    • pack-0.7.0
    • Saga
    • project: incubator-servicecomb-saga-0.2.0

    Description

      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  

      ... 
      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; 
      }
      

      Attachments

        Issue Links

          Activity

            People

              imlijinting justin li
              Gannalyo Gannalyo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified