tech_memo/linux
モニター †
接続コネクション情報 †
[root@testserver07 ~]# ipvsadm -Lnc
IPVS connection entries
pro expire state source virtual destination
TCP 11:26 ESTABLISHED 192.168.0.2:50205 192.168.22.157:8180 192.168.22.111:8180
TCP 11:27 ESTABLISHED 192.168.0.2:50206 192.168.22.157:8180 192.168.22.111:8180
TCP 11:26 ESTABLISHED 192.168.0.2:50199 192.168.22.157:8180 192.168.22.112:8180
TCP 11:27 ESTABLISHED 192.168.0.2:50201 192.168.22.157:8180 192.168.22.111:8180
TCP 11:26 ESTABLISHED 192.168.0.2:50207 192.168.22.157:8180 192.168.22.112:8180
Timeout値変更 †
[root@testserver07 ~]# ipvsadm -l --timeout
Timeout (tcp tcpfin udp): 900 120 300
[root@testserver07 ~]# ipvsadm --set 1800 120 300
[root@testserver07 ~]# ipvsadm -l --timeout
Timeout (tcp tcpfin udp): 1800 120 300
手順書 †
手順書不明点 †
kenerlパラメータ設定 (LVSサーバ) †
- net.ipv4.vs.expire_nodest_conn = 1
- 物理サーバがダウンしている場合に、各種プロトコルが持つタイムアウトの前にコネクションを切断するために使用する。
kenerlパラメータ設定 (MMサーバ) †
net.ipv4.conf.tunl0.arp_ignore = 1
net.ipv4.conf.tunl0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.allp_announce = 2
- net.ipv4.conf.tunl0.rp_filter = 0 (RHEL6と5で値の意味が違うらしい)
Performance Tunning †
LVSを通しての通信が遅い †
- OFFにする
[root@testserver10 ha.d]# ethtool -K eth0 gro off
- OFF後
[root@testserver10 ha.d]# ethtool -k eth0
Offload parameters for eth0:
rx-checksumming: on
tx-checksumming: on
scatter-gather: on
tcp-segmentation-offload: on
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: off
large-receive-offload: off
最新の20件
2023-01-26
2022-11-11
2022-03-02
2022-02-03
2021-11-18
2021-11-11
2021-10-27
2021-10-04
2021-09-30
2021-08-24
2021-04-01
2021-02-25
2020-08-13
2020-05-22
2020-04-16
2020-04-15
2020-03-23
2020-03-12
2020-02-27
今日の20件
- counter: 588
- today: 1
- yesterday: 0
- online: 2