Disable Transparent Huge Page support
This commit is contained in:
parent
56a630eadb
commit
07e64177f1
@ -158,9 +158,8 @@ do
|
||||
MASTERS+=([${name}]=${master})
|
||||
done < ${CONF}
|
||||
|
||||
# If the cluster is "ok" don't do anything
|
||||
st=$(redisClusterIsOK ${LeaderIP} ${LeaderPort})
|
||||
[[ ${?} -eq 0 ]] && exit 0
|
||||
# Disable Transparent Huge Page support on kernel
|
||||
echo never > /sys/kernel/mm/transparent_hugepage/enabled
|
||||
|
||||
if [[ ${1} == "forget" ]]
|
||||
then
|
||||
@ -168,6 +167,10 @@ then
|
||||
exit ${?}
|
||||
fi
|
||||
|
||||
# If the cluster is "ok" don't do anything
|
||||
st=$(redisClusterIsOK ${LeaderIP} ${LeaderPort})
|
||||
[[ ${?} -eq 0 ]] && exit 0
|
||||
|
||||
|
||||
if [[ -e ${INITFLAG} ]]
|
||||
then
|
||||
@ -247,5 +250,6 @@ echo
|
||||
redisRun ${LeaderIP} ${LeaderPort} cluster info
|
||||
echo
|
||||
|
||||
touch ${INITFLAG}
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user