caijialiang created AMBARI-25912:
------------------------------------

             Summary: performance improvement when server handle agent 
heartbeat and registration
                 Key: AMBARI-25912
                 URL: https://issues.apache.org/jira/browse/AMBARI-25912
             Project: Ambari
          Issue Type: Improvement
    Affects Versions: 2.8.0
            Reporter: caijialiang


The AgentsRegistrationQueue is used as a traffic control mechanism for 
registration or heartbeat. messages involve adding to the queue, while 
disconnection or completion of a heartbeat request involves removal from the 
queue. ArrayBlockingQueue is used in AgentsRegistrationQueue, but as it shares 
a lock between writing and consumption, it can have a negative impact on 
performance when dealing with larger clusters. To address this, use 
LinkedBlockingQueue to improve performance.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to