Recently, a company's business has been growing fast, resulting in heavy pressure on front-end servers. in order to solve this problem as soon as possible, I submitted a request for purchasing servers to the company. soon the company approved the request and the servers were in place. how can we reasonably utilize the resources of newly purchased servers (originally a front-end server)? First, we thought that using nginx for load was a recent rapid development of a company's business, the pressure on front-end servers is very high. in order to solve this problem as soon as possible, I submitted a request for purchasing servers to the company. soon the company approved the request and the servers were in place. how can we reasonably utilize the resources of the newly purchased server (originally a front-end server )?
NginxDo It
Server load balancerEveryone knows
NginxOkay, but the session cannot be synchronized. Is there any way? There are some solutions. HAProxy can be used to fill in the nginx deficiency.
3. start the main HAProxy process:
[Root @ xutest haproxy] #/usr/local/sbin/haproxy-f
/Opt/haproxy. cfg
Stop HAProxy: [root @ xutest haproxy] # ps aux | grep haproxy
[Root @ xutest haproxy] # kill-9 + process ID
After HAProxy is configured, you can view it in the browser: http: // 192.168.1.6: 8888/haproxy-stats/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.