三台Nginx两台服务器测试

交换机将【这里用一台nginx模拟代替】请求分发到两台NginxNginx1Nginx2,有两台后台服务器(Resin1Resin2<backup>),一台通过Nginx1Nginx2UpStream配置为应急使用。

Resin1服务正常情况下,Nginx1Nginx2将前置Nginx分发的请求代理到Resin1服务器

Resin1服务出现异常后,Resin2开始服务。

三台Nginx两台服务器测试_第1张图片















测试url:

http://192.168.36.68:11821/webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

 

后台服务器状态:

1.        51后台服务运行

a)        68Nginx日志

[10/Feb/2012:16:36:16 +0800] - 192.168.36.51:11821 - 200 -- [0.055] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

________________________________________________________________________________

[10/Feb/2012:16:47:20 +0800] - 192.168.36.59:11821 - 200 -- [1.663] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

b)        51Nginx日志

[10/Feb/2012:16:36:16 +0800] - 192.168.36.51:8091, 192.168.36.59:8091 - 502, 200 -- [0.000, 0.055] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

________________________________________________________________________________

 

c)        59Nginx日志

_________________________________________________________________________________

[10/Feb/2012:16:47:24 +0800] - 192.168.36.51:8091 - 200 -- [1.662] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

2.        51后台服务关闭

a)        68Nginx日志

[10/Feb/2012:16:44:58 +0800] - 192.168.36.51:11821 - 200 -- [2.827] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

________________________________________________________________________________

[10/Feb/2012:16:49:07 +0800] - 192.168.36.59:11821 - 200 -- [0.054] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

b)        51Nginx日志

[10/Feb/2012:16:44:58 +0800] - 192.168.36.51:8091 - 200 -- [2.826] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915

________________________________________________________________________________

 

c)        59Nginx日志

________________________________________________________________________________

[10/Feb/2012:16:49:12 +0800] - 192.168.36.51:8091, 192.168.36.59:8091 - 502, 200 -- [0.000, 0.053] --- /webapi/Login?IMSI=4000B8000&Timestamp=1328860667915



你可能感兴趣的:(三台Nginx两台服务器测试)