Skip to content
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

Make fig restart the container if memory goes beyond limit #464

Closed
phuongnd08 opened this issue Sep 2, 2014 · 3 comments
Closed

Make fig restart the container if memory goes beyond limit #464

phuongnd08 opened this issue Sep 2, 2014 · 3 comments

Comments

@phuongnd08
Copy link

Instead of limit the memory of container, I'd like to restart the container if its memory usage goes beyond a limit. Could that be done? This is because some (web) applications have memory leak and need to be restarted when the leak grow too much. But simply limit the memory will raise a lot of errors inside the app

@d11wtq
Copy link

d11wtq commented Sep 2, 2014

I think this is better done with tools like God or Bluepill inside the container. Fig is more about orchestration than about process management.

@stigkj
Copy link

stigkj commented Sep 2, 2014

As far as I know, this is not something that will be implemented by fig. You should look at something like cAdvisor, although I am not sure they have implemented this yet.

@phuongnd08
Copy link
Author

@d11wtq Fair enough. Look like keeping God in the foreground and have God monitor my webapp process should do the work. Thanks man.

@stigkj So far cAdvisor is just read only api for resource. I think it would be overkill for simple process memory management.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants