当前位置: 首页 > news >正文

大连网站制作培训设计公司logo大全

大连网站制作培训,设计公司logo大全,网站建设与运营总结,东莞企业宣传片制作公司一、 DR模式的特点 直接路由#xff1a; 在LVS_DR模式下#xff0c;负载均衡器不修改数据包的IP地址#xff0c;只修改目的MAC地址。这使得数据包可以直接路由到后端实际服务器上#xff0c;而不需要返回到负载均衡器。 高性能#xff1a; 由于数据包在传输过程中不需要回…一、 DR模式的特点 直接路由 在LVS_DR模式下负载均衡器不修改数据包的IP地址只修改目的MAC地址。这使得数据包可以直接路由到后端实际服务器上而不需要返回到负载均衡器。 高性能 由于数据包在传输过程中不需要回到负载均衡器LVS_DR模式具有较低的延迟提供了高性能的负载均衡。 负载均衡器无状态 在LVS_DR模式下负载均衡器是无状态的因为它不处理响应流量。这降低了负载均衡器的负担使其更容易扩展和维护。 后端服务器真实IP 客户端直接与后端实际服务器通信因此客户端看到的是后端服务器的真实IP地址而不是负载均衡器的IP地址。 ARP协议处理 在LVS_DR模式下负载均衡器需要处理ARP地址解析协议请求以便将数据包正确路由到后端实际服务器。通常负载均衡器会使用VIPVirtual IP来响应ARP请求。 二、LVS-DR模式工作过程 1. 客户端通过VIP将访问请求报文源IP为客户端IP目的IP为VIP发送到调度器 2. 调度器通过调度算法选择最适合的节点服务器并重新封装数据报文将源MAC改为调度器的       MAC目的MAC改为节点服务器的MAC地址再通过交换机转发请求给节点服务器 3. 节点服务器收到请求报文后确认目的MAC和目的IP无误后解包并送到应用层进行处理 4. 节点服务器在返回响应报文前会先重新封装报文源IP为VIP目的为客户端IP再将响应报文先通过lo接口传送给物理网卡再通过物理网卡发送给客户端 三、LVS-DR模式部署过程 第一步部署共享服务主机IP192.168.136.110 95 systemctl stop firewalld.service96 systemctl disable firewalld.service97 setenforce 098 yum install nfs-utils rpcbind -y99 systemctl start rpcbind.service100 systemctl start nfs.service101 systemctl enable nfs.service102 systemctl enable rpcbind.service103 mkdir -p /var/www/html/{cxk,xhz}104 cd /var/www/html/105 ls106 echo this is cxk_web01! cxk/test.html107 echo this is xhz_web02! xhz/test.html108 cat cxk/test.html 109 cat xhz/test.html 110 vim /etc/exports111 systemctl enable --now rpcbind nfs112 showmount -e113 systemctl stop firewalld114 setenforce 0115 showmount -e116 systemctl enable --now rpcbind nfs117 showmount -e118 vim /etc/exports119 systemctl status rpcbind.service 120 systemctl status nfs121 showmount -e122 exportfs -a123 showmount -e第二步配置节点服务器192.168.136.120 192.168.136.130  两台web节点服务器相同的操作 77 systemctl restart network.service78 systemctl disable --now firewalld79 setenforce 080 showmount -e 192.168.136.11081 cd /etc/yum.repos.d/82 ls83 mkdir bak84 mv *.repo bak85 rz -E86 ls87 yum -y install nginx88 vim /etc/fstab 89 mount -a90 df -h91 ls92 ls /usr/share/nginx/html/93 cat te94 ls /usr/share/nginx/html/95 cat /usr/share/nginx/html/test.html 96 vim /etc/nginx/nginx.conf 97 systemctl restart nginx98 vim /etc/sysconfig/network-scripts/ifcfg-ens3399 systemctl restart network nginx web2节点服务器的后续操作 第三步配置虚拟 IP 地址192.168.136.200 两台web节点服务器相同的操作 68 vim nginx.conf 69 cat /etc/sysconfig/network-scripts/ifcfg-ens33 70 cd /etc/sysconfig/network-scripts/71 ls72 vim ifcfg-ens33 73 cat /proc/net/ip_vs74 systemctl restart network75 vim /etc/sysctl.conf 76 cp ifcfg-lo ifcfg-lo:077 ls78 vim ifcfg-lo:079 cp ifcfg-ens33 ifcfg-lo:080 vim ifcfg-lo:081 route add -host 192.168.136.200 dev lo:082 cat ifcfg-lo:083 systemctl restart network84 ip a85 ifconfig 86 route add -host 192.168.136.200 dev lo:087 route -n88 historyweb1网卡设置 web2网卡设置 第四步调整内核的 ARP 响应参数以阻止更新 VIP 的 MAC 地址避免发生冲突 # sysctl settings are defined through files in # /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/. # # Vendors settings live in /usr/lib/sysctl.d/. # To override a whole file, create a new file with the same in # /etc/sysctl.d/ and put new settings there. To override # only specific settings, add a file with a lexically later # name in /etc/sysctl.d/ and put new settings there. # # For more information, see sysctl.conf(5) and sysctl.d(5). net.ipv4.conf.lo.arp_ignore 1 #系统只响应目的IP为本地IP的ARP请求 net.ipv4.conf.lo.arp_announce 2 #系统不使用IP包的源地址来设置ARP请求的源地址而选择发送接口的IP地址 net.ipv4.conf.all.arp_ignore 1 net.ipv4.conf.all.arp_announce 2 sysctl -p 两台web服务器同样操作 第五步配置负载调度器192。168.136.100 102 ifconfig 103 cd /etc/sysconfig/network-scripts104 ls105 cp ifcfg-ens33 ifcfg-ens33:0106 vim ifcfg-ens33:0 #配置虚拟 IP 地址107 systemctl restart network108 vim /etc/sysctl.conf 109 yum -y install ipvsadm.x86_64 #安装服务110 ipvsadm-save /etc/sysconfig/ipvsadm #不做这一项服务启动不了111 systemctl restart ipvsadm.service 112 modprobe ip_vs #启动ip_vs模块113 cat /proc/net/ip_vs #查看启动结果/ip_vs版本#配置负载分配策略114 ipvsadm -ln #查看节点状态Route代表 DR模式115 ipvsadm -C #清空规则116 ipvsadm -ln117 ipvsadm -A -t 192.168.136.200:80 -s rr118 ipvsadm -a -t 192.168.136.200:80 -r 192.168.136.120:80 -g #若隧道模式-g替换为-i119 ipvsadm -a -t 192.168.136.200:80 -r 192.168.136.130:80 -g120 ipvsadm121 ipvsadm -ln122 systemctl disable --now firewalld123 setenforce 0124 vim /etc/sysctl.conf #调整 proc 响应参数125 history第六步测试
http://www.pierceye.com/news/15502/

相关文章:

  • 网页设计公司建设网站导航仪企业网站源码
  • 网站流量 seo成都房地产公司排行榜
  • 福建省城乡建设网站微信平台商城开发
  • 新手做的网站东莞企业建设网站官网有限公司
  • 有什么做动画的网站wordpress 下载插件xydown
  • 网站建设设备预算安阳网站建设兼职
  • 静态班级网站欧米伽男士手表官方网站
  • 做网站客户端长春网站推广优化公司哪家好
  • wordpress制作的网站模板国企招聘网最新招聘2023
  • 网站建设便宜的公司qq浏览器官网
  • 济南网站建设公司 推荐行知科技中国建设行业网站
  • 中企动力网站优化阿里云服务器租用价格表
  • 专门做库存处理的网站青岛网站域名备案查询
  • 红色系 网站优享微信网站建设
  • 成都装修网站建设多少钱网页微信版官网登录仅传输文件
  • 网站建设公司知道万维科技网页设计网站长沙
  • 域名申请了怎么做网站黑马程序员怎么样
  • 甘肃省住房和城乡建设厅网站职称证查询淘宝关键词优化技巧
  • 怎么在别人网站做跳转网站建设发展状况
  • 浙江省建设厅门户网站wordpress 编辑图片
  • wordpress网站嵌入商城html静态网页制作案例
  • 山东网站制作石家庄网站制作费用
  • 做购物比价的网站字体设计欣赏网站
  • 茌平县建设局网站容桂网站制作效率好
  • 上海网站制作与推广网站建设文化报价
  • 上海网站建设报价书如何建立企业网站
  • 网站地图怎么制作网站换ip对优化有影响吗
  • 网站 目录 结构营销型网站建设排名
  • asp 精品网站制作建筑工程网目密度
  • 网站开发报价表模板男科医院网站建设