In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The following gives you a comprehensive introduction to the use of IIS+haproxy+keepalived+nginx in the production environment, hoping to give you some help in practical application. Load balancing involves more things, there are not many theories, and there are many books on the Internet. Today, we will use the accumulated experience in the industry to do an answer.
IIS+haproxy+keepalived+nginx is used in the architecture of the actual production environment, which needs to be studied comprehensively.
Toss about haproxy for a long time, in general, there are still a lot of details to sort out.
Environment:
Front end: haproxy IP:192.168.71.128
Backend WEB:
Server01:apache 192.168.71.138 (Linux)
Http://192.168.71.138
Server02:apache 192.168.71.135 (windows)
Http://192.168.71.135
Test purpose:
The front-end haproxy provides load balancing and disaster recovery redundancy for the two back-end Web CVMs.
2015-1-31
#
1.vim / etc/rsyslog.conf
Local2* / var/log/haproxy.log
2.vim / etc/sysconfig/rsyslog
SYSLOGD_OPTIONS= "- c 2"
Service rsyslog restart
3.vim / etc/haproxy/haproxy.conf
Global
Log 127.0.0.1 local2
Chroot / var/lib/haproxy
Pidfile / var/run/haproxy.pid
Maxconn 40000
User haproxy
Group haproxy
Daemon
# turn on stats unix socket
Stats socket / var/lib/haproxy/stats
#-
# common defaults that all the 'listen' and' backend' sections will
# use if not designated in their block
#-
Defaults
Mode http
Log global
Option httplog
Option dontlognull
Option http-server-close
Option forwardfor except 127.0.0.0/8
Option redispatch
Retries 3
Timeout http-request 10s
Timeout queue 1m
Timeout connect 10s
Timeout client 1m
Timeout server 1m
Timeout http-keep-alive 10s
Timeout check 10s
Maxconn 3000
Listen stats
Mode http
Bind *: 1080
Stats enable
Stats hide-version
Stats uri / haproxyadmin?stats
Stats realm Haproxy\ Statistics
Stats auth admin:admin
Stats admin if TRUE
Frontend web
Bind *: 8080
Mode http
Log global
Option logasap
Option dontlognull
Capture request header Host len 20
Capture request header Referer len 60
Default_backend servers
Backend servers
Balance roundrobin
Server websvr1 219.142.x.x:80 check maxconn 2000
Server websvr2 219.142.x.x:80 check maxconn 2000
After reading the above comprehensive introduction on the use of IIS+haproxy+keepalived+nginx in the architecture of the production environment, if there is anything else you need to know, you can find what you are interested in in the industry information or find our professional and technical engineer to answer, the technical engineer has more than ten years of experience in the industry. Official website link www.yisu.com
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 209
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.