Label: I. What is covered in this article (Contents)
What is covered in this article (Contents)
Background (contexts)
Architecture Principles (Architecture)
Test environment (Environment)
Installing Moebius (Install)
Moebius Test (testing)
Load Balancing
This article is about the PHP surface test seven of the nginx load balance How to configure, has a certain reference value, now share to everyone, the need for friends can refer to
Load Balancing
There are 4 modes of load Balancing
To perform stress testing, the middleware uses WebLogic 816, the database version is 11.1.0.6 RAC, and the stress test tool is LoadRunner 8.0. Test the load on individual nodes of a single instance and RAC environment.
A multiple pool is configured on the WebLogic, and the concurrent equilibrium is divided into two nodes by using the
With the increasing of traffic and the demanding of response speed, it is very important to carry out load balancing. The company's system was initially designed to take into account the planning of load Balancing, WWW static server configured Two, because the initial project time is tight, and the traffic is not high,
Oracle RAC Load Balancing enables client-initiated connections to be efficiently allocated to instances with smaller listener loads. There are two ways to achieve client load balancing, one is by configuring the client's load_balance, one by configuring the server-side Remote_listener parameters. Both approaches have a
cluster, the cluster must bind the cluster IP address and MAC address to the vswitch so that the vswitch can be correctly addressable. The cluster IP address and MAC address can be viewed in the cluster parameters, run the following command on the H3C switch:
ARP static 10.9.17.50 03bf-0a09-1132 17 G1/0/15
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/58/7E/wKiom1SzIgDiQsMpAAGPj0O3gRI918.jpg "/>
Return to the network load
Oracle RAC Load Balancing allows connections initiated from clients to be effectively allocated to instances with low listener load. There are two methods to achieve load balancing on the client. One is to configure the load_balance of the client, and the other is to configu
As we all know, in the mmm environment, the data in each database is consistent, so what you see after completing amoeba is consistent, that is, you can't see the load balancing, so
As we all know, in the mmm environment, the data in each database is consistent, so what you see after completing amoeba is consistent, that is, you can't see the load
listen for access to the domain name binding that server 80 port)OK, here is the simple configuration, see below the above 3-step configuration diagram:Load configuration diagramFourth:All configured, the following to start the Nginx softwareGo to command prompt cmd, enter c:\nginx>, enter Nginx command, such as:Start NginxAt this time, the system process has two nginx.exe processes, such as:System Nginx ProcessStop Nginx Run input nginx-s stopFifth:After the above configuration, we now look at
listen for access to the domain name binding that server 80 port)OK, here is the simple configuration, see below the above 3-step configuration diagram:Load configuration diagramFourth:All configured, the following to start the Nginx softwareGo to command prompt cmd, enter c:\nginx>, enter Nginx command, such as:Start NginxAt this time, the system process has two nginx.exe processes, such as:System Nginx ProcessStop Nginx Run input nginx-s stopFifth:After the above configuration, we now look at
If you are concerned about Nginx, you must know what is the use of Nginx software, if your site access is more and more high, a server has no way to withstand the flow of pressure, then increase the number of servers to do load it. Do site load can buy hardware equipment to achieve, for example, F5, but the price is hundreds of thousands of to millions, enough expensive, this article introduces to do the we
Build an LVS load balancing test environment
There are many ways to achieve Server Load balancer: local tyrants directly F5, the best performance, the most expensive
If you have no money, you can use Apache. Nginx works on the fourth layer of the network. Although its performance is normal, it is flexible. For example,
, because the nginx software must use port 80.The nginx download address is as follows:Nginx download: http://nginx.net/Download the version used in this test: nginx/Windows-0.8.22
Download and decompress the package to C:, and change the directory name to nginx.
Well, let's go to practice:
First:
On the local server (172.10.1.97), create a website using the port 808, for example:
IIS website binding settings
Second:
Create a website i
Tags:clilisten process service side sqlplus netsql Customer DB instance In the Oracle 11g R2, the features of the scan (single Client Access Name) are introduced. The advantage of this feature is that between the database and the client, added a layer of virtual service layer, is called the scan IP and scan IP Listener, in the client only need to configure the scan IP TNS information, through the scan IP Listener, connected to the background cluster database. This will not affect the client
:
Executing in real Server1:
echo "This are real server1"/webdata/www/index.html
Executing in real Server2:
echo "This are real server2"/webdata/www/index.html
Then open the browser, visit http://192.168.12.135 this address, and then constantly refresh this page, if you can see the "This is real server1" and "This is real Server2" indicates that LVS is already in load balancing.
Quad -Failover
, each node has only a part of data, and any node failure will result in incomplete data. Let's verify if this is the case.
Modify the configuration in rule. xml,
Split data horizontally based on the value of ID hash (2. Each rule corresponds to its own read/write node. Here the verification is the Amoeba routing rule function. Execute data insertion. We can see that the data is evenly distributed to 207 and 208 data nodes, each with 10000 data records.
At this time, the count operation is ex
1. Create a new two site in IIS with 8001/8002 ports respectively.2, change the configuration in the nginx.conf.3, start Nginx.bat, input 1, enter.To achieve load balancing between 8001 and 80,022 port sites.4, note: If the 80 port is occupied, the Nginx will not start.Solution:Run Netstat-aon in cmd | FINDSTR:80, find the program that occupies port 80.End these processes in the Task Manager (the last digit
Oracle RAC Load Balancing allows connections initiated from clients to be effectively allocated to instances with low listener load. There are two methods to achieve load balancing on the client. One is to configure the load_balance of the client, and the other is to configu
Load Balancing
In a high-load system, a single server generally fails to meet the requirements. In this case, the session status issue needs to be solved when multiple servers are distributed to the Server Load balancer.
The following are some references:
SessionstateConfigurationHttp://blog.csdn.net/nihongyuan/ar
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.