{{category PCクラスタ}} *NICのbondingによる負荷分散  Debian squeeze上でNICをbondingすることで負荷分散する。これにより、マスターノードとスレーブノード間の通信の際にスレーブノードとの通信の競合を相対的に減らし実効帯域を向上させる。ここではIntel PRO/1000 PT Quad Port NICの全ポートをbondingする例を挙げる。他のNICでもslavesの記述が少し変わるだけでしょう。 */etc/modules loop bonding */etc/modprobe.d/bonding alias bond0 bonding options bonding mode=0 miimon=10000 */etc/network/interfaces auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet static address 固定IP netmask ネットマスク gateway ゲートウェイIP auto bond0 iface bond0 inet static address 192.168.99.1 netmask 255.255.255.0 network 192.168.99.0 broadcast 192.168.99.255 slaves eth1 eth2 eth3 eth4 *コマンド sudo apt-get install ifenslave -y sudo nano -w /etc/modules #以下の行を加える #bonding sudo nano -w /etc/modprobe.d/bonding #以下の行を加える #options bonding mode=0 miimon=10000 sudo nano -w /etc/network/interfaces #以下の行を加える #auto bond0 #iface bond0 inet static # address 192.168.99.1 # netmask 255.255.255.0 # network 192.168.99.0 # broadcast 192.168.99.255 # slaves eth1 eth2 eth3 eth4 sudo reboot