UltraMonkey-L7 V3(multi-thread implementation)
修訂 | e4a1350be2b266142dbb63ce3f30d019d1aae42c (tree) |
---|---|
時間 | 2010-10-08 17:38:45 |
作者 | 6638678 <6638678@1ed6...> |
Commiter | 6638678 |
bug fix
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10359 1ed66053-1c2d-0410-8867-f7571e6e31d3
@@ -3,7 +3,7 @@ | ||
3 | 3 | \cp ./materials/l7directord-1-2-44-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf |
4 | 4 | |
5 | 5 | #test l7directord config file |
6 | -RET=`$L7DIRECTORD -t"` | |
6 | +RET=`$L7DIRECTORD -t` | |
7 | 7 | if [ $? -ne 0 ] |
8 | 8 | then |
9 | 9 | echo "Test failed: $L7DIRECTORD -t" |
@@ -3,7 +3,7 @@ | ||
3 | 3 | \cp ./materials/l7directord-1-2-48-l7directord.cf ${L7DIRECTORD_CONF_DIR}/specified.cf |
4 | 4 | |
5 | 5 | #test l7directord config file |
6 | -RET=`$L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf"` | |
6 | +RET=`$L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf` | |
7 | 7 | if [ $? -ne 0 ] |
8 | 8 | then |
9 | 9 | echo "Test failed: $L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf" |
@@ -31,7 +31,7 @@ then | ||
31 | 31 | exit 1 |
32 | 32 | fi |
33 | 33 | |
34 | -RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command .$L7VSADM -A -t 127.0.0.1:50001 -m ip --foo -s wrr -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1. with return: 65280"` | |
34 | +RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command ./usr/sbin/l7vsadm -A -t 127.0.0.1:50001 -m ip --foo -s wrr -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1. with return: 65280"` | |
35 | 35 | if [ -z "${RET}" ] |
36 | 36 | then |
37 | 37 | echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log" |
@@ -45,35 +45,4 @@ then | ||
45 | 45 | exit 1 |
46 | 46 | fi |
47 | 47 | |
48 | - | |
49 | -########## | |
50 | -RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command .$L7VSADM -A -t 127.0.0.1:50002 -m sslid -foo -s lc -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1' with return: 65280"` | |
51 | -if [ -z "${RET}" ] | |
52 | -then | |
53 | - echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log" | |
54 | - exit 1 | |
55 | -fi | |
56 | - | |
57 | -RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0201\] Failed to add virtual service to l7vsd: .127.0.0.1:50002 sslid ', output: .PARSE ERROR: protocol module argument error(--proto-module): Option error.'"` | |
58 | -if [ -z "${RET}" ] | |
59 | -then | |
60 | - echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log" | |
61 | - exit 1 | |
62 | -fi | |
63 | - | |
64 | -###########33 | |
65 | -RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command .$L7VSADM -A -t 127.0.0.1:50003 -m sessionless --foo -s rr -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1' with return: 65280"` | |
66 | -if [ -z "${RET}" ] | |
67 | -then | |
68 | - echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log" | |
69 | - exit 1 | |
70 | -fi | |
71 | - | |
72 | -RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0201\] Failed to add virtual service to l7vsd: .127.0.0.1:50003 sessionless ', output: .PARSE ERROR: protocol module argument error(--proto-module): Option error.'"` | |
73 | -if [ -z "${RET}" ] | |
74 | -then | |
75 | - echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log" | |
76 | - exit 1 | |
77 | -fi | |
78 | - | |
79 | 48 | exit 0 |
@@ -42,7 +42,7 @@ OOPPTTIIOONNSS | ||
42 | 42 | This is the name for the configuration as specified in the file |
43 | 43 | //eettcc//hhaa..dd//ccoonnff//_c_o_n_f_i_g_u_r_a_t_i_o_n |
44 | 44 | |
45 | - --dd Don’t start as daemon. Useful for debugging. | |
45 | + --dd Don't start as daemon. Useful for debugging. | |
46 | 46 | |
47 | 47 | --hh Help. Print user manual of l7directord. |
48 | 48 |
@@ -158,7 +158,7 @@ SSYYNNTTAAXX | ||
158 | 158 | |
159 | 159 | llooggffiillee == ""_/_p_a_t_h_/_t_o_/_l_o_g_f_i_l_e""|syslog_facility |
160 | 160 | An alternative logfile might be specified with this directive. If |
161 | - the logfile does not have a leading ’/’, it is assumed to be a | |
161 | + the logfile does not have a leading '/', it is assumed to be a | |
162 | 162 | _s_y_s_l_o_g(3) facility name. |
163 | 163 | |
164 | 164 | The default is to log directly to the file |
@@ -210,7 +210,7 @@ SSYYNNTTAAXX | ||
210 | 210 | Indicates the module parameter of ll77ddiirreeccttoorrdd. Here pprroottoo--mmoodduullee |
211 | 211 | denotes the protocol module name (For example, pfilter). mmoodduullee-- |
212 | 212 | aarrggss denotes the arguments for the protocol module (For example, |
213 | - --pattern-match ’*.html*’). mmoodduullee--aarrggss is optional only when set | |
213 | + --pattern-match '*.html*'). mmoodduullee--aarrggss is optional only when set | |
214 | 214 | sseessssiioonnlleessss, iipp and sssslliidd module to pprroottoo--mmoodduullee. The last |
215 | 215 | argument is optional (For example, --reschedule). |
216 | 216 |
@@ -292,8 +292,8 @@ SSYYNNTTAAXX | ||
292 | 292 | regexp may be overridden by an optional per real-server based |
293 | 293 | receive regexp. |
294 | 294 | |
295 | - For a DNS check this should be any one the A record’s addresses or | |
296 | - any one of the PTR record’s names. | |
295 | + For a DNS check this should be any one the A record's addresses or | |
296 | + any one of the PTR record's names. | |
297 | 297 | |
298 | 298 | For a MySQL check, the receive setting is not used. |
299 | 299 |
@@ -346,15 +346,15 @@ SSYYNNTTAAXX | ||
346 | 346 | |
347 | 347 | rreeaallddoowwnnccaallllbbaacckk == ""_/_p_a_t_h_/_t_o_/_r_e_a_l_d_o_w_n_c_a_l_l_b_a_c_k"" |
348 | 348 | If this directive is defined, ll77ddiirreeccttoorrdd automatically calls the |
349 | - executable _/_p_a_t_h_/_t_o_/_r_e_a_l_d_o_w_n_c_a_l_l_b_a_c_k after a real server’s status | |
349 | + executable _/_p_a_t_h_/_t_o_/_r_e_a_l_d_o_w_n_c_a_l_l_b_a_c_k after a real server's status | |
350 | 350 | changes to down. The first argument to the realdowncallback is the |
351 | - real server’s IP-address and port (ip_address:portnumber). | |
351 | + real server's IP-address and port (ip_address:portnumber). | |
352 | 352 | |
353 | 353 | rreeaallrreeccoovveerrccaallllbbaacckk == ""_/_p_a_t_h_/_t_o_/_r_e_a_l_r_e_c_o_v_e_r_c_a_l_l_b_a_c_k"" |
354 | 354 | If this directive is defined, ll77ddiirreeccttoorrdd automatically calls the |
355 | - executable _/_p_a_t_h_/_t_o_/_r_e_a_l_r_e_c_o_v_e_r_c_a_l_l_b_a_c_k after a real server’s | |
355 | + executable _/_p_a_t_h_/_t_o_/_r_e_a_l_r_e_c_o_v_e_r_c_a_l_l_b_a_c_k after a real server's | |
356 | 356 | status changes to up. The first argument to the realrecovercallback |
357 | - is the real server’s IP-address and port (ip_address:portnumber). | |
357 | + is the real server's IP-address and port (ip_address:portnumber). | |
358 | 358 | |
359 | 359 | ccuussttoommcchheecckk == ""_c_u_s_t_o_m _c_h_e_c_k _c_o_m_m_a_n_d"" |
360 | 360 | If this directive is defined and set cchheecckkttyyppee to custom, |
@@ -450,4 +450,4 @@ AAUUTTHHOORRSS | ||
450 | 450 | |
451 | 451 | |
452 | 452 | |
453 | -perl v5.10.1 2010-10-07 L7DIRECTORD(1) | |
453 | +perl v5.10.1 2010-10-08 L7DIRECTORD(1) |
@@ -23,7 +23,7 @@ then | ||
23 | 23 | exit 1 |
24 | 24 | fi |
25 | 25 | |
26 | -if [ $((TIME1 + 4)) -ne $TIME2 ] | |
26 | +if [ $((TIME1 + 4)) -gt $TIME2 ] | |
27 | 27 | then |
28 | 28 | echo "Test failed: flock -n -x $L7VSADM l7vsadm" |
29 | 29 | exit 1 |
@@ -80,7 +80,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string | ||
80 | 80 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
81 | 81 | TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 |
82 | 82 | Bypass Settings: |
83 | - Sorry Server 127.0.0.1:50001 | |
83 | + Sorry Server 127.0.0.1:50001 Masq | |
84 | 84 | Max Connection 0 |
85 | 85 | Sorry Flag off |
86 | 86 | SSL Settings: |
@@ -82,20 +82,20 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string | ||
82 | 82 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
83 | 83 | TCP localhost:40001 sessionless wrr --sorry-uri '/' --statistic 0 |
84 | 84 | Bypass Settings: |
85 | - Sorry Server localhost:50001 | |
85 | + Sorry Server localhost:50001 Masq | |
86 | 86 | Max Connection 10 |
87 | 87 | Sorry Flag off |
88 | 88 | SSL Settings: |
89 | 89 | SSL Config File none |
90 | 90 | Logging Settings: |
91 | 91 | Access Log on |
92 | - Access Log File deferaccept,cork,quickackoff,nodelay | |
92 | + Access Log File /var/log/l7vs/l7vsd_conn.log | |
93 | 93 | Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 12 --ac-rotate-max-filesize 1M |
94 | 94 | Socket Settings: |
95 | 95 | TCP_DEFER_ACCEPT enable |
96 | 96 | TCP_NODELAY enable |
97 | 97 | TCP_CORK enable |
98 | - TCP_QUICKACK enable | |
98 | + TCP_QUICKACK disable | |
99 | 99 | Throughput: |
100 | 100 | Current Upload / Limit 0.000000 Mbps / 800.000000 Mbps |
101 | 101 | Current Download / Limit 0.000000 Mbps / 800.000000 Mbps |
@@ -167,7 +167,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string | ||
167 | 167 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
168 | 168 | TCP localhost:40001 ip lc --timeout 3600 --no-reschedule --sorry-uri '/' --statistic 0 |
169 | 169 | Bypass Settings: |
170 | - Sorry Server localhost:50001 | |
170 | + Sorry Server localhost:50001 Masq | |
171 | 171 | Max Connection 200 |
172 | 172 | Sorry Flag off |
173 | 173 | SSL Settings: |
@@ -82,7 +82,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string | ||
82 | 82 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
83 | 83 | TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 |
84 | 84 | Bypass Settings: |
85 | - Sorry Server 127.0.0.1:50001 | |
85 | + Sorry Server 127.0.0.1:50001 Masq | |
86 | 86 | Max Connection 0 |
87 | 87 | Sorry Flag off |
88 | 88 | SSL Settings: |
@@ -89,7 +89,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string | ||
89 | 89 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
90 | 90 | TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 |
91 | 91 | Bypass Settings: |
92 | - Sorry Server 127.0.0.1:50001 | |
92 | + Sorry Server 127.0.0.1:50001 Masq | |
93 | 93 | Max Connection 0 |
94 | 94 | Sorry Flag off |
95 | 95 | SSL Settings: |