jvarenina edited a comment on pull request #7378:
URL: https://github.com/apache/geode/pull/7378#issuecomment-1048513322


   Hi reviewers,
   
   With this solution, each server will now send CacheServerLoadMessage 
containing the correct connection load of the gateway-receiver to all locators 
in the cluster. This action will happen every 5 seconds as configured with the 
load-poll-interval parameter. Additionally, the coordinator locator will 
increase the load each time it provides the server location to the remote 
gateway-sender in ClientConnectionRequest/ClientConnectionResponse. Locator 
only maintains load temporarily until CacheServerLoadMessage is received. This 
behavior makes sense as the server tracks connection load more accurately than 
the locator. Locator only increases connection load based on the received 
connection requests while server adjusts the connection load each time 
connection is established and disconnected.
   
   ClientConnectionRequest messages are usually sent to the coordinator 
(locator) in bursts when the gateway-sender is establishing connections due to 
traffic. This behavior results in the locator's connection load being way ahead 
of the server connection load because servers did not establish those 
connections yet. Suppose during these bursts CacheServerLoadMessage message 
come to locator carrying low load value for one of the gateway-receivers. In 
that case, that receiver will be picked more frequently (will have the lowest 
load), resulting in unbalanced gateway-sender connections. In order for this to 
have a big impact on load-balancing of sender connections the gateway-receivers 
must be started with some small delay, so that CacheServerLoadMessages are sent 
with some delay that is enough to cause imbalance. If CacheServerLoadMessages 
were sent at the similar time then this would not be a problem as all messages 
would have similar load and would update locator at similar time.
   
   I would be really grateful if you could share your opinion on this matter? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to