Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-171

Too many open connections when running view queries

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      CentOS 6.4, libcouchbase 2.0.7, there 4 nodes in target cluster.

      Description

      I start multiple clients so that they perform about 2000 queries per second.

      Eventually I receive lots of errors:

      [09/Aug/2013 02:18:20] WARNING - <RC=0x18[Connection failure], There was a problem scheduling your request, or determining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network issues., C Source=(src/http.c,317)>

      Apparently I see many connections in TIME_WAIT state (60000-80000 connections):

      tcp 0 0 172.23.96.10:52484 172.23.96.18:8092 TIME_WAIT -
      tcp 0 0 172.23.96.10:52996 172.23.96.16:8092 TIME_WAIT -
      tcp 0 0 172.23.96.10:52997 172.23.96.16:8092 TIME_WAIT -
      tcp 0 0 172.23.96.10:52994 172.23.96.16:8092 TIME_WAIT -

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          mnunberg Mark Nunberg added a comment -

          Libcouchbase doesn't have keepalive implemented yet, but we're working on it..

          Show
          mnunberg Mark Nunberg added a comment - Libcouchbase doesn't have keepalive implemented yet, but we're working on it..
          Hide
          pavelpaulau Pavel Paulau added a comment -

          Is it expected any time soon?

          Show
          pavelpaulau Pavel Paulau added a comment - Is it expected any time soon?
          Hide
          mnunberg Mark Nunberg added a comment -

          It's probably going to be in version 2.2 of libcouchbase.. so give about a month -

          Show
          mnunberg Mark Nunberg added a comment - It's probably going to be in version 2.2 of libcouchbase.. so give about a month -
          Hide
          avsej Sergey Avseyev added a comment - - edited

          Fixed in libcouchbase http://review.couchbase.org/28085
          Will be released in 2.1

          (not really keep-alive implemented, but rather asking server to close the connection)

          Show
          avsej Sergey Avseyev added a comment - - edited Fixed in libcouchbase http://review.couchbase.org/28085 Will be released in 2.1 (not really keep-alive implemented, but rather asking server to close the connection)
          Hide
          mnunberg Mark Nunberg added a comment -

          fixed as LCB

          Show
          mnunberg Mark Nunberg added a comment - fixed as LCB

            People

            • Assignee:
              mnunberg Mark Nunberg
              Reporter:
              pavelpaulau Pavel Paulau
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes