Skip to content

Commit

Permalink
[#10] Make the bootstrap.mlockall setting configurable
Browse files Browse the repository at this point in the history
Note, the default value of the `mlockall` attribute is `false`
[elastic/elasticsearch#567].

However, in production environment, it is _highly_ recommended to
run with a `mlockall:true` setting -- thus the cookbook sets it to `true`.

If you encounter problems, try running with `mlockall:false`.

Closes #10.
  • Loading branch information
gcirne authored and karmi committed Jul 6, 2012
1 parent 8285d11 commit f927b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
# You may choose to configure it in your node configuration instead.
#
max_mem = "#{(node.memory.total.to_i - (node.memory.total.to_i/3) ) / 1024}m"
default.elasticsearch[:min_mem] = "128m"
default.elasticsearch[:max_mem] = max_mem
default.elasticsearch[:min_mem] = "128m"
default.elasticsearch[:max_mem] = max_mem
default.elasticsearch[:mlockall] = true

# === LIMITS ===
#
Expand Down
2 changes: 1 addition & 1 deletion templates/default/elasticsearch.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ path.logs: <%= node.elasticsearch[:log_path] %>

################################### Memory ####################################

bootstrap.mlockall: true
bootstrap.mlockall: <%= node.elasticsearch[:mlockall] %>

################################### Varia #####################################

Expand Down

0 comments on commit f927b9d

Please sign in to comment.