Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1849

IPC server max queue size should be configurable

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.0
    • 0.20.2
    • ipc
    • None
    • Reviewed


      Currently max queue size for IPC server is set to (100 * handlers). Usually when RPC failures are observed (e.g. HADOOP-1763), we increase number of handlers and the problem goes away. I think a big part of such a fix is increase in max queue size. I think we should make maxQsize per handler configurable (with a bigger default than 100). There are other improvements also (HADOOP-1841).

      Server keeps reading RPC requests from clients. When the number in-flight RPCs is larger than maxQsize, the earliest RPCs are deleted. This is the main feedback Server has for the client. I have often heard from users that Hadoop doesn't handle bursty traffic.

      Say handler count is 10 (default) and Server can handle 1000 RPCs a sec (quite conservative/low for a typical server), it implies that an RPC can wait for only for 1 sec before it is dropped. If there 3000 clients and all of them send RPCs around the same time (not very rare, with heartbeats etc), 2000 will be dropped. In stead of dropping the earliest RPCs, if the server delays reading new RPCs, the feedback to clients would be much smoother, I will file another jira regd queue management.

      For this jira I propose to make queue size per handler configurable, with a larger default (may be 500).


        1. handlerQueueSizeConfig.patch
          3 kB
          Konstantin Shvachko
        2. handlerQueueSizeConfig.patch
          4 kB
          Konstantin Shvachko
        3. handlerQueueSizeConfig.patch
          3 kB
          Konstantin Shvachko
        4. handlerQueueSizeConfig.patch
          3 kB
          Konstantin Shvachko
        5. handlerQueueSizeConfig-0.20.patch
          1 kB
          Konstantin Shvachko
        6. handlerQueueSizeConfig-0.21.patch
          3 kB
          Konstantin Shvachko


          This comment will be Viewable by All Users Viewable by All Users


            shv Konstantin Shvachko
            rangadi Raghu Angadi
            0 Vote for this issue
            6 Start watching this issue




                Issue deployment