<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:Calibri;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1687443674;
mso-list-type:hybrid;
mso-list-template-ids:-883628628 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> I am trying to achieve something like this<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> +----------const(5KB)------------\<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Client(WPG -| |--------proxy--------------Server(WPG)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> +----------CDB traffic------------/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">client.pg server.pg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This is what I plan to achieve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="font-size:11.0pt">The client.pg file has two robots defined, R1 for const(5KB) and R2 for CDB traffic(realistic content simulation)<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-size:11.0pt"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="font-size:11.0pt">On the server, server.pg, I have defined two servers to server traffic for const(5KB) and cdb traffic.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Problem: When I initiate the traffic, I see traffic for only one. For eg. if the entry in the server.pg has use(S1,S2) where S1
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> Is for const(5KB) and S2 is for cdb, then I see only traffic for 5KB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> In the use, entry, if I switch the entries to show, use(S2,S1) now I see only cdb traffic and not const(5KB). At anytime<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> I did not see both the traffic coming through the proxy.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I am listing some of the errors here and also request you to send me(if this configuration is valid) an example file please.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in"><span style="font-size:11.0pt">Client.pg<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/*<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">* A very simple "Hello, World!" workload<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">*/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// this is just one of the simplest workloads that can produce hits<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// never use this workload for benchmarking<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// SimpleContent defines properties of content that the server generates;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// if you get no hits, set SimpleContent.obj_life_cycle to cntStatic, which<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// is defined in workloads/include/contents.pg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Content SimpleContent = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> size = const(64KB);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cachable = 80%; // 20% of content is uncachable<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">AddrMap M = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> names = [ 'www.dropbox.com' ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = [ '10.0.15.60:443' ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //addresses = S.addresses;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> // names = tracedHosts(R.foreign_trace);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">DnsResolver dr = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> servers = [ '10.0.15.60:53' ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> timeout = 5sec;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">SslWrap wrap = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> protocols = [ "any" ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> root_certificate = "/home/xxx/xx.pem";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //ciphers = [ "ALL:HIGH:" : 100% ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ciphers = [ "ALL:!DES-CBC-SHA:!EXP-DES-CBC-SHA:!EXP-RC4-MD5:!EXP-RC2-CBC-MD5:" : 100% ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> rsa_key_sizes = [ 512bit, 1024bit, 2048bit ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> session_resumption = 40%;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> session_cache = 100;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> verify_peer_certificate = false;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">use(M);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// a primitive server cleverly labeled "S101"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// normally, you would specify more properties,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// but we will mostly rely on defaults for now<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Server S = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> kind = "S101";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> contents = [ SimpleContent ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> direct_access = contents;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = ['10.0.15.60:443' ]; // where to create these server agents<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ssl_wraps = [ wrap ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// a primitive robot<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Robot R = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> kind = "R101";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> interests = [ "foreign" ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> foreign_trace = "/home/xx/xx.log";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pop_model = { pop_distr = popUnif(); };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> recurrence = 55% / SimpleContent.cachable; // adjusted to get 55% DHR<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> origins = S.addresses; // where the origin servers are<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> dns_resolver = dr;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ssl_wraps = [ wrap ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader user1 = 'ELASTICA_MAGIC_COOKIE: 280509165510:xx.user1@xx';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader Host = 'Host: drive.google.com';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader User_Agent = 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader Accept = 'Accept: */*';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader Accept_Language = 'Accept-Language: en-US,en;q=0.5';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader Accept_Encoding = 'Accept-Encoding: gzip, deflate, br';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> http_headers = [[user1,Host,User_Agent,Accept,Accept_Language,Accept_Encoding,Referer,Cookie,x_elastica_gw,el_auth_param]: 100%];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = ['10.0.15.105' ** 1 ]; // where these robot agents will be created<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// req_rate = 0.1/sec;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Robot R1 = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pop_model = { pop_distr = popUnif(); };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> recurrence = 55% / SimpleContent.cachable; // adjusted to get 55% DHR<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> origins = M.names; // where the origin servers are<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> dns_resolver = dr;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ssl_wraps = [ wrap ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //session.busy_period.duration = 1sec;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //session.idle_period_duration = exp(11sec);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader user1 = 'MAGIC_COOKIE: 280509165510:xxuser1@xx.com';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> http_headers = [user1: 100%];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = ['10.0.15.105' ** 7 ]; // where these robot agents will be created<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Phase phRampUp = { name = "rampup"; goal.duration = 5min; populus_factor_beg = 0; populus_factor_end = 1;};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Phase phRampDown = { name = "rampdown"; goal.duration = 10sec; populus_factor_beg = 1; populus_factor_end = 0;};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Phase phSustain = { name = "sustain"; goal.duration = 60min; populus_factor_beg = 1; populus_factor_end = 1;};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">schedule(phRampUp,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> phSustain);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">use(S,R1,R);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in"><span style="font-size:11.0pt">server.pg<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/*<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">* A very simple "Hello, World!" workload<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">*/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// this is just one of the simplest workloads that can produce hits<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// never use this workload for benchmarking<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// SimpleContent defines properties of content that the server generates;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// if you get no hits, set SimpleContent.obj_life_cycle to cntStatic, which<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// is defined in workloads/include/contents.pg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Content SimpleContent = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //size = const(64KB);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> content_db = "/home/yy/yy.cdb";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cachable = 80%; // 20% of content is uncachable<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Content SimpleContent1 = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> size = const(5KB);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> cachable = 80%; // 20% of content is uncachable<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">DnsResolver dr = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> servers = [ '10.0.15.60:53' ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> timeout = 5sec;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">SslWrap wrap = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> protocols = [ "any" ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> root_certificate = "/yy/yy.pem";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //ciphers = [ "ALL:HIGH:" : 100% ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ciphers = [ "ALL:!DES-CBC-SHA:!EXP-DES-CBC-SHA:!EXP-RC4-MD5:!EXP-RC2-CBC-MD5:" : 100% ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> rsa_key_sizes = [ 512bit, 1024bit, 2048bit ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> session_resumption = 40%;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> session_cache = 100;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> verify_peer_certificate = false;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// a primitive server cleverly labeled "S101"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// normally, you would specify more properties,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// but we will mostly rely on defaults for now<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Server S = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> kind = "S101";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> contents = [ SimpleContent : 70%, SimpleContent1 : 30% ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> direct_access = contents;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = ['10.0.15.60:443' ]; // where to create these server agents<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ssl_wraps = [ wrap ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// a primitive robot<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Robot R = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> kind = "R101";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> interests = [ "foreign" ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> foreign_trace = "/home/yy/yy.log";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> pop_model = { pop_distr = popUnif(); };<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> recurrence = 55% / SimpleContent.cachable; // adjusted to get 55% DHR<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> origins = S.addresses; // where the origin servers are<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> dns_resolver = dr;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ssl_wraps = [ wrap ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader user1 = 'MAGIC_COOKIE: 666923300190:yy.user1@yy';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> MimeHeader Host = 'Host: drive.google.com';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //MimeHeader User-Agent = 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.0';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //MimeHeader Accept = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> //MimeHeader Accept-Language = 'Accept-Language: en-US,en;q=0.5';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> http_headers = [user1: 100%];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = ['10.0.15.105' ** 1 ]; // where these robot agents will be created<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> req_rate = 0.1/sec;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// a 1:1 map<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">AddrMap M = {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> names = [ 'www.drive.google.com', 'dropbox.com' ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = [ '10.0.15.60:80', '10.0.15.60:443' ];<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> addresses = S.addresses;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> names = tracedHosts(R.foreign_trace);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Phase phRampUp = { name = "rampup"; goal.duration = 10sec; populus_factor_beg = 0; populus_factor_end = 1;};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Phase phRampDown = { name = "rampdown"; goal.duration = 10sec; populus_factor_beg = 1; populus_factor_end = 0;};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Phase phSustain = { name = "sustain"; goal.duration = 60min; populus_factor_beg = 1; populus_factor_end = 1;};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">// build schedule using some well-known phases and phases defined above<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">schedule(phRampUp,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> phSustain);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">//use(M);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">use(S);<o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Errors<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</body>
</html>