Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7745

Windows installation sometimes exhausts TCP port allocation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1.0
    • Component/s: installer
    • Security Level: Public
    • Labels:
    • Sprint:
      PCI Team - Sprint 8

      Description

      We've seen a few cases where either the initial installation or the process of clustering two nodes together can cause Couchbase to exhaust the number of TCP ports available on Windows systems. This is made worse by the default settings on some Windows installations of only a few thousand available ports and has been worked around by: http://msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx

      This bug is to investigate both the cause of this, and what the Couchbase server can potentially do to force the increasing of this limit.

        Issue Links

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

          Activity

          Hide
          siri Sriram Melkote added a comment - - edited

          Attached is the registry patch to change this, and also reduce TCP_TIME_WAIT timeout (which is often the cause of exhaustion), and also to prefer IPv4 over IPv6. This should together make Windows behave the way we'd expect it to. The fix I'm proposing is to ask the user in the installer if we can install this, and if affirmative, apply these patches at install time.

          Show
          siri Sriram Melkote added a comment - - edited Attached is the registry patch to change this, and also reduce TCP_TIME_WAIT timeout (which is often the cause of exhaustion), and also to prefer IPv4 over IPv6. This should together make Windows behave the way we'd expect it to. The fix I'm proposing is to ask the user in the installer if we can install this, and if affirmative, apply these patches at install time.
          Hide
          maria Maria McDuff (Inactive) added a comment -

          bug scrub: sri – would you have time to fix this in 2.0.2? or shld we defer this for 2.0.2 release?

          Show
          maria Maria McDuff (Inactive) added a comment - bug scrub: sri – would you have time to fix this in 2.0.2? or shld we defer this for 2.0.2 release?
          Hide
          maria Maria McDuff (Inactive) added a comment -

          moving to 2.1.

          Show
          maria Maria McDuff (Inactive) added a comment - moving to 2.1.
          Hide
          siri Sriram Melkote added a comment -

          The MaxUserPort setting should reduce the occurrence of this, which is fixed in MB-7902.
          Alk says TIME_WAIT does not have a beneficial account.
          Considering both, I'll mark this as fixed.
          http://review.couchbase.org/#/c/26496/

          Show
          siri Sriram Melkote added a comment - The MaxUserPort setting should reduce the occurrence of this, which is fixed in MB-7902 . Alk says TIME_WAIT does not have a beneficial account. Considering both, I'll mark this as fixed. http://review.couchbase.org/#/c/26496/
          Hide
          maria Maria McDuff (Inactive) added a comment -

          pls verify / close.

          Show
          maria Maria McDuff (Inactive) added a comment - pls verify / close.
          Hide
          deepkaran.salooja Deepkaran Salooja added a comment -

          Verified with build 2.1.0-710-rel. Windows installer prompts the user to increase MaxUserPort and if answered in affirmative, changes it to 60000.

          Show
          deepkaran.salooja Deepkaran Salooja added a comment - Verified with build 2.1.0-710-rel. Windows installer prompts the user to increase MaxUserPort and if answered in affirmative, changes it to 60000.

            People

            • Assignee:
              deepkaran.salooja Deepkaran Salooja
              Reporter:
              perry Perry Krug
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Gerrit Reviews

                  There are no open Gerrit changes