Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-448

Change default max-active-instances to not exceed 4 JRubies



    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • SERVER 1.0.8, SERVER 2.1.0
    • None
    • None
    • 1
    • Server Jade 2015-03-18, Server Jade 2015-04-01


      Longer-term, we need to make some more refined adjustments to the algorithm / process that Puppet Server uses to calculate the default max-active-instances for JRubies. The details of the longer-term plans are covered by SERVER-364.

      For the forthcoming release of 1.X Puppet Server, however, we need to at least make a targeted improvement which caps this default number at a value that should be safer to use with the default 2Gb JVM Heap which is configured.

      For the next release, this ticket proposes changing default-pool-size in "jruby_puppet_core.clj" from...

      (+ 2 (ks/num-cpus))


      (min 4 (max (- (ks/num-cpus) 1) 1))

      The above would ensure that by default the number of JRubies would never exceed 4 and would never exceed 1 less the number of cores on the node. The latter would be useful for ensuring that the master doesn't consume every available core on the node under high workload situations, at least by default.
      Risk assessment: Medium (QA will perform functional review, but no automated testing)
      Probability: Low (small simple code change)
      Severity: Low (High, could cause OOM errors)


        Issue Links



              erik Erik Dasher
              jeremy.barlow Jeremy Barlow
              Erik Dasher Erik Dasher
              0 Vote for this issue
              2 Start watching this issue



                Zendesk Support