07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡
admin
2023-03-04 16:22:32
0

[在此处输入文章标题]

《系统工程师实战培训》

-07-部署邮件系统

-13-Exchange Server 2019-

配置-高可用-Linux 负载均衡

作者:学 无 止 境

QQ交流群:454544014


07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

telnet mail.i-x-Cloud.com 25

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

http://mail.i-x-cloud.com:1080/haproxyadmin?stats

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

C:\Users\Administrator.i-x-Cloud>nslookup

默认服务器: 011-DC01.i-x-Cloud.com

Address: 10.1.1.11

> mail.i-x-Cloud.com

服务器: 011-DC01.i-x-Cloud.com

Address: 10.1.1.11

名称: mail.i-x-Cloud.com

Address: 10.1.1.55

> autodiscover.i-x-Cloud.com

服务器: 011-DC01.i-x-Cloud.com

Address: 10.1.1.11

名称: autodiscover.i-x-Cloud.com

Address: 10.1.1.55

> set type=mx

> i-x-Cloud.com

服务器: 011-DC01.i-x-Cloud.com

Address: 10.1.1.11

i-x-Cloud.com MX preference = 10, mail exchanger = mail.i-x-Cloud.com

mail.i-x-Cloud.com internet address = 10.1.1.55

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

telnet mail.i-x-Cloud.com 25

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

************************************************************************************************

将第1台邮件服务器关机!将第2台邮件服务器关机!

只保证第3台邮件服务器开机!

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

telnet mail.i-x-Cloud.com 25

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

************************************************************************************************

将第2台邮件服务器开机!将第3台邮件服务器关机!

只保证第2台邮件服务器开机!

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

telnet mail.i-x-Cloud.com 25

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

************************************************************************************************

将第1台邮件服务器开机!将第2台邮件服务器关机!

只保证第1台邮件服务器开机!

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

telnet mail.i-x-Cloud.com 25

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

07-13-Exchange Server 2019-配置-高可用-Linux 负载均衡

241-HaproxyKA01\haproxy.conf

defaults

option dontlognull # Do not log connections with no requests

option redispatch # Try another server in case of connection failure

option contstats # Enable continuous traffic statistics updates

retries 3 # Try to connect up to 3 times in case of failure

timeout connect 5s # 5 seconds max to connect or to stay in queue

timeout http-keep-alive 1s # 1 second max for the client to post next request

timeout http-request 15s # 15 seconds max for the client to send a request

timeout queue 30s # 30 seconds max queued on load balancer

timeout tarpit 1m # tarpit hold tim

backlog 10000 # Size of SYN backlog queue

balance roundrobin #alctl: load balancing algorithm

mode tcp #alctl: protocol analyser

option tcplog #alctl: log format

log global #alctl: log activation

timeout client 300s #alctl: client inactivity timeout

timeout server 300s #alctl: server inactivity timeout

default-server inter 3s rise 2 fall 3 #alctl: default check parameters

listen stats

mode http

bind 0.0.0.0:1080

stats enable

stats hide-version

stats uri /haproxyadmin?stats

stats realm Haproxy\ Statistics

stats auth admin:admin

stats admin if TRUE

frontend ft_exchange_HTTP

bind 10.1.1.55:80 name web

maxconn 10000

default_backend bk_exchange_HTTP

backend bk_exchange_HTTP

server 051-Ex01 10.1.1.51:80 maxconn 10000

server 052-Ex02 10.1.1.52:80 maxconn 10000

server 053-Ex03 10.1.1.53:80 maxconn 10000

frontend ft_exchange_SSL

bind 10.1.1.55:443 name ssl

maxconn 10000 #alctl: connection max (depends on capacity)

default_backend bk_exchange_SSL #alctl: default farm to use

backend bk_exchange_SSL

server 051-Ex01 10.1.1.51:443 maxconn 10000

server 052-Ex02 10.1.1.52:443 maxconn 10000

server 053-Ex03 10.1.1.53:443 maxconn 10000

frontend ft_exchange_SMTP

bind 10.1.1.55:25 name smtp

maxconn 10000

default_backend bk_exchange_SMTP

backend bk_exchange_SMTP

server 051-Ex01 10.1.1.51:25 maxconn 10000

server 052-Ex02 10.1.1.52:25 maxconn 10000

server 053-Ex03 10.1.1.53:25 maxconn 10000

frontend ft_exchange_SMTP_Secure

bind 10.1.1.55:465 name smtpssl

maxconn 10000

default_backend bk_exchange_SMTP_Secure

backend bk_exchange_SMTP_Secure

server 051-Ex01 10.1.1.51:465 maxconn 10000

server 052-Ex02 10.1.1.52:465 maxconn 10000

server 053-Ex03 10.1.1.53:465 maxconn 10000

frontend ft_exchange_IMAP

bind 10.1.1.55:143 name imap

maxconn 10000

default_backend bk_exchange_IMAP

backend bk_exchange_IMAP

server 051-Ex01 10.1.1.51:143 maxconn 10000

server 052-Ex02 10.1.1.52:143 maxconn 10000

server 053-Ex03 10.1.1.53:143 maxconn 10000

frontend ft_exchange_IMAP_Secure

bind 10.1.1.55:993 name imapssl

maxconn 10000

default_backend bk_exchange_IMAP_Secure

backend bk_exchange_IMAP_Secure

server 051-Ex01 10.1.1.51:993 maxconn 10000

server 052-Ex02 10.1.1.52:993 maxconn 10000

server 053-Ex03 10.1.1.53:993 maxconn 10000

frontend ft_exchange_POP3

bind 10.1.1.55:110 name pop3

maxconn 10000

default_backend bk_exchange_POP3

backend bk_exchange_POP3

server 051-Ex01 10.1.1.51:110 maxconn 10000

server 052-Ex02 10.1.1.52:110 maxconn 10000

server 053-Ex03 10.1.1.53:110 maxconn 10000

frontend ft_exchange_POP3_Secure

bind 10.1.1.55:995 name pop3ssl

maxconn 10000

default_backend bk_exchange_POP3_Secure

backend bk_exchange_POP3_Secure

server 051-Ex01 10.1.1.51:995 maxconn 10000

server 052-Ex02 10.1.1.52:995 maxconn 10000

server 053-Ex03 10.1.1.53:995 maxconn 10000

241-HaproxyKA01\keepalived.conf

global_defs {

notification_email {

administrator@i-x-Cloud.com

}

# notification_email_from 241-HaproxyKA01@i-x-Cloud.com

smtp_server 10.1.1.55

smtp_connect_timeout 30

}

vrrp_script check_haproxy {

script "killall -0 haproxy"

interval 2

weight 2

}

vrrp_instance VI_1 {

interface eth0

state MASTER

virtual_router_id 10

priority 111

virtual_ipaddress {

10.1.1.55

}

track_script {

check_haproxy

}

smtp_alert

}

242-HaproxyKA02\haproxy.conf

defaults

option dontlognull # Do not log connections with no requests

option redispatch # Try another server in case of connection failure

option contstats # Enable continuous traffic statistics updates

retries 3 # Try to connect up to 3 times in case of failure

timeout connect 5s # 5 seconds max to connect or to stay in queue

timeout http-keep-alive 1s # 1 second max for the client to post next request

timeout http-request 15s # 15 seconds max for the client to send a request

timeout queue 30s # 30 seconds max queued on load balancer

timeout tarpit 1m # tarpit hold tim

backlog 10000 # Size of SYN backlog queue

balance roundrobin #alctl: load balancing algorithm

mode tcp #alctl: protocol analyser

option tcplog #alctl: log format

log global #alctl: log activation

timeout client 300s #alctl: client inactivity timeout

timeout server 300s #alctl: server inactivity timeout

default-server inter 3s rise 2 fall 3 #alctl: default check parameters

listen stats

mode http

bind 0.0.0.0:1080

stats enable

stats hide-version

stats uri /haproxyadmin?stats

stats realm Haproxy\ Statistics

stats auth admin:admin

stats admin if TRUE

frontend ft_exchange_HTTP

bind 10.1.1.55:80 name web

maxconn 10000

default_backend bk_exchange_HTTP

backend bk_exchange_HTTP

server 051-Ex01 10.1.1.51:80 maxconn 10000

server 052-Ex02 10.1.1.52:80 maxconn 10000

server 053-Ex03 10.1.1.53:80 maxconn 10000

frontend ft_exchange_SSL

bind 10.1.1.55:443 name ssl

maxconn 10000 #alctl: connection max (depends on capacity)

default_backend bk_exchange_SSL #alctl: default farm to use

backend bk_exchange_SSL

server 051-Ex01 10.1.1.51:443 maxconn 10000

server 052-Ex02 10.1.1.52:443 maxconn 10000

server 053-Ex03 10.1.1.53:443 maxconn 10000

frontend ft_exchange_SMTP

bind 10.1.1.55:25 name smtp

maxconn 10000

default_backend bk_exchange_SMTP

backend bk_exchange_SMTP

server 051-Ex01 10.1.1.51:25 maxconn 10000

server 052-Ex02 10.1.1.52:25 maxconn 10000

server 053-Ex03 10.1.1.53:25 maxconn 10000

frontend ft_exchange_SMTP_Secure

bind 10.1.1.55:465 name smtpssl

maxconn 10000

default_backend bk_exchange_SMTP_Secure

backend bk_exchange_SMTP_Secure

server 051-Ex01 10.1.1.51:465 maxconn 10000

server 052-Ex02 10.1.1.52:465 maxconn 10000

server 053-Ex03 10.1.1.53:465 maxconn 10000

frontend ft_exchange_IMAP

bind 10.1.1.55:143 name imap

maxconn 10000

default_backend bk_exchange_IMAP

backend bk_exchange_IMAP

server 051-Ex01 10.1.1.51:143 maxconn 10000

server 052-Ex02 10.1.1.52:143 maxconn 10000

server 053-Ex03 10.1.1.53:143 maxconn 10000

frontend ft_exchange_IMAP_Secure

bind 10.1.1.55:993 name imapssl

maxconn 10000

default_backend bk_exchange_IMAP_Secure

backend bk_exchange_IMAP_Secure

server 051-Ex01 10.1.1.51:993 maxconn 10000

server 052-Ex02 10.1.1.52:993 maxconn 10000

server 053-Ex03 10.1.1.53:993 maxconn 10000

frontend ft_exchange_POP3

bind 10.1.1.55:110 name pop3

maxconn 10000

default_backend bk_exchange_POP3

backend bk_exchange_POP3

server 051-Ex01 10.1.1.51:110 maxconn 10000

server 052-Ex02 10.1.1.52:110 maxconn 10000

server 053-Ex03 10.1.1.53:110 maxconn 10000

frontend ft_exchange_POP3_Secure

bind 10.1.1.55:995 name pop3ssl

maxconn 10000

default_backend bk_exchange_POP3_Secure

backend bk_exchange_POP3_Secure

server 051-Ex01 10.1.1.51:995 maxconn 10000

server 052-Ex02 10.1.1.52:995 maxconn 10000

server 053-Ex03 10.1.1.53:995 maxconn 10000

242-HaproxyKA02\keepalived.conf

global_defs {

notification_email {

administrator@i-x-Cloud.com

}

# notification_email_from 241-HaproxyKA01@i-x-Cloud.com

smtp_server 10.1.1.55

smtp_connect_timeout 30

}

vrrp_script check_haproxy {

script "killall -0 haproxy"

interval 2

weight 2

}

vrrp_instance VI_1 {

interface eth0

state MASTER

virtual_router_id 10

priority 111

virtual_ipaddress {

10.1.1.55

}

track_script {

check_haproxy

}

smtp_alert

}

关机

快照

100-Admin01.i-x-Cloud.com

011-DC01.i-x-Cloud.com

012-DC02.i-x-Cloud.com

013-DC03.i-x-Cloud.com

021-CA01.i-x-Cloud.com

031-WSUS01.i-x-Cloud.com

041-OOS01.i-x-Cloud.com

051-Ex01.i-x-Cloud.com

052-Ex02.i-x-Cloud.com

053-Ex03.i-x-Cloud.com

061-SFBBE01.i-x-Cloud.com

071-SFBFE01.i-x-Cloud.com

201-UCDemo01.i-x-Cloud.com

202-UCDemo02.i-x-Cloud.com

241-HaproxyKA01.i-x-Cloud.com

242-HaproxyKA02.i-x-Cloud.com

009-Linux_LB_For_Exchange_2019-OK

本文已完成!

相关内容

热门资讯

红场阅兵在即:首次取消展示重型... 澎湃新闻记者 薛晶俄罗斯将于5月9日在莫斯科举行卫国战争胜利日阅兵活动。据新华社报道,5月7日,俄罗...
吉林化工园区推动产业转型升级抢... 进入生产旺季,吉林化工园区美思德(吉林)新材料有限公司生产线满负荷运转。在数字化车间内,巨大的信息屏...
我国首台双核原子量子计算机“汉... IT之家 5 月 8 日消息,据央视新闻今日消息,由中国科学院牵头,联合武汉大学、华中科技大学和武汉...
台军前高官怒轰M1A2T战车“... 海峡导报综合报道 民进党当局对美采购108辆M1A2T战车,但台陆军前司令李翔宙怒轰,采购M1A2T...
爆火的“平替游”,正在撕开谁的... 【文/观察者网 邓军 编辑/赵乾坤】受中东地缘局势不确定性及国际油价波动等因素影响,今年“五一”假期...
8名网贷设计者,揭秘大厂如何“... 00后李明,是老同学眼中“别人家的孩子”。他在重点大学读着自己梦想的心理学专业,还计划念博士。每次和...
“横行霸道”2亿年,小小螃蟹如... 一项近日发表于eLife的研究汇总形成了迄今最大的关于螃蟹如何运动的数据集。通过对比多个物种,科学家...
移动云 智能新空间 2026移... 做强算力资源、搭建服务平台、焕新AI体验、推进生态共建……5月8日,中国移动2026移动云大会主论坛...
4月岛内县市长声量排行蒋万安居... 海峡导报综合报道 随着2026“九合一”选战逼近,选举相关讨论声量逐步升高。岛内媒体调查4月份全台县...
马斯克官宣:解散xAI! 最新官宣。 当地时间5月6日,埃隆・马斯克在社交平台X正式宣布,xAI将解散并停止作为独立公司运营,...