PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/omf/resources.rb

https://bitbucket.org/romoore/gnrs
Ruby | 64 lines | 33 code | 5 blank | 26 comment | 3 complexity | d67b8708d4b69b7ef59aab1189353ce5 MD5 | raw file
  1. #!/bin/ruby
  2. #
  3. # Author: Robert Moore
  4. # Last Modified: Jan 4, 2013
  5. #
  6. # A "resources" file that will be evaluated by the experiment script
  7. # before any other code. Primarily used to set default property values
  8. # that can be overridden at runtime by commandline arguments.
  9. #
  10. # Basic properties (pushed to nodes)
  11. defProperty('numServers', 1, "Number of nodes to use for servers")
  12. defProperty('numClients', 1, "Number of clients to use for clients")
  13. defProperty('microWait', 2, "Number of seconds to wait for copies, writes, etc. to occur.")
  14. defProperty('miniWait', 5, 'Number of seconds to wait for things like file downloads.')
  15. defProperty('largeWait', 20, 'Number of seconds to wait for "heavy" things.')
  16. defProperty('clientWait', 120, 'Number of seconds to wait for each client to run.')
  17. defProperty('disableDelay', nil, 'Switch to disable the delay module.')
  18. defProperty('serversPerNode', 1, 'Maximum number of server processes per node.')
  19. defProperty('sNodes', 1, 'Number of nodes used for servers.')
  20. defProperty('cNodes', 1, 'Number of nodes used for clients.')
  21. # Primary topology from which to draw nodes
  22. defProperty('topology', 'system:topo:imaged', 'The primary topology from which to draw nodes.')
  23. # Web resources
  24. defProperty('dataUrl', 'http://my.domain.com/path/to/files', 'Base URL for topology/delay files.')
  25. defProperty('scriptUrl', 'https://bitbucket.org/romoore/gnrs/downloads', 'Base URL for script files.')
  26. defProperty('tarUrl', 'https://my.domain.com/path/to/files', 'Base URL for tarballed files.')
  27. #defProperty('bindingFile', 'topology.bind', 'Filename of AS -> IP:Port binding information.')
  28. defProperty('routeFile', 'topology.data.route', 'Filename of delay matrix for topology.')
  29. defProperty('clickModule', 'delayModule.click', 'Filename of delay module Click script.')
  30. # 'XxX' is a placeholder for the AS number in the experiment script
  31. #defProperty('delayConfigServer', 'as_XxX_delay_serv.dat', 'Filename of server delay module configuration.')
  32. #defProperty('delayConfigClient', 'as_XxX_delay_client.dat', 'Filename of client delay module configuration.')
  33. #defProperty('serverBDB', 'berkeleydb.xml', 'Filename of BerkeleyDB configuration.')
  34. defProperty('mapIpv4', 'map-ipv4.xml', 'Filename of IPv4 mapper configuration.')
  35. defProperty('prefixIpv4', 'prefixes.ipv4', 'Filename of the IPv4 prefixes file (BGP table).')
  36. defProperty('tmpDir', '/tmp/gnrs', 'Temporary directory in which to build the archives.')
  37. # Client/Server compiled JAR file
  38. defProperty('jarFile', 'gnrs.jar', 'Filename of the server/client JAR file.')
  39. # Client Scripts
  40. defProperty('ggen', 'ggen', 'Filename of the "ggen" script.')
  41. defProperty('gbench', 'gbench', 'Filename of the "gbench" script.')
  42. # Server launch script
  43. defProperty('gnrsd', 'gnrsd', 'Filename of the "gnrsd" script.')
  44. # Server rc.d (init.d) script
  45. defProperty('gnrsdInit', 'gnrsd.init', 'Filename of the "gnrsd" init.d script.')
  46. # Client trace file
  47. defProperty('clientTrace', 'client_XxX.trace', 'Trace file for client "XxX" (will be replaced with AS number at runtime.')
  48. # Client lookup count
  49. defProperty('numLookups', 10000, 'Number of lookups to perform.')
  50. # Client inter-message delay (microseconds)
  51. defProperty('messageDelay', 2000, 'Number of microseconds between each message.')
  52. # Local applications
  53. # wget - 3 second timeout, quiet output, overwrite if newer
  54. defProperty('wget', '/usr/bin/wget --timeout=3 -qN', 'Location of the wget utility.')
  55. defProperty('clickInstall', '/usr/local/sbin/click-install -u', 'Location of the click-install utility.')
  56. defProperty('clickUninstall', '/usr/local/sbin/click-uninstall', 'Location of the click-uninstall utility.')
  57. defProperty('java', '/usr/bin/java', 'Location of the Java launcher.')
  58. defProperty('updateRc', '/usr/sbin/update-rc.d', 'Location of update-rc.d utility.')
  59. defProperty('scp', 'scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no', 'SCP utility to copy files.')