[ 
https://issues.apache.org/jira/browse/GEODE-6035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16702400#comment-16702400
 ] 

ASF subversion and git services commented on GEODE-6035:
--------------------------------------------------------

Commit 0eb9444fe7f294ed9796920fe5df0cca802cd634 in geode's branch 
refs/heads/develop from [~bschuchardt]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=0eb9444 ]

GEODE-6035 Increase backlog for peer-to-peer connection formation

I've made a sweep through the code to make TCP/IP backlog defaults
consistent.  All of them now default to 1280 but all are limited
by the operating system limit.  On Linux this is usually 128 and
is configured with the somaxconn setting.

The figure 1280 was recommended by Pivotal field engineers.

This also adds the following LinuxSystemStats:

    tcpExtSynCookiesRecv    The number of TCP/IP SYN cookies received due to a 
full server socket backlog.
                            If this is non-zero consider disabling SYN cookies 
because they form sub-optimal connections.
                            units: cookies received
    tcpExtSynCookiesSent    The number of TCP/IP SYN cookies sent due to a full 
server socket backlog.
                            If this is non-zero consider disabling SYN cookies 
because they form sub-optimal connections.
                            units: cookies sent
    tcpExtListenDrops       The number of TCP/IP connection requests that have 
been dropped due to a full backlog.
                            If this is large increase the OS SOMAXCONN setting 
and increase socket backlog settings.
                            units: requests
    tcpExtListenOverflows   The number of TCP/IP connection requests that could 
not be queued due to a small backlog.
                            These are either dropped (tcpExtListenDrops) or 
handled via cookies (tcpSynCookiesSent).
                            In either case you should consider increasing 
SOMAXCONN and increasing backlog settings.
                            units: requests
    soMaxConn               Maximum TCP/IP server socket connection request 
backlog
                            units: connection requests


> Increase backlog for peer-to-peer connection formation
> ------------------------------------------------------
>
>                 Key: GEODE-6035
>                 URL: https://issues.apache.org/jira/browse/GEODE-6035
>             Project: Geode
>          Issue Type: Improvement
>          Components: membership
>            Reporter: Bruce Schuchardt
>            Assignee: Bruce Schuchardt
>            Priority: Minor
>              Labels: SmallFeature
>
> The default ServerSocket backlog is 10 but it should be raised to something 
> more like 500.  I think the supposition was that an attempt to connect when 
> the backlog is full would cause an IOConnection but experiments show that 
> this isn't the case.  The Java socket implementation keeps trying for 
> something like 25 seconds before giving up.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to