Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-389

Ability to Set Ulimits

    XMLWordPrintable

Details

    Description

      For Production we recommend setting ulmits

      docker run -d --ulimit nofile=40960:40960 --ulimit core=100000000:100000000 --ulimit memlock=100000000:100000000 --name db -p 8091-8094:8091-8094 -p 11210:11210 couchbase

       

      However there doesn't appear to be a way to pass these Args into the container from Pod. It appears support for this is still pending in kubernetes core.  https://github.com/kubernetes/kubernetes/issues/3595#issuecomment-378120067

       

      Here are the default ulimits set (minkube deployment)

      ulimit -a
       
      core file size          (blocks, -c) unlimited
       
      data seg size           (kbytes, -d) unlimited
       
      scheduling priority             (-e) 0
       
      file size               (blocks, -f) unlimited
       
      pending signals                 (-i) 23096
       
      max locked memory       (kbytes, -l) 64
       
      max memory size         (kbytes, -m) unlimited
       
      open files                      (-n) 1048576
       
      pipe size            (512 bytes, -p) 8
       
      POSIX message queues     (bytes, -q) 819200
       
      real-time priority              (-r) 0
       
      stack size              (kbytes, -s) 8192
       
      cpu time               (seconds, -t) unlimited
       
      max user processes              (-u) unlimited
       
      virtual memory          (kbytes, -v) unlimited
       
      file locks                      (-x) unlimited

       

      Maxfiles should be unlimited, but is 64!

      As this can cause issues under heavy load we'll need to figure out the way to set limits.

       

      Attachments

        Issue Links

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

          Activity

            People

              tommie Tommie McAfee (Inactive)
              tommie Tommie McAfee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty