-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot allocate memory on elkstack::single #50
Comments
20% (400mb) of performance1-2 heap for Elasticsearch is very, very small. Could you mention which cloud image you used and/or point to the recipe you were using (if you did it in a wrapper)? This may be specific to a particular cloud image. Note that the defaults are 20% logstash heap, 40% elasticsearch heap, so that still leaves 40% of the box free. I wonder what else is running that is consuming 40% of the system memory. |
I've changed the workaround so it's applied to test-kitchen only, I've sent you more details in private (irc) |
I don't know, I've tried to monitor memory while the chef-run was happening but I've not spotted anything except chef processes.By example the total memory used was 1500MB/2000MB after ES and logstash finished to start, but still the chef-run stopped before the end due to a lack of memory, I've not been able to see what was filling the last 500MB. |
I'm not sure what to do next. I don't like the workaround since we really should be using more than 500mb on a 2gb server, but perhaps 2gb of RAM is too small for the stack if chef-client eats so much memory it won't converge. |
Hi,
Some tests were failing while trying to integrate ELKstack::single recipe. The node was not able to converge due to a lack of memory preventing to install a simple nginx package.
The stack is integrated like that:
Tests were done on a Rackspace performance1-2 flavor instance running only the recipe above. It works well after the second chef-run so I suspect we do something consuming too much memory during the first run?
A work around for now has been to reduce ES memory usage :
The text was updated successfully, but these errors were encountered: