This file is indexed.

/usr/share/polygraph/workloads/webaxe-3.pg is in polygraph 4.3.2-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/*
 * WebAxe-3 workload for testing Web Accelerators (reverse proxies)
 *
 */

// Warning: These specs are under construction.
//          They are not pretty and have not been verified yet!


#include "contents.pg"
#include "phases.pg"
#include "benches.pg"

// replace all "undef()" with real values
// adjust IP addresses and masks to match your environment

Bench TheBench = {
	peak_req_rate = undef();

	client_side = {
		max_host_load = 600/sec; 
		max_agent_load = 0.4/sec;
		addr_mask = 'fxp0::10.11.0.0';
		hosts = [ '172.16.0.61-62' ];
	};

	server_side = {
		max_host_load = client_side.max_host_load;
		max_agent_load = client_side.max_agent_load;
		addr_mask = 'fxp0::10.11.0.0:80';
		hosts = [ '172.16.128.61-62:80' ];
	};
};

// Fill rate (must be between 10% and 100% of peak request rate PeakRate)
rate FillRate = undef()*TheBench.peak_req_rate;

// the two standard working set sizes are 100MB and 1GB
size WSS = undef();

// Cache size affects the duration of the "fill" phase below
// Use the sum of RAM and cache disks physical capacity
size CacheSize = undef();



/* internals */

// popularity model for the robots
PopModel popModel = {
	pop_distr = popUnif();
	hot_set_frac =  1%;  // fraction of WSS (i.e., hot_set_size / WSS)
	hot_set_prob = 10%;  // prob. of req. an object from the hot set
};

// describe WebAxe-3 server
Server S = { 
	kind = "WebAxe-3-srv";

	contents      = [ cntImage: 65%, cntHTML: 15%, cntDownload: 0.5%, cntOther ];
	direct_access = [ cntHTML, cntDownload, cntOther ];

	xact_think = norm(0.3sec, 0.1sec);
	pconn_use_lmt = zipf(16);
	idle_pconn_tout = 15sec;

	addresses = TheBench.server_side.hosts;
	http_versions = [ "1.0" ];  // newer agents use HTTP/1.1 by default
};

// describe WebAxe-3 robot
Robot R = {
	kind = "WebAxe-3-rbt";
	origins = S.addresses;

	recurrence      =   95%;
	embed_recur     =  100%;
	pop_model = popModel;

	req_types = [ "Ims200": 5%, "Ims304": 10%, "Reload" : 5%, "Basic" ];

	req_rate = TheBench.client_side.max_agent_load;
	pconn_use_lmt = zipf(64);
	open_conn_lmt = 4;              // open connections limit

	addresses = robotAddrs(asPolyMix3, TheBench);
	http_versions = [ "1.0" ];  // newer agents use HTTP/1.1 by default
};

int RobotCount = count(R.addresses);
int ClientHostCount = count(TheBench.client_side.hosts);

// XXX: we need to change launch algorithm to avoid magic
//R.launch_win = RobotCount * 0.1sec;


/* phases */

Phase phWarm = { 
	name = "warm"; 
	goal.duration = 3min;
	load_factor_beg = 0.1; 
	load_factor_end = FillRate/TheBench.peak_req_rate;
	recur_factor_beg = 5%/95%;
	log_stats = false; 
};

Phase phFill = { 
	name = "fill";
	goal.fill_size = 2*CacheSize / ClientHostCount;
	wait_wss_freeze = yes; // will finish only if WSS is frozen
};

Phase phLink1 = { 
        name = "link1";
        goal.duration = 5min;
        recur_factor_end = 1.0;
};

Phase phLink2 = { 
        name = "link2";
        goal.duration = 5min;
        load_factor_end = 1.0;
};

Phase phTop1 = { name = "top1"; goal.duration = 60min; };
Phase phDec  = { name = "dec";  goal.duration = 5min; load_factor_end = 0.1; };
Phase phIdle = { name = "idle"; goal.duration = 10min; };
Phase phInc  = { name = "inc";  goal.duration = 5min; load_factor_end = 1.0; };
Phase phTop2 = { name = "top2";	goal.duration = 60min; };

// build schedule using some well-known phases and phases defined above
schedule(phWarm, phFill, phLink1, phLink2,
	phTop1, phDec, phIdle, phInc, phTop2, 
	phCool);

working_set_cap(int(WSS/11KB / ClientHostCount));

// commit to using these servers and robots
use(S, R);

// do not forget to configure network level delay and packet loss!
// client side: 100msec delay and 0.1% packet loss in both directions
// server side: no delays or packet losses.