Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

galaxy killer #276

Merged
merged 5 commits into from
Dec 22, 2015
Merged

galaxy killer #276

merged 5 commits into from
Dec 22, 2015

Conversation

imotai
Copy link
Collaborator

@imotai imotai commented Dec 21, 2015

galaxy 在创建task时,会多给任务加50M内存,以便在不触发cgroup oom前让galaxy killer把 task kill 掉。
galaxy agent会 200毫秒检查一下任务使用内存(rss + page cache),采集还是使用 cgroup里面的memory.stat, 如果内存使用mem_used + 50m >= 任务设置的limit 会触发galaxy killer ,然后任务重启

@@ -1031,16 +1053,6 @@ bool TaskManager::HandleInitTaskMemCgroup(std::string& subsystem , TaskInfo* tas
return false;
}
}
const int GROUP_KILL_MODE = 1;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用默认值 为0

@imotai imotai changed the title support ulimit & galaxy killer galaxy killer Dec 21, 2015
@imotai
Copy link
Collaborator Author

imotai commented Dec 22, 2015

已经小流量上线验证

imotai added a commit that referenced this pull request Dec 22, 2015
@imotai imotai merged commit c4190cf into baidu:master Dec 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant