-
Notifications
You must be signed in to change notification settings - Fork 712
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
Set the memory and open files maximums based on the host #1225
Conversation
I think so... 2x checking. On Tuesday, April 5, 2016, Paul Bellamy [email protected] wrote:
|
You are right, we're taking the max of the samples I think, which might be more appropriate for sparklines? I will try w/ real max soon. But this works great on MoC! Awesome stuff, LGTM from a behavioural POV |
// MaxMemory is the type for the function used to fetch the hosts' max memory. | ||
type MaxMemory func() (uint64, error) | ||
|
||
// OpenFilesLimit is the type for the function used to fetch the hosts' open files limit. |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
process memory limit is not cgroup-aware
1a99bfc
to
b970b05
Compare
Ok, I updated this to get per-process File limit and memory limits. Unfortunately, the memory limits are not cgroup aware (because the |
Now that we have the real max!! \o/
Updated js code to use Proc -> Container memory doesn't seem to "add up", e.g. LGTMTM. |
Fixes #1149
Now the max on Memory, and Open Files metrics are set based on the host.
However, it seems like the sparklines don't use the max value? @davkal @foot ?