Re: a issue when running the "Simple tests" with a proxy
Pavel Kazlenka <[email protected]> Mon, 10 Mar 2014 18:57:47 +0300
| Newsgroups | gmane.comp.web.web-polygraph.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============0193803325==
Content-Type: multipart/alternative;
boundary="------------060300000906040302030608"
This is a multi-part message in MIME format.
--------------060300000906040302030608
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi xu,
Seems like you've started two polygraph-clients instead of one client
and one server:
>/usr/local/polygraph/bin/polygraph-client --config ./my_simple.pg
<http://my_simple.pg> --verb_lvl 10
>/usr/local/polygraph/bin/polygraph-client --config
../workdir/my_simple.pg <http://my_simple.pg> --verb_lvl 10 --proxy
218.202.111.5:8101 <http://218.202.111.5:8101>
Best wishes,
Pavel
On 03/10/2014 11:02 AM, xu tony wrote:
> 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?Two 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.
> 2?The config file used by polygraph is as following:
> -------------------------------------------------------------------------------------------------------
> Content SimpleContent = {
> size = exp(13KB); // response sizes distributed exponentially
> cachable = 80%; // 20% of content is uncachable
> };
> Server S = {
> kind = "S101";
> contents = [ SimpleContent ];
> direct_access = contents;
>
> addresses = ['218.202.111.138:80']; // where to create these
> server agents
> };
> // a primitive robot
> Robot R = {
> kind = "R101";
> pop_model = { pop_distr = popUnif(); };
> recurrence = 55% / SimpleContent.cachable; // adjusted to get
> 55% DHR
>
> req_rate = 1/sec;
> origins = S.addresses; // where the origin servers are
> addresses = ['218.202.111.138' ** 10]; // where these robot
> agents will be created
> };
> // commit to using these servers and robots
> use(S, R);
> 3?The command i used for starting polygraph-server and
> polygraph-client is ,
> /usr/local/polygraph/bin/polygraph-client --config ./my_simple.pg
> <http://my_simple.pg> --verb_lvl 10
> /usr/local/polygraph/bin/polygraph-client --config
> ../workdir/my_simple.pg <http://my_simple.pg> --verb_lvl 10 --proxy
> 218.202.111.5:8101 <http://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/_00000001
> HTTP/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://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!!!
>
>
> _______________________________________________
> Users mailing list
> Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
> http://www.web-polygraph.org/mailman/listinfo/users
--------------060300000906040302030608
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi xu,<br>
<br>
Seems like you've started two polygraph-clients instead of one
client and one server:<br>
<br>
<div>>/usr/local/polygraph/bin/polygraph-client --config ./<a
moz-do-not-send="true" href="http://my_simple.pg">my_simple.pg</a>
--verb_lvl 10</div>
>/usr/local/polygraph/bin/polygraph-client --config ../workdir/<a
moz-do-not-send="true" href="http://my_simple.pg">my_simple.pg</a>
--verb_lvl 10 --proxy <a moz-do-not-send="true"
href="http://218.202.111.5:8101">218.202.111.5:8101</a><br>
<br>
Best wishes,<br>
Pavel<br>
<br>
On 03/10/2014 11:02 AM, xu tony wrote:<br>
</div>
<blockquote
cite="mid:CADtOdmWcwyO=ZzoYPe7GzD_Y6YF1vRa0DH-R5=sKWjBdg67Jtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org"
type="cite">
<div dir="ltr"> 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.
<div>
<br>
</div>
<div> The environment used in tests is as follows:<br>
</div>
<div>
<div>1、Two 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. </div>
<div>2、The config file used by polygraph is as following:</div>
<div>-------------------------------------------------------------------------------------------------------</div>
<div>
<div>Content SimpleContent = {</div>
<div>
size = exp(13KB); // response sizes distributed
exponentially</div>
<div> cachable = 80%; // 20% of content is
uncachable</div>
<div>};</div>
</div>
<div>
<div>Server S = {</div>
<div> kind = "S101";</div>
<div> contents = [ SimpleContent ];</div>
<div> direct_access = contents;</div>
<div><br>
</div>
<div> addresses = ['218.202.111.138:80']; // where to
create these server agents</div>
<div>};</div>
</div>
<div>
<div>// a primitive robot</div>
<div>Robot R = {</div>
<div> kind = "R101";</div>
<div> pop_model = { pop_distr = popUnif(); };</div>
<div> recurrence = 55% / SimpleContent.cachable; //
adjusted to get 55% DHR</div>
<div><br>
</div>
<div> req_rate = 1/sec;</div>
<div> origins = S.addresses; // where the origin
servers are</div>
<div> addresses = ['218.202.111.138' ** 10]; // where
these robot agents will be created</div>
<div>};</div>
<div>// commit to using these servers and robots</div>
<div>use(S, R);</div>
</div>
<div>3、The command i used for starting polygraph-server and
polygraph-client is ,</div>
</div>
<div>
<div>/usr/local/polygraph/bin/polygraph-client --config ./<a
moz-do-not-send="true" href="http://my_simple.pg">my_simple.pg</a>
--verb_lvl 10</div>
<div>/usr/local/polygraph/bin/polygraph-client --config
../workdir/<a moz-do-not-send="true"
href="http://my_simple.pg">my_simple.pg</a> --verb_lvl 10
--proxy <a moz-do-not-send="true"
href="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
ploygraph-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
moz-do-not-send="true"
href="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
moz-do-not-send="true"
href="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 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 :</div>
<div>"GET <a moz-do-not-send="true"
href="http://218.202.111.138/w1cbc0feb.0fea1bae:00000008/t03/_00000001">http://218.202.111.138/w1cbc0feb.0fea1bae:00000008/t03/_00000001</a>
HTTP/1.1"<br>
</div>
<div>The right request-line which the squid expected ,i think,
shoud be like:<br>
</div>
<div> "GET /<a moz-do-not-send="true"
href="http://218.202.111.138/w1cbc02ee.0c726ba0:00000008/t03/_00000015">218.202.111.138/w1cbc02ee.0c726ba0:00000008/t03/_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 squid had some
problems ,or anything else? How can i fix it? Any idea?please
advice, and many thanks in advanced!!! </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]">Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]</a>
<a class="moz-txt-link-freetext" href="http://www.web-polygraph.org/mailman/listinfo/users">http://www.web-polygraph.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>
--------------060300000906040302030608--
--===============0193803325==
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
--===============0193803325==--