Skip to content

Commit

Permalink
调整内核参数,避免kernel bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhegeshijiehuiyouai committed Aug 17, 2023
1 parent c32ec0b commit 0e86919
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 05-system-tools/03-init-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ fs.file-max = 50000000
# elasticsearch required
vm.max_map_count = 262184
# avoid kernel bug: task blocked for more than 120 seconds
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
_EOF_
sysctl -p &> /dev/null
}
Expand Down

0 comments on commit 0e86919

Please sign in to comment.