Skip to content

Commit

Permalink
Make performance tuning defaults more safe
Browse files Browse the repository at this point in the history
Only use 2G for puppetserver if at least 3G available. Don't use more than four instances, as 512MB memory per instance are recommended. 

closes GH-571
  • Loading branch information
kasimon authored and mmoll committed Jan 3, 2018
1 parent fb2da09 commit 9ed85e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,10 @@
} else {
$mem_in_mb = 0 + $::memorysize_mb
}
if $mem_in_mb >= 2048 {
if $mem_in_mb >= 3072 {
$server_jvm_min_heap_size = '2G'
$server_jvm_max_heap_size = '2G'
$server_max_active_instances = abs($::processorcount)
$server_max_active_instances = min(abs($::processorcount), 4)
} elsif $mem_in_mb >= 1024 {
$server_max_active_instances = 1
$server_jvm_min_heap_size = '1G'
Expand Down

0 comments on commit 9ed85e1

Please sign in to comment.