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

Streaming requests should be terminated if they get excessively backed up

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • 7.1.0
    • Cheshire-Cat
    • ns_server
    • None
    • 1

    Description

      As seen in MB-45844, streaming requests can get severely backed up if the client isn't able to / doesn't process the updates sent on the socket quickly enough. In that case 2 GB of ns_server memory was consumed by the process serving the streaming request alone.

      It might work well to simply set a reasonable max heap size of say 100 MB on these processes. See: https://erlang.org/doc/man/erlang.html#process_flag_max_heap_size. 100 MB is ridiculously big, but it should prevent pathologically backed up clients from essentially causing a memory leak in ns_server.

      Attachments

        Issue Links

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

          Activity

            People

              dfinlay Dave Finlay
              dfinlay Dave Finlay
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty