Virtual Server implementation method (dynamic equalization) _ Server

Source: Internet
Author: User

1. Application-tier virtual servers are implemented using application-tier forwarding, which is equivalent to a proxy server, which is often referred to as a virtual server.
Implementation: The use of Apache Proxypass can be implemented on the virtual server configuration. (In httpd.conf)
such as a company's WWW server for the httpd.conf in the following settings:
Proxypass/sales
Proxypass/rd
Proxypass/head
When the setting is in effect, the position of the pair will be turned up.
The interview will be transferred to the
The customer does not interact directly with the 192.168.0.x, and all requests are forwarded by.
The process is as follows:
Client () <--> <--> 192.168.0.1
`
2.IP layer Virtual Server. It is realized by using the reverse MASQ of IP layer.
Implementation: By rewriting the destination address of IP header. The IP port forward in the Linux kernel 2.2.x is the way to implement it. You need a management tool to manage this. This approach is also called reverse Nat.
To set the method:
1. Select Ip_port_forward in kernel compilation (??)
2. Use Ipmasqadm to set up Ip_port_forward.
Ipmasqadm-a-R 192.168.0.1:80
Please refer to man for specific usage. It's not right here.
Ipmasqadm-a-R 192.168.0.2:80
3. Set IPChains
Ipchains-a forward-j masq-s 192.168.0.0/24
Ipchains-a forward-j masq-d 192.168.0.0/24
4. OK.
Test:
1 Now you visit
2 The IP packets you access are sent to then the destination address to 192.168.0.x, x 1 or 2 can be selected by the system's load balancing algorithm.
3 processing completed, request the package sent back, and then send back to the customer.
In this way, the machine can be expanded ... Your WWW server load is too heavy to use both of these methods can be implemented. Your Telnet server is overloaded and can be implemented with Method 2.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.