Bug 1496335
Summary: | Extreme Load from self-heal | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Mohit Agrawal <moagrawa> |
Component: | replicate | Assignee: | Mohit Agrawal <moagrawa> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | mainline | CC: | amukherj, aspandey, atumball, bkunal, bugs, ksubrahm, moagrawa, mrobson, nchilaka, ravishankar, rhs-bugs, sheggodu, storage-qa-internal, vbellur |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-4.0.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1478395 | Environment: | |
Last Closed: | 2018-03-15 11:17:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1478395, 1484446 | ||
Bug Blocks: | 1369781 |
Description
Mohit Agrawal
2017-09-27 06:00:20 UTC
REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#1) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#2) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#3) for review on master by MOHIT AGRAWAL (moagrawa) *** Bug 1496334 has been marked as a duplicate of this bug. *** REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#4) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#5) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#6) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#7) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#8) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#9) for review on master by MOHIT AGRAWAL (moagrawa) REVIEW: https://review.gluster.org/18404 (extras/devel-tools: Script to control CPU for selfheald after configure cpu_quota) posted (#10) for review on master by MOHIT AGRAWAL (moagrawa) Please add a public description to the bug. COMMIT: https://review.gluster.org/18404 committed in master by \"MOHIT AGRAWAL\" <moagrawa> with a commit message- extras: scripts to control CPU/MEMORY for any gluster daemon during runtime Problem: Sometime gluster daemons like glustershd can consume a lot of cpu and/ or memory if there is a large amount of data/ entries to be healed. Solution: Until we have some form of throttling/ QoS mechanisms built into gluster, we can use control groups for regulating cpu and memory of any gluster daemon using control-cpu-load.sh and control-mem.sh scripts respectively. Test: To test the control-cpu-load.sh script follow below procedure: 1) Setup distribute replica environment 2) Selfheal daemon off 3) Down one node from replica nodes 4) Create millions of files from mount point 5) Start down node 6) Check cpu usage for shd process in top command 7) Run script after provide shd pid with CPU quota value 8) Check again cpu usage for shd process in top command Note: control-mem.sh script can cap the memory usage of the process to the set limit, beyond which the process gets blocked. It resumes either when the memory usage comes down or if the limit is increased. BUG: 1496335 Change-Id: Id73c36b73ca600fa9f7905d84053d1e8633c996f Signed-off-by: Mohit Agrawal <moagrawa> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-4.0.0, please open a new bug report. glusterfs-4.0.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/announce/2018-March/000092.html [2] https://www.gluster.org/pipermail/gluster-users/ *** Bug 1460665 has been marked as a duplicate of this bug. *** |