[chef] Re: Re: what is the chefonic method to set ES_HEAP_SIZE=


Chronological Thread 
  • From: Peter Burkholder < >
  • To: " " < >
  • Subject: [chef] Re: Re: what is the chefonic method to set ES_HEAP_SIZE=
  • Date: Mon, 24 Nov 2014 21:36:26 -0500

"#{(node['memory']['total'].to_i * 0.5).floor / 1024}m"

will give you something like "4096m"


On Mon, Nov 24, 2014 at 9:12 PM, Noah Kantrowitz < " target="_blank"> > wrote:
Or, if you are not using the Really Bad™ method_missing syntax:

node['memory']['total']

--Noah

On Nov 24, 2014, at 8:58 PM, Daniel Condomitti < "> > wrote:

> node.memory.total
> On Monday, November 24, 2014 at 5:54 PM, David Montgomery wrote:
>
>> Hi,
>>
>> I want to set ES_HEAP_SIZE to half of server ram.  How do I get server ram from chef so I can set?
>>
>> Thanks
>>
>





Archive powered by MHonArc 2.6.16.

§