a issue when running the "Simple tests" with a proxy
xu tony <[email protected]> Mon, 10 Mar 2014 16:02:21 +0800
| Newsgroups | gmane.comp.web.web-polygraph.user |
|---|---|
| Message-ID | <CADtOdmWcwyO=ZzoYPe7GzD_Y6YF1vRa0DH-R5=sKWjBdg67Jtg@mail.gmail.com> |
--===============0293206830==
Content-Type: multipart/alternative; boundary=047d7b15a9b1e8849504f43c0534
--047d7b15a9b1e8849504f43c0534
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: quoted-printable
I've been using the "Simple tests" introdued by polygraph's User manual
to test my squid server. During testing, I found my squid can't pull the
resource from orign(that is polygraph-server) successfully.
The environment used in tests is as follows:
1=A1=A2Two testing maches: one used for squid server with ip addr 218.202.1=
11.5
and another used for polygraph-server and polygraph-client with ip addr
218.202.111.138.And my squid listens on the 8101 port.
2=A1=A2The config file used by polygraph is as following:
---------------------------------------------------------------------------=
----------------------------
Content SimpleContent =3D {
size =3D exp(13KB); // response sizes distributed exponentially
cachable =3D 80%; // 20% of content is uncachable
};
Server S =3D {
kind =3D "S101";
contents =3D [ SimpleContent ];
direct_access =3D contents;
addresses =3D ['218.202.111.138:80']; // where to create these serv=
er
agents
};
// a primitive robot
Robot R =3D {
kind =3D "R101";
pop_model =3D { pop_distr =3D popUnif(); };
recurrence =3D 55% / SimpleContent.cachable; // adjusted to get 55%
DHR
req_rate =3D 1/sec;
origins =3D S.addresses; // where the origin servers are
addresses =3D ['218.202.111.138' ** 10]; // where these robot agent=
s
will be created
};
// commit to using these servers and robots
use(S, R);
3=A1=A2The command i used for starting polygraph-server and polygraph-clien=
t is ,
/usr/local/polygraph/bin/polygraph-client --config ./my_simple.pg--verb_lvl=
10
/usr/local/polygraph/bin/polygraph-client --config
../workdir/my_simple.pg--verb_lvl 10 --proxy
218.202.111.5:8101
During test, i found squid have got requests from ploygraph-client,but
using a wrong url to pull resource (that is polygraph-server).Part of my
squid access log is showed as below:
---------------------------------------------------------------------------=
-----------------------------------
218.202.111.138 - - [10/Mar/2014:15:58:49 +0800] "GET
http://w1cbc2601.7f1c694f:8/t03/_00000003 HTTP/1.1" 503 1513 "-" "-"
TCP_MISS DIRECT 0 -
218.202.111.138 - - [10/Mar/2014:15:58:50 +0800] "GET
http://w1cbc2601.7f1c694f:8/t03/_00000004 HTTP/1.1" 503 1513 "-" "-"
TCP_MISS DIRECT 0 -
I snapped http-request packets from polygraph-client, and found
request-line of http-request is not what squid expected,which caused the
squid can't pull resource from polyserver.The request-line in http-request
sent by polyclient is like that :
"GET http://218.202.111.138/w1cbc0feb.0fea1bae:00000008/t03/_00000001HTTP/1=
.1"
The right request-line which the squid expected ,i think, shoud be like:
"GET /218.202.111.138/w1cbc02ee.0c726ba0:00000008/t03/_00000015 HTTP/1.0"
So, i want to know which part is wrong in my test, if i have made some
mistakes in test, or polyclient sent http-request with wrong request-line,
or my squid had some problems ,or anything else? How can i fix it? Any
idea?please advice, and many thanks in advanced!!!
--047d7b15a9b1e8849504f43c0534
Content-Type: text/html; charset=GB2312
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"> I've been using the "Simple tests&q=
uot; introdued by polygraph's User manual to test my squid server=
. During testing, I found my squid can't pull the resource from orign(t=
hat is polygraph-server) successfully. <div>
<br></div><div> The environment used in tests is as follows:<b=
r></div><div><div>1=A1=A2Two testing maches: one used for squid server with=
ip addr 218.202.111.5 and another used for polygraph-server and polygraph-=
client with ip addr 218.202.111.138.And my squid listens on the 8101 port.&=
nbsp;</div>
<div>2=A1=A2The config file used by polygraph is as following:</div><div>--=
---------------------------------------------------------------------------=
--------------------------</div><div><div>Content SimpleContent =3D {</div>=
<div>
size =3D exp(13KB); // response sizes distribut=
ed exponentially</div><div> cachable =3D 80%; &n=
bsp; // 20% of content is uncachable</div><div>};</div></div><div><div>Serv=
er S =3D {</div><div> kind =3D "S101";=
</div>
<div> contents =3D [ SimpleContent ];</div><div>=
direct_access =3D contents;</div><div><br></div=
><div> addresses =3D ['218.202.111.138:80=
9;]; // where to create these server agents</div><div>};</div>
</div><div><div>// a primitive robot</div><div>Robot R =3D {</div><div>&nbs=
p; kind =3D "R101";</div><div> =
pop_model =3D { pop_distr =3D popUnif(); };</div><div> =
recurrence =3D 55% / SimpleContent.cachable; // adjust=
ed to get 55% DHR</div>
<div><br></div><div> req_rate =3D 1/sec;</div><d=
iv> origins =3D S.addresses;  =
;// where the origin servers are</div><div> addr=
esses =3D ['218.202.111.138' ** 10]; // where these robot agents wi=
ll be created</div>
<div>};</div><div>// commit to using these servers and robots</div><div>use=
(S, R);</div></div><div>3=A1=A2The command i used for starting polygraph-se=
rver and polygraph-client is ,</div></div><div><div>/usr/local/polygraph/bi=
n/polygraph-client --config ./<a href=3D"http://my_simple.pg">my_simple.pg<=
/a> --verb_lvl 10</div>
<div>/usr/local/polygraph/bin/polygraph-client --config ../workdir/<a href=
=3D"http://my_simple.pg">my_simple.pg</a> --verb_lvl 10 --proxy <a href=3D"=
http://218.202.111.5:8101">218.202.111.5:8101</a><br></div></div><div><br><=
/div>
<div> During test, i found squid have got requests from ploygr=
aph-client,but using a wrong url to pull resource (that is polygraph-server=
).Part of my squid access log is showed as below:<br>----------------------=
---------------------------------------------------------------------------=
-------------</div>
<div><div>218.202.111.138 - - [10/Mar/2014:15:58:49 +0800] "GET <a hre=
f=3D"http://w1cbc2601.7f1c694f:8/t03/_00000003">http://w1cbc2601.7f1c694f:8=
/t03/_00000003</a> HTTP/1.1" 503 1513 "-" "-" TCP_=
MISS DIRECT 0 -</div>
<div>218.202.111.138 - - [10/Mar/2014:15:58:50 +0800] "GET <a href=3D"=
http://w1cbc2601.7f1c694f:8/t03/_00000004">http://w1cbc2601.7f1c694f:8/t03/=
_00000004</a> HTTP/1.1" 503 1513 "-" "-" TCP_MISS =
DIRECT 0 -</div>
<div> </div></div><div> I snapped http-request packets fr=
om polygraph-client, and found request-line of http-request is not what squ=
id expected,which caused the squid can't pull resource from polyserver.=
The request-line in http-request sent by polyclient is like that :</div>
<div>"GET <a href=3D"http://218.202.111.138/w1cbc0feb.0fea1bae:0000000=
8/t03/_00000001">http://218.202.111.138/w1cbc0feb.0fea1bae:00000008/t03/_00=
000001</a> HTTP/1.1"<br></div><div>The right request-line which the sq=
uid expected ,i think, shoud be like:<br>
</div><div> "GET /<a href=3D"http://218.202.111.138/w1cbc02ee.0c7=
26ba0:00000008/t03/_00000015">218.202.111.138/w1cbc02ee.0c726ba0:00000008/t=
03/_00000015</a> HTTP/1.0"</div><div><br></div><div> So, i=
want to know which part is wrong in my test, if i have made some mistakes =
in test, or polyclient sent http-request with wrong request-line, or my squ=
id had some problems ,or anything else? How can i fix it? Any idea?please a=
dvice, and many thanks in advanced!!! </div>
</div>
--047d7b15a9b1e8849504f43c0534--
--===============0293206830==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Users mailing list
Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
http://www.web-polygraph.org/mailman/listinfo/users
--===============0293206830==--