[文档] lvs 操作指南 负载均衡 lvs 操作手册 pdf文档 |
负载均衡 lvs 操作指南
集群模式‐配置(单台) a) 安装系统和工具 # 参见lvs-fullnat-synproxy.tar 中的README, 包括 LVS kernel 和keepalived 等 的编译方法; b) 内核启动参数 在kernel 一行中,添加“nohz=off ” 注:如果不关闭nohz,大压力下CPU0 可能会消耗过高,压力不均匀; c) Sysctl 配置 路径:/etc/sysctl.conf # configure for lvs net.ipv4.conf.all.arp_ignore = 1 net.ipv4.conf.all.arp_announce = 2 net.core.netdev_max_backlog = 500000 d) 配置网卡参数 路径:/etc/rc.local 关闭网卡LRO 和GRO # ethtool -K eth0 gro off # ethtool -K eth0 lro off 绑定网卡中断 # set_irq_affinity eth0 #脚本参见附录,该脚本是ixgbe/igb driver 网卡 e) 关闭系统参数 路径:/etc/rc.local 关闭irqbalance # service irqbalance stop # chkconfig ‐‐level 2345 irqbalance off f) LocalAddress 配置 路径:/etc/rc.local Local address 绑定到内网(下联)网卡上 ip addr add 192.168.100.1/32 dev eth1 ip addr add 192.168.100.2/32 dev eth1 ip addr add 192.168.100.3/32 dev eth1 ip addr add 192.168.100.4/32 dev eth1 ip addr add 192.168.100.5/32 dev eth1 g) Zebra.conf 路径:/etc/quagga/zebra.conf 启动方式:/usr/sbin/zebra ‐d ‐f /etc/quagga/zebra.conf 链接:https://pan.baidu.com/s/1t-4XK0zkBGjDSTj0AMx5lw 密码:
购买主题
已有 6 人购买
本主题需向作者支付 10 金币 才能浏览
|
相关帖子 |
| |
| |
| |
| |
| |
| |