Advertisement
Guest User

Untitled

a guest
May 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. 'use strict'
  2.  
  3. const TestHarness = require('../src/index')
  4. let th = new TestHarness()
  5.  
  6. th.run({
  7. local: false,
  8. localBuild: true,
  9. publicImage: false, // if true will be used 'livepeer/go-livepeer:edge' or can be set
  10. // to any other publicly available image
  11. standardSetup: true, // request token, register orchestartors, etc...
  12. metrics: true,
  13. name: 'angie-multitfiveorchsthreetper', // specify unique config name here
  14. email: null, // email to send alerts to
  15. discordUserId: null, // id of Discord user to send alert from Prometheus to (use `Copy ID` on profile to get)
  16. livepeerBinaryPath: null, // this will use the livepeer binary in the GCP bucket.
  17. // constrainResources: true,
  18. noGCPLogging: true,
  19. blockchain: {
  20. name: 'lpTestNet',
  21. networkId: 54321,
  22. controllerAddress: '0xA1fe753Fe65002C22dDc7eab29A308f73C7B6982',
  23. },
  24. machines: {
  25. // total VM instances number
  26. num: 22,
  27. orchestartorsMachines: 20,
  28. broadcastersMachines: 1,
  29. // zone: 'europe-west3-c',
  30. zone: 'us-west1-b',
  31. // machineType: 'n1-highcpu-2',
  32. machineType: 'n1-highcpu-4',
  33. // machineType: 'n1-highmem-4',
  34. // managerMachineType: 'n1-standard-2'
  35. managerMachineType: 'n1-highmem-4',
  36. // managerMachineType: 'n1-highmem-2'
  37. // managerMachineType: 'n1-highcpu-2',
  38. // machineType: 'n1-standard-2'
  39. broadcasterMachineType: 'n1-highcpu-4',
  40. // streamerMachineType: 'n1-standard-2'
  41. streamerMachineType: 'n1-highcpu-4',
  42. },
  43. nodes: {
  44. t_a: {
  45. type: 'transcoder',
  46. instances: 15,
  47. // these are the livepeer binary flags, add them as you wish.
  48. // the test-harness overrides flags that has to do with directories or
  49. // ip/port bindings, these are automated.
  50. flags: '-v 5 -orchSecret=deepsecret'
  51. },
  52. t_b: {
  53. type: 'transcoder',
  54. instances: 0,
  55. // these are the livepeer binary flags, add them as you wish.
  56. // the test-harness overrides flags that has to do with directories or
  57. // ip/port bindings, these are automated.
  58. flags: '-v 5 -orchSecret=deepsecret2'
  59. },
  60. o_a: {
  61. type: 'orchestrator',
  62. instances: 5,
  63. // TODO these are not complete, try adding the right orchestrator flags :)
  64. flags: `-v 5 -initializeRound=true -gasPrice 20 -gasLimit 20000000 \
  65. -currentManifest=true -orchSecret=deepsecret -maxSessions 4 -transcoder`
  66. },
  67. o_b: {
  68. type: 'orchestrator',
  69. instances: 0,
  70. // TODO these are not complete, try adding the right orchestrator flags :)
  71. flags: `-v 5 -initializeRound=true -gasPrice 20 -gasLimit 20000000 \
  72. -currentManifest=true -orchSecret=deepsecret2 -maxSessions 4 -transcoder`
  73. },
  74. b_a: {
  75. type: 'broadcaster',
  76. // googleStorage: {
  77. // bucket: 'lptest-fran',
  78. // key: 'examples/test-harness-226018-e3a05729b733.json'
  79. // },
  80. instances: 1,
  81. flags: `-v 5 -gasPrice 20 -gasLimit 20000000 -currentManifest=true`
  82. }
  83. }
  84. }, (err, experiment) => {
  85. if (err) throw err
  86. console.log('done!')
  87. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement