-
Notifications
You must be signed in to change notification settings - Fork 188
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
Memory usage detection #1734
Comments
It may depend on the isolators you have configured. Do you have either the cgroups/mem or posix/mem isolators configured for your mesos slaves? |
Its posix. But how it detects cpu usage? Its posix isolator for cpu too. |
That slave memory view is based off of adding up task usages, so if tasks aren't showing it, the slaves will not show it. Mesos is the entity collecting the actual metric values in this case, not singularity. It will collect them differently based on how each isolator is implemented. If you hit an endpoint like {
"executor_id": "{id}",
"executor_name": "",
"framework_id": "{id}",
"source": "{task id}",
"statistics": {
"cpus_limit": 1.1,
"cpus_system_time_secs": 17.9,
"cpus_user_time_secs": 140.66,
"mem_anon_bytes": 714723328,
"mem_cache_bytes": 2695168,
"mem_critical_pressure_counter": 0,
"mem_file_bytes": 2695168,
"mem_limit_bytes": 1314914304,
"mem_low_pressure_counter": 0,
"mem_mapped_file_bytes": 106496,
"mem_medium_pressure_counter": 0,
"mem_rss_bytes": 714723328,
"mem_swap_bytes": 0,
"mem_total_bytes": 741773312,
"mem_unevictable_bytes": 0,
"timestamp": 1521811482.55977
}
} That endpoint on the mesos slave is what singularity is polling to get usage statistics. If it is not being reported there, either you are on an older mesos slave version, or your isolator does not collect those metrics. In which case the feature will not function |
This is what our mesos slaves return:
Much less than yours, so I guess it's because of posix isolator. Mesos itself is not too old (1.1) |
Ok, I'll leave this open so we can implement a version that works with the smaller subset of metrics |
We run into this issue too, and workaround it by using Not particularly proud of the hack, but still give us useful information. you can see the change at: |
Hi,
in our case, Singularity 0.18.2 can't detect memory usage for slaves:
but it can overall, for cluster:
Also, in request view, it shows 0 for memory usage:
but on task level, that's not the case:
The text was updated successfully, but these errors were encountered: