Skip to content

Commit

Permalink
[TUTORIAL] [deploying-elasticsearch-with-chef-solo] Added correct lin…
Browse files Browse the repository at this point in the history
…k to Ruby code in cookbook
  • Loading branch information
karmi committed Mar 21, 2012
1 parent 2dcf90f commit 6a50342
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ ssh -t $SSH_OPTIONS $HOST "cat /usr/local/etc/elasticsearch/elasticsearch-env.sh
</pre>

Where does the value `Xmx4982m`, or nearly 5 GB, come from? How does _Chef_ know this value? Well,
[this Ruby code in the ElasticSearch cookbook](https://github.com/karmi/cookbook-elasticsearch/blob/master/attributes/default.rb#L14-21)
[this Ruby code in the ElasticSearch cookbook](https://github.com/karmi/cookbook-elasticsearch/blob/f5d7025/attributes/default.rb#L18-25)
did the computation, based on the total available memory on the EC2 large instance type (7.5 GB):

<pre class="prettyprint lang-ruby">
Expand Down

0 comments on commit 6a50342

Please sign in to comment.