yuuka created RATIS-2161:
----------------------------

             Summary: Grpc may spawn many threads
                 Key: RATIS-2161
                 URL: https://issues.apache.org/jira/browse/RATIS-2161
             Project: Ratis
          Issue Type: Wish
            Reporter: yuuka
         Attachments: image-2024-09-23-10-18-27-800.png, 
image-2024-09-23-10-23-55-154.png, image-2024-09-23-10-28-52-065.png

Under high load, if there are many RaftGroup leaders on one machine and there 
is a sudden crash, grpc may create many threads to handle requestVote and 
appendEntry, etc.N, frequent thread creation and context switching, which may 
lead to performance degradation.
 
!image-2024-09-23-10-18-27-800.png!
 
!image-2024-09-23-10-23-55-154.png!
!image-2024-09-23-10-28-52-065.png!
It seems that grpc will not release the thread yet.


We can specify a fixed number of thread pools or periodically recycle threads



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

Reply via email to