-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Bug]: opensearch_node container does not restart on error #90
Comments
Hey @tuotempo can you please share the full docker run command you used? |
Hello,
I before created a network with I also tried your sample with
And the 2 containers remains stopped. Regards. |
Hi @tuotempo,
That means you need to increase the max map count value:
You can follow this readme on more information of the docker settings: Thanks. |
Hi @peterzhuamazon, But, as stated in my first post, issue is that my Thank you very much for your support. |
Hello @prudhvigodithi Thanks again. |
Hey @tuotempo if would be great if you can help you find the exact cause of termination is it still with JVM? |
The teminateProcess is by design in the sense of if there is failure just kill both OS and PA process and stop the container. |
Hello, @prudhvigodithi the cause of termination was an @peterzhuamazon As about Thanks again for your support. |
Hi, we are in the process to remove this dependency now. Thanks. |
hello, @tuotempo ,just want to update you that the activity mentioned above, opensearch-project/opensearch-build#2876, had been completed in sometime back, and we would love to get your feedback if it did resolve the issue ( by disabling the PA in your case/env ), or if you still see the problem over there, thanks!! |
Hi @jordarlu i can confirm that disabling PA the exit code of opensearch process is correctly propagated into docker and the policy works as expected |
Thanks a lot for prompt reply @tuotempo , I really appreciate it!! I will close this issue now, and pls keep letting us know if you find any other issues. Thank You. |
Describe the bug
I am running an opensearch docker container, that sometimes exits with code 0 even if I see errors on logs
To reproduce
I have created the container with this java options inside Env:
"OPENSEARCH_JAVA_OPTS=-Xms8m -Xmx8m"
so that the
java.lang.OutOfMemoryError: Java heap space
is triggered almost immediately after the container starts.Expected behavior
I have set the container's restart policy to
on-failure
, so I expect that container restarts automatically in those situations.Screenshots
No response
Host / Environment
Additional context
output of
docker ps -a --no-trunc
:Referring to issue 2143 (which is closed, but not solved), problem is still present in version 1.3.3.
Relevant log output
The text was updated successfully, but these errors were encountered: