Guest User

Untitled

a guest
Apr 13th, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. /*
  2. * A very simple "Hello, World!" workload
  3. */
  4.  
  5. // this is just one of the simplest workloads that can produce hits
  6. // never use this workload for benchmarking
  7.  
  8.  
  9. // SimpleContent defines properties of content that the server generates;
  10. // if you get no hits, set SimpleContent.obj_life_cycle to cntStatic, which
  11. // is defined in workloads/include/contents.pg
  12. Content SimpleContent = {
  13. size = exp(13KB); // response sizes distributed exponentially
  14. cachable = 80%; // 20% of content is uncachable
  15. };
  16.  
  17. // a primitive server cleverly labeled "S101"
  18. // normally, you would specify more properties,
  19. // but we will mostly rely on defaults for now
  20. Server S = {
  21. kind = "S101";
  22. contents = [ SimpleContent ];
  23. direct_access = contents;
  24.  
  25. addresses = ['10.10.10.10:9090' ]; // where to create these server agents
  26. };
  27.  
  28. // a primitive robot
  29. Robot R = {
  30. kind = "R101";
  31. pop_model = { pop_distr = popUnif(); };
  32. recurrence = 55% / SimpleContent.cachable; // adjusted to get 55% DHR
  33.  
  34. req_rate = 2/min;
  35.  
  36. credentials = [ "DOMAIN\\user:password" ];
  37. origins = S.addresses; // where the origin servers are
  38. addresses = ['10.10.10.10' ]; // where these robot agents will be created
  39. };
  40.  
  41. // commit to using these servers and robots
  42. use(S, R);
Advertisement
Add Comment
Please, Sign In to add comment