CDH Cluster frequent alarm (host frequent swapping)

Source: Internet
Author: User

Recently CDH cluster frequent alarm, because some host frequent swapping, greatly affected the performance of the cluster.

Later found a setting (/proc/sys/vm/swappiness) needs to be modified, the default value of 60

Setting the vm.swappiness Linux Kernel Parameter

vm.swappinessis a Linux Kernel Parameter This controls how aggressively memory pages are swapped to disk. It can set to a value between 0-100; The higher the value, the more aggressive the kernel are in seeking out inactive memory pages and swapping them to disk.

You can see if value is currently set-to- vm.swappiness looking at /proc/sys/vm ; Example:

Cat/proc/sys/vm/swappiness

On the most systems, it's set to $ by default. This isn't suitable for Hadoop clusters nodes, because it can cause processes to get swapped off even when there was free Memory available. This can affect stability and performance, and could cause problems such as lengthy garbage collection pauses for important System daemons. Cloudera recommends that's set this parameter to 0; For example:

CDH Cluster frequent alarm (host frequent swapping)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.