hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2909) Improve IPC idle connection management
Date Tue, 03 Jun 2008 08:16:45 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601855#action_12601855
] 

Ankur commented on HADOOP-2909:
-------------------------------

Looks good, just one point
- Connection.timedOut() will not be able to differentiate between client crash and client
slowdown in case of pending RPC requests. Should we just wait for max idle time and time out
the connection if there has been no activity instead of checking pending RPC request ?

> Improve IPC idle connection management
> --------------------------------------
>
>                 Key: HADOOP-2909
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2909
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: ipc
>    Affects Versions: 0.16.0
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.18.0
>
>         Attachments: idleConn.patch
>
>
> IPC server determines if a connection is idle or not by checking if the connection does
not have any IO activity for a predefined max idle time. An idle connection will be closed
even if the connection still has outstanding requests or replies. This causes RPC failures
when a server becomes slow or if a request takes a long time to be served. In jira, I'd like
to propose the following changes to IPC idle management:
> 1. Add data structures to the IPC server that keep track of outstanding requests.
> 2. IPC server does not close a connection that has outstanding requests/replies even
when it has no IO activities for a while.
> 3. The default client-side max idle time should be in several minutes not 1 second. 
> 4. The server-side max idle time should be greater than the client-side max idle time,
for example, twice of the client-side max idle time. So server mainly deals with clients that
are crashed without closing 
> its connections. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message