Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2575

cf-serverd maxconnections does not adjust "nofile" ulimit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: 3.7.4, 3.10.0
    • Fix Version/s: 3.10.1
    • Component/s: cf-serverd
    • Labels:
      None

      Description

      It's a common issue that if maxconections is set too high, then errors start appearing with the message Too many open files and plenty of file copies are being corrupted. The solution is to permanently change the OS nofile hard limits, by adding the following lines in limits.conf (with appropriate number, usually 2x maxconnections) :

      root hard nofile 10000
      root soft nofile 10000
      

      This should be automatically set by cf-serverd when maxconnections is read from the configuration.

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel