diff options
author | Mohit Agrawal <moagrawa@redhat.com> | 2017-09-27 11:37:28 +0530 |
---|---|---|
committer | Aravinda VK <avishwan@redhat.com> | 2017-11-13 11:07:06 +0000 |
commit | 2c066c4c365e77421d1009851144efae0b028628 (patch) | |
tree | afa97b3e494ad17c7a7ad471eda1f61fa778d08b /extras/glusterd.vol.in | |
parent | 05f9c13f4d69e4113f5a851f4097ef35ba3f33b2 (diff) |
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@redhat.com>
Diffstat (limited to 'extras/glusterd.vol.in')
0 files changed, 0 insertions, 0 deletions