/* * $Id: simple.pg,v 1.1.1.1.2.1 2000/06/21 20:52:36 rousskov Exp $ * * a very simple "Hello World!" workload * */ // we start with defining content properties for our server to generate Content SimpleContent = { size = exp(13KB); // response sizes distributed exponentially cachable = 80%; // 20% of content is uncachable }; // a primitive server cleverly labeled "S101" // normally, you would specify far more properties, // but we will mostly rely on defaults for now Server S = { kind = "S101"; contents = [ SimpleContent ]; direct_access = [ SimpleContent ]; }; // a primitive robot Robot R = { kind = "R101"; public_interest = 50%; pop_model = { pop_distr = pmUnif(); }; }; // recurrence is the probability that a robot revisits a URL // set recurrence ratio as desired_DHR/cachability_ratio R.recurrence = 55% / SimpleContent.cachable; // for production tests, never use one host for clients and servers! addr[] srv_ips = ['127.0.0.1:8080' ]; // localhost addr[] rbt_ips = ['127.0.0.1' ]; // localhost R.origins = srv_ips; // tell our robot where the server is // assign agents (servers and robots) to their hosts S.hosts = srv_ips; R.hosts = rbt_ips; // commit to using these servers and robots use(S, R);