1. Proxy and reverse proxy server: connection requests from the proxy internal network to the Internet. External access requests to the internal network are not supported. Reverse Proxy Server: acts as a proxy for hosts on the external network to access the internal network. Www.2cto. com2. common WEB load balancing methods (1) manually select...
1. Proxy and reverse proxy server: connection requests from the proxy internal network to the Internet. External access requests to the internal network are not supported. Reverse Proxy Server: acts as a proxy for hosts on the external network to access the internal network. Www.2cto.com 2. common WEB server load balancer methods (1) manually select the server from which the user chooses to download resources from which the user downloads resources. (2) add multiple A records to the same host name in DNS round-robin mode so that the DNS can poll multiple IP addresses and view the domain name resolution using the dig command in Linux: dig xxx. baidu. disadvantages of comDNS round-robin: www.2cto.com. low reliability B. load distribution is not balanced, so DNS round robin is suitable for load balancing with low reliability requirements, such as slice server clusters and pure static web server clusters. (3) layer-4/layer-7 server load balancer usually works with layer-4 or layer-7 OSI of OSI: Open System Interconnection) layer-7 data format functions and connection methods an interface gateway Presentation layer Presentation data representation, data security, and data compression between the Application network of a typical device and the user Application terminate a session Transport layer the Transport data is organized into a data Segment. an addressing mechanism is used to identify a specific application (port number) firewall Network layer Network segmentation and re-combination of packets Packet based on Network layer address (IP address) select the path between different network systems. router Data Link layer Data Link encapsulates the bit information into a Data Frame to establish, cancel, identify the logical Link, reuse the Link, and check errors on the physical layer. Uses the hardware address or Physical address of the receiving system to address the construction, maintenance, and cancellation of Physical connection optical fiber, coaxial cable, and,
Twisted pair wires, reconnections, and hubs 3. multi-line multi-region smart DNS resolution and hybrid load balancing 4. after Nginx Reverse proxy configuration uses reverse proxy, the backend WEB server (taking PHP as an example ), you cannot directly use the $ _ SERVER ['remote _ ADDR '] variable to obtain the real IP address of the user. in this case, the IP address of the Nginx SERVER load balancer is obtained. In this case, you need to add the Header information X-Forwarded-For in the Nginx Reverse proxy so that the backend SERVER can get the user's real IP address through $ _ SERVER ['http-X-FORWORDED-FOR. Refer to the commonly used functions for getting user IP addresses. 5. dynamic and static web page separation Citrix NetScaler layer-4 server load balancer (TCP-based) Nginx server load balancer architecture 6. key Upstream module Upstream: the main module of Nginx server load balancer, which is located within http. the default server load balancer mode is polling. Ip_hash: in server load balancer, requests from a client IP address are located on the same backend server using the hash algorithm to avoid session sharing. If you can share a session with www.2cto.com, do not use this configuration because it may cause load imbalance. To remove the server load balancer server, you need to set it down instead of deleting the record. deleting the record may result in session failure (the original back1hash goes up to back2) upstream backend {ip_hash; server back1.10jqka.com.cn; server back3.10jqka.com.cn down;} server syntax: server name [parameters] default nonename can be domain name, IP address, port number, UNIX Socketparameters can be www.2cto.com 7. server load balancer supports two high availability methods: (1) one master server and one hot backup server (2) two server load balancer instances
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.