anchor.diff:              {Node, #dispatcher_lb_advice{should_delegate = ShouldDelegate,
                   nodes_and_frequency = NodesAndFrequency, all_nodes = Nodes}}
           end, NodesAndLoads),
  -    ?dump(Result),
       % Calculate expected extra loads on each node.
       % For example:
       % node A is overloaded and will delegate 70% reqs to node B
  
positive.code:     %
      ExtraLoadsSum = lists:foldl(
          fun({NodeFrom, DispLBAdvice}, ExtraLoadsAcc) ->
              ?dump(ExtraLoadsAcc),
              #dispatcher_lb_advice{
                  should_delegate = ShouldDelegate,
                  nodes_and_frequency = NodesAndFreq} = DispLBAdvice,
  
negative.code:                         end, ExtraLoadsAcc, NodesAndFreq)
              end
          end, [], Result),
      NewExtraLoads = lists:map(
          fun({Node, ExtraLoadSum}) ->
              {Node, ExtraLoadSum / (1.0 + ExtraLoadSum)}
          end, ExtraLoadsSum),
      {Result, #load_balancing_state{expected_extra_load = NewExtraLoads}}.
  
  
  