-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple.txt
56 lines (47 loc) · 1.69 KB
/
simple.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* This is pretty much /usr/share/polygraph/workloads/simple.pg
* with comments stripped for conciseness and some small edits.
* Look at http://www.web-polygraph.org/docs/userman/simple.html
* if you're learning PGL too! */
Content SimpleContent = {
size = exp(13KB);
cachable = 80%;
};
Server S = {
kind = "S101";
contents = [ SimpleContent ];
direct_access = contents;
/* If you're not using host parameters, replace
* [% host_server_ip %]
* with the address of your server. */
addresses = [ '[% host_server_ip %]:9090' ];
};
Robot R = {
kind = "R101";
pop_model = { pop_distr = popUnif(); };
recurrence = 55% / SimpleContent.cachable;
origins = S.addresses;
/* If we don't include a value here, the robots will run flat out.
* This would probably be an unpleasant surprise for you for your first
* test run! Normally you want to hardcode this, and have a parameter
* control the number of robots, not the rate of requests of each robot.
*/
req_rate = 1/sec;
/* If you dont' have a proxy to test yet, you can remove this. */
http_proxies = [ '[% proxy_ip %]:[% proxy_port %]' ];
/* If you're not using host parameters, replace everything inside the
* addresses array with the address of your client in single quotes.
* See the multi-process example for how to control the number of robots
* nicely when you have many addresses. */
addresses = [
[% FOREACH host_client_ip IN host_client_ips %]
'[% host_client_ip %]' [% IF ! loop.last() %],[% END %]
[% END %]
];
};
/* You've got to have a schedule, else the run will never end successfully. */
Phase phFullOn = {
name = "full_on";
goal.duration = 2min;
};
schedule(phFullOn);
use(S, R);