You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "haosdent (JIRA)" <ji...@apache.org> on 2019/07/12 18:06:00 UTC
[jira] [Created] (MESOS-9889) Master CPU high due to unexpected
foreachkey behaviour in Master::__reregisterSlave
haosdent created MESOS-9889:
-------------------------------
Summary: Master CPU high due to unexpected foreachkey behaviour in Master::__reregisterSlave
Key: MESOS-9889
URL: https://issues.apache.org/jira/browse/MESOS-9889
Project: Mesos
Issue Type: Bug
Reporter: haosdent
At https://github.com/apache/mesos/blob/9932550e9632e7fbb9a45b217793c7f508f57001/src/master/master.cpp#L7707-L7708
{code}
void Master::__reregisterSlave(
...
foreachkey (FrameworkID frameworkId,
slaves.unreachableTasks.at(slaveInfo.id())) {
...
foreach (TaskID taskId,
slaves.unreachableTasks.at(slaveInfo.id()).get(frameworkId)) {
{code}
Our case is when network flapping, 3~4 agents reregister, then master would CPU full and could not process any requests during that period.
After change
{code}
- foreachkey (FrameworkID frameworkId,
- slaves.unreachableTasks.at(slaveInfo.id())) {
+ foreach (FrameworkID frameworkId,
+ slaves.unreachableTasks.at(slaveInfo.id()).keys()) {
{code}
The problem gone.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)