E-commerce Web site technology architecture with over 1 million visits
The first introduction to E-commerce Web site high-performance, highly available solutions. From the frame composition of the scheme, the application is lvs+keepalived load balance. Achieve high-performance, highly available solutions (server clusters, load Balancing, high-performance, highly available, highly scalable server cluster)
Original link: http://unun.in/linux/156.htmlScheme:Adopt two Nginx server as front-end, provide static Web content, distribute Web request, one from, keepalived implement condition monitoring, ensure nginx normal service, that is, after the main nginx services process dies, Keepalived can switch access to the Web site from Nginx by script or through a program detection mechanism. The monitoring of the backe
: This article mainly introduces the Nginx + IIS + Web front-end (SpringMVC)-server load balancer (1). If you are interested in PHP tutorials, refer to it. Introduction
When developing a large Web project, if our web is published on the IIS of a server, when a large number of requests are sent to the IIS service, the
In fact, what is better than what is, Is YY, when the master fight, is optimized to the BT level to take out the test. You nginx is awesome, but my squid is very strong after optimization, and then a sweeping monk said, I will not lose you with Apache performance ......
When using Apache as the front-end, you must note that the proxy module must be loaded. What you loa
Defined:LVS is a shorthand for Linux virtual server, that is, a virtualized server cluster system.Structure:In general, the LVS cluster uses a three-tier structure, the main component of which is: A, Load Scheduler (load balancer), it is the entire cluster to the outside of the front-
resources, etc., structure such as:However, if in a situation of ultra-large traffic, the front end as the sender of the request, fully capable of the issuing phase of the request to the different load server, and then through the NGX two times load balancing, the structure is as follows:Global configuration://
---Edit the configuration file----Vi/etc/exports/usr/share * (Ro,sync)/opt/benet 192.168.100.0/24 (Rw,sync)/OPT/ACCP 192.168.100.0/24 (Rw,sync)Exportfs-rv---client view, mount----SHOWMOUNT-E 192.168.100.103Mount.nfs 192.168.100.103:/opt/benet/var/www/htmlMount.nfs 192.168.100.103:/opt/accp/var/www/htmlSecond, install HTTPD Linux on the resource server six or seven randomProvide a service, not repeatThird, install IPVSADM on the dispatch serverRpm-q ipvsadm//Check Ipvsadm bagYum install IPVSADM//
information becomes as follows: ldirectord|32454] quiescent Real server:192.168.60.132:80 (192.168.60.200:80) (Weight set to 0) This log output is to set the weight of the failed node 192.168.60.132 to 0 without removing the host from the LVS routing table, at which point the connected client will become unreachable, but the new connection will not be assigned to this node. If you restart the real Server1 service, Ldirectord will be able to automatically detect that the node has been activat
for failure and then shuts down the connection service for this node.Now restart the service that starts the real Server1 node, and then observe the log output of the Pluse service:Nov 16:49:41 LVs nanny[7158]: making 192.168.60.132:80 availableThe nanny daemon automatically detects that the real Server1 service has been activated and re-makes the node available for connection within the set detection time.This article is from the "Technical Achievement Dream" blog, please be sure to keep this
the client to the server, the client is the "Source" and the server is the "target". If the datagram is sent from the server to the client, the server is the "Source" and the client is the "target ". Everything is based on the inbound and outbound data packets. To sum up, the "Source" refers to the data outflow end and the "target" refers to the end to which the datagram is sent. Understanding this is one
give the sister to tell a why, the last dead or you.Cause a lot of slow loading, but you just need to know some of it, I will give you some common problems and identification methods, if these are not, then you can only wish you good luck buddy.1.problems at the back endSee no, the first request is particularly long, especially long, and is clearly more discordant than the other requests. General Web page The first request is the probability of a dynamic request is relatively large, if the requ
Server Load balancer principles and practices part 3 basic concepts of Server Load balancer-network Basics
SeriesArticle:
Server Load balancer: requirements of Server Load
Lvs IP Server Load balancer technology, lvsip Server Load balancerGeneral structure of the Lvs Cluster
The Lvs cluster adopts the IP Server Load balancer technology and belongs to the IP layer switching (L4), which has a good throughput. The scheduler analyzes the IP header
-stability load-balancing servers in front of the server cluster, all requests reach the Load Balancer server first, and the Load Balancer server uses Round-robin and so on to forward the request to the real server. There are thre
greater the probability of distribution. Server 127.0.0.1:8040 weight=1;} #当前的Nginx的配置 Server { listen 8090; #监听80端口, can be changed to another port server_name localhost;############## The domain name of the current service #charset koi8-r; #access_log logs/host.access.log main; #location/{ # root html; # Index index.html index.htm; #}location/{ proxy_pass http://netitcast.com; Proxy_redirect
Lazy Load Introduction:
Popular Introduction: Lazy Load how lazy method, is that you do not want to see it, I do not bother to load out, lazy to request. The popular saying is that you do not give you, how to. A chestnut, for example, when entering a page, it will have a lot of pictures, some pictures may be below, when we point into the page but did not slide do
{Server 192.168.5.150: 80;Server 192.168.5.151: 80;}Server {Listen 80;Server_name B .com;Location /{Proxy_pass http:// B .com;Proxy_set_header Host $ host;Proxy_set_header X-Real-IP $ remote_addr;Proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for;}}Save and restart nginx
Set nginx on machines 192.168.5.150 and 192.168.5.151, enable nginx. conf, and add the following code at the end:
Server {Listen 80;Server_name B .com;Index index.html;Root
The code is as follows: the entry code to modify the interface and HTML for their own can (the following main display JS section) "Front-end" pull-up load more dropload.min.js use
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.