Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring the Deployment Environment

Optimize memory management and network parameters to improve server performance.

  1. Disable the transparent huge page (THP) function.
    echo never > /sys/kernel/mm/transparent_hugepage/enabled
  2. Modify system control parameters.
    1. Open the file.
      vim /etc/sysctl.conf
    2. Press i to enter the insert mode and add the following content to the file:
      vm.overcommit_memory = 1
      net.core.somaxconn = 32767
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Make the configuration take effect.
      sysctl -p