大數據|最全的LVS服務器集群系統手冊,你只需要這5點

echo " Please stop the irqbalance service and/or execute"

echo " 'killall irqbalance'"

fi

#

# Set up the desired devices.

#

for DEV in $*

do

for DIR in rx tx TxRx

do

MAX=`grep $DEV-$DIR /proc/interrupts | wc -l`

if [ "$MAX" == "0" ] ; then

MAX=`egrep -i "$DEV:.*$DIR" /proc/interrupts | wc -l`

fi

if [ "$MAX" == "0" ] ; then

echo no $DIR vectors found on $DEV

continue

fi

for VEC in `seq 0 1 $MAX`

do

IRQ=`cat /proc/interrupts | grep -i $DEV-$DIR-$VEC"$" | cut -d: -f1 | sed "s/ //g"`

if [ -n "$IRQ" ]; then

set_affinity

else

IRQ=`cat /proc/interrupts | egrep -i $DEV:v$VEC-$DIR"$" | cut -d: -f1 | sed "s/ //g"`

if [ -n "$IRQ" ]; then

set_affinity

fi

fi

done

done

done

這裡涵蓋的知識比較多,但如果你接觸IT這一行,服務方面的知識遲早會用到。負載均衡或者冗餘鏈路這種思想,是每個公司的要求。

畢竟如果機器或者服務器宕掉,生產的業務怎麼辦?存儲的數據怎麼辦?隨便一種都是大事件。


分享到:


相關文章: