Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. 'use strict'
  2.  
  3. const TestHarness = require('../src/index')
  4. let th = new TestHarness()
  5.  
  6. th.run({
  7. name: 'angie-test5', // specify unique config name here
  8. discordUserId: null, // id of Discord user to send alert from Prometheus to (use `Copy ID` on profile to get)
  9. // should be string
  10.  
  11. publicImage: true, // if true will be used 'livepeer/go-livepeer:edge' or can be set
  12. // to any other publicly available image
  13. local: false,
  14. localBuild: false,
  15. standardSetup: true, // request token, register orchestartors, etc...
  16. email: null, // email to send alerts to
  17. metrics: true,
  18. loki: true,
  19. livepeerBinaryPath: null, // this will use the livepeer binary in the GCP bucket.
  20. // constrainResources: true,
  21. blockchain: {
  22. name: 'lpTestNet',
  23. networkId: 54321,
  24. controllerAddress: '0xA1fe753Fe65002C22dDc7eab29A308f73C7B6982',
  25. },
  26. machines: {
  27. zone: 'us-east1-b',
  28. transcoderMachineType: 'n1-highcpu-16',
  29. broadcasterMachineType: 'n1-highcpu-4',
  30. orchestratorMachineType: 'n1-highcpu-4',
  31. streamerMachineType: 'n1-standard-2',
  32.  
  33. managerMachineType: 'n1-highmem-2'
  34. },
  35. nodes: {
  36. s_a: {
  37. instances: 2,
  38. type: 'streamer',
  39. },
  40. transcoders: {
  41. type: 'transcoder',
  42. // how many containers to run as transcoders.
  43. instances: 12,
  44. flags: '-v 5 -maxSessions 4'
  45. },
  46. orchestrators: {
  47. instances: 4,
  48. type: 'orchestrator',
  49. orchSecret: 'secret1',
  50. // TODO these are not complete, try adding the right orchestrator flags :)
  51. flags: `-v 5 -initializeRound=true -gasPrice 20 -gasLimit 20000000 -maxSessions 32`
  52. },
  53. broadcasters: {
  54. type: 'broadcaster',
  55. // googleStorage: {
  56. // bucket: 'lptest-fran',
  57. // key: 'examples/test-harness-226018-e3a05729b733.json'
  58. // },
  59. instances: 6,
  60. flags: `-v 5 -gasPrice 20 -gasLimit 20000000 -currentManifest=true -maxSessions 4 -transcodingOptions P240p30fps16x9,P360p30fps16x9,P576p30fps16x9,P720p30fps16x9`
  61. }
  62. }
  63. }, (err, experiment) => {
  64. if (err) throw err
  65. console.log('done!')
  66. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement