From eacg at cin.ufpe.br Mon May 2 08:55:53 2011 From: eacg at cin.ufpe.br (Erico Augusto Cavalcanti Guedes) Date: Mon, 2 May 2011 05:55:53 -0300 Subject: How to randomize proxy selection Message-ID: Dears, I'm implementing a mesh proxy cluster and trying to randomize proxy IP address of cluster nodes, for peformance evaluation purposes. I'm executing PG Server as: sudo polygraph-server --config zipf.pg -verb_lvl 10 and PG client as: polygraph-client --proxy 192.168.15.254:3128 --config zipf.pg --verb_lvl 10 by I wish to do the following: polygraph-client --proxy 192.168.15.*251-254*:3128 --config zipf.pg--verb_lvl 10 however traditional PG address range sintax 192.168.15.251-254:3128 doesn't work for --proxy. The goal is fill the memory of cluster nodes in a balanced way. Is there any additional alternative sintax that can I try? I hope I'm clear enough. Thanks in advance, Erico. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmitry.kurochkin at measurement-factory.com Mon May 2 23:30:31 2011 From: dmitry.kurochkin at measurement-factory.com (Dmitry Kurochkin) Date: Tue, 03 May 2011 03:30:31 +0400 Subject: How to randomize proxy selection In-Reply-To: Message-ID: <87fwowk7e0.fsf@gmail.com> Hi Erico. > Dears, > > I'm implementing a mesh proxy cluster and trying to randomize proxy IP > address of cluster nodes, for peformance evaluation purposes. > > I'm executing PG Server as: > sudo polygraph-server --config zipf.pg -verb_lvl 10 > > and PG client as: > polygraph-client --proxy 192.168.15.254:3128 --config zipf.pg --verb_lvl 10 > > by I wish to do the following: > polygraph-client --proxy 192.168.15.*251-254*:3128 --config zipf.pg--verb_lvl 10 > > however traditional PG address range sintax 192.168.15.251-254:3128 doesn't > work for --proxy. > > The goal is fill the memory of cluster nodes in a balanced way. > Is there any additional alternative sintax that can I try? > It is not possible to give multiple proxy addresses to the Polygraph client on command line. You should specify it in the workload instead. PGL Robot type has two fields for configuring proxies: http_proxies and ftp_proxies. These fields are available since Polygraph v4.0.4. Earlier versions use the deprecated proxies field. For HTTP your workload may look like: ... Robot R = { ... addresses = [ '192.168.15.1' ** 10 ]; // use clone operator to create 10 robots http_proxies = [ '192.168.15.251-254:3128' ]; }; ... Note that proxy selection is sticky. I.e. a Robot selects a random proxy at the configuration time and uses that single proxy for the entire duration of the test. This matches a typical client behavior when a browser has a configured proxy that does not change. So you need multiple Robots to use more than one proxy server. More information on proxy configuration is available at [1]. Regards, Dmitry [1] http://www.web-polygraph.org/docs/reference/pgl/types.html#type:docs/reference/pgl/types/Robot > I hope I'm clear enough. > > Thanks in advance, > > Erico. From unjc.email at gmail.com Wed May 18 22:07:04 2011 From: unjc.email at gmail.com (unjc email) Date: Wed, 18 May 2011 18:07:04 -0400 Subject: How to control authenticated persistent connection Message-ID: Hello there, I want to know how to control the life-cycle of authenticated persistent connections. I set up a workload to send HTTP requests with credentials to a client side proxy for NTLM authentication. I know that NTLM authentication requires persistent connections on the client side. I have set "pconn_use_lmt = const(2147483647)" as suggested on webpolygraph website. It works perfectly. However, I want to exercise the NTLM authentication every X requests - ie. I do not want to perform the authentication once and stick on to authenticated connection(s) for all requests after. I have tried to change the "pconn_use_lmt" value to "const(30)"; but I am getting many "-1" response-time and transaction errors on the robot console (as like below). Please advise how I should set up the webpolygraph workload to archive the authentication test I want to run. 001.36| i-Ramping 6339 111.78 -1 -1.00 559 4 001.44| i-Ramping 6339 103.82 -1 -1.00 519 4 001.52| i-Ramping 6459 114.00 10 0.00 450 4 001.61| i-Ramping 6459 105.38 -1 -1.00 527 4 Robot R = { kind = "R101"; pop_model = { pop_distr = popUnif(); }; recurrence = 50%; req_rate = undef(); origins = M.names; credentials = ["Domain/User[1-10000]:Password12345"]; addresses = robotAddrs(authAddrScheme, theBench); pconn_use_lmt = const(30); idle_pconn_tout = 60sec; open_conn_lmt = 8; http_versions = ["1.0"]; }; Many thanks, Jacky From dmitry.kurochkin at measurement-factory.com Thu May 19 21:46:23 2011 From: dmitry.kurochkin at measurement-factory.com (Dmitry Kurochkin) Date: Fri, 20 May 2011 01:46:23 +0400 Subject: How to control authenticated persistent connection In-Reply-To: References: Message-ID: <87d3jetlcg.fsf@gmail.com> Hi Jacky. On Wed, 18 May 2011 18:07:04 -0400, unjc email wrote: > Hello there, > > I want to know how to control the life-cycle of authenticated > persistent connections. I set up a workload to send HTTP requests > with credentials to a client side proxy for NTLM authentication. I > know that NTLM authentication requires persistent connections on the > client side. I have set "pconn_use_lmt = const(2147483647)" as > suggested on webpolygraph website. It works perfectly. However, I > want to exercise the NTLM authentication every X requests - ie. I do > not want to perform the authentication once and stick on to > authenticated connection(s) for all requests after. I have tried to > change the "pconn_use_lmt" value to "const(30)"; but I am getting many > "-1" response-time and transaction errors on the robot console (as > like below). Please advise how I should set up the webpolygraph > workload to archive the authentication test I want to run. > The workload looks good. Can you please post the errors you get? I suspect that Polygraph fails to bind(2) the socket. It may happen because there are too many sockets in TIME_WAIT state. What does the following command print? $ netstat -tn | grep TIME_WAIT | wc -l Regards, Dmitry > > > 001.36| i-Ramping 6339 111.78 -1 -1.00 559 4 > 001.44| i-Ramping 6339 103.82 -1 -1.00 519 4 > 001.52| i-Ramping 6459 114.00 10 0.00 450 4 > 001.61| i-Ramping 6459 105.38 -1 -1.00 527 4 > > > > > Robot R = { > kind = "R101"; > pop_model = { > pop_distr = popUnif(); > }; > recurrence = 50%; > req_rate = undef(); > origins = M.names; > credentials = ["Domain/User[1-10000]:Password12345"]; > addresses = robotAddrs(authAddrScheme, theBench); > pconn_use_lmt = const(30); > idle_pconn_tout = 60sec; > open_conn_lmt = 8; > http_versions = ["1.0"]; > }; > > > > > Many thanks, > Jacky > _______________________________________________ > Users mailing list > Users at web-polygraph.org > http://www.web-polygraph.org/mailman/listinfo/users