Re: lo alias IP address

From: Alex Rousskov (rousskov@measurement-factory.com)
Date: Thu Feb 28 2002 - 11:48:36 MST


On Thu, 28 Feb 2002, Elbert C Hu wrote:

> I have 5-pair of polyclt/polysrv on Linux machines.
> ...
>
> My version of PolyMix-4 workload file:
>
> #include "benches.pg"
> Bench TheBench = benchPolyMix4;
> ...
> TheBench.peak_req_rate = 500/sec;
>
> I noticed that lo ip addresses generated by polyclt/polysrv
> would out of range from gateway point of view. In my case,
> srv01: lo:0 10.101.128.1, .... lo:124 10.101.128.125
> srv02: lo:0 10.101.128.126, .... lo:124 10.101.128.250
> srv03: lo:0 10.101.129.1, .... lo:124 10.101.129.125
> srv04: lo:0 10.101.129.126, .... lo:124 10.101.129.250
> srv05: lo:0 10.101.130.1, .... lo:124 10.101.130.125
>
> Have any ways to force srv02 stays on 10.101.132.0 network,
> srv03 stays on 10.101.136.0 network, ...

I think you are misleading Polygraph: benchPolyMix4 specifies that one
host can handle up to 500 req/sec. Thus, Polygraph allocates IP
addresses for one host. However, later, when creating aliases,
Polygraph notices that you provided 5 hosts and spreads the IP
addresses accordingly.
        http://www.web-polygraph.org/docs/userman/address.html

Please use just one client-server pair:
        TheBench.client_side.hosts = [ '172.16.1.61' ];
        TheBench.server_side.hosts = [ '172.16.1.191' ];

OR tell Polygraph that each host is capable of 100 req/sec:
        TheBench.client_side.max_host_load = 100/sec;
        TheBench.server_side.max_host_load = 100/sec;

OR increase you request rate to more than 2000 req/sec:
        TheBench.peak_req_rate = 2001/sec;

The first and last solutions are tested and should work fine. The
middle option is the right thing to do if you want to keep 5 hosts at
500 req/sec, and it should work (though you might need to adjust
netmasks, not sure). If none of the above helps, please let me know.

Alternatively, you can by-pass PolyMix address allocation scheme
(since you are violating PolyMix rules anyway), create aliases
manually using "aka", and then just tell Polygraph to use those
aliases instead of creating aliases run-time (remove "lo" interface
name from addr_space specs).

Alex.



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:21 MST