You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2023/08/21 03:15:00 UTC

[jira] [Resolved] (AMBARI-25912) Performance improvement when server handle agent heartbeat and registration

     [ https://issues.apache.org/jira/browse/AMBARI-25912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viraj Jasani resolved AMBARI-25912.
-----------------------------------
    Fix Version/s: 2.9.0
       Resolution: Fixed

> 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
>            Assignee: caijialiang
>            Priority: Major
>             Fix For: 2.9.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> The AgentRegisteringQueueChecker is an interceptor used during the long connection between the agent and server, mainly for requesting congestion control. It internally uses AgentsRegistrationQueue to store the sessionID of connections.
> The sessionID is added to the AgentsRegistrationQueue when the ambari agent registers to the server or sends a heartbeat.
> When the long connection between the agent and server is disconnected, or when the server completes the heartbeat request, the sessionID is removed from the AgentsRegistrationQueue.
> When the queue is full, the server returns "not allowed" to the agent.
> AgentsRegistrationQueue uses ArrayBlockingQueue, which uses the same lock for both writing and consuming, making it easy to negatively impact performance when dealing with large clusters. Therefore, we are switching to using LinkedBlockingQueue in order to improve performance.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org