Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict'
- const TestHarness = require('../src/index')
- let th = new TestHarness()
- th.run({
- local: false,
- localBuild: true,
- publicImage: false, // if true will be used 'livepeer/go-livepeer:edge' or can be set
- // to any other publicly available image
- standardSetup: true, // request token, register orchestartors, etc...
- metrics: true,
- name: 'angie-multitfiveorchsthreetper', // specify unique config name here
- email: null, // email to send alerts to
- discordUserId: null, // id of Discord user to send alert from Prometheus to (use `Copy ID` on profile to get)
- livepeerBinaryPath: null, // this will use the livepeer binary in the GCP bucket.
- // constrainResources: true,
- noGCPLogging: true,
- blockchain: {
- name: 'lpTestNet',
- networkId: 54321,
- controllerAddress: '0xA1fe753Fe65002C22dDc7eab29A308f73C7B6982',
- },
- machines: {
- // total VM instances number
- num: 22,
- orchestartorsMachines: 20,
- broadcastersMachines: 1,
- // zone: 'europe-west3-c',
- zone: 'us-west1-b',
- // machineType: 'n1-highcpu-2',
- machineType: 'n1-highcpu-4',
- // machineType: 'n1-highmem-4',
- // managerMachineType: 'n1-standard-2'
- managerMachineType: 'n1-highmem-4',
- // managerMachineType: 'n1-highmem-2'
- // managerMachineType: 'n1-highcpu-2',
- // machineType: 'n1-standard-2'
- broadcasterMachineType: 'n1-highcpu-4',
- // streamerMachineType: 'n1-standard-2'
- streamerMachineType: 'n1-highcpu-4',
- },
- nodes: {
- t_a: {
- type: 'transcoder',
- instances: 15,
- // these are the livepeer binary flags, add them as you wish.
- // the test-harness overrides flags that has to do with directories or
- // ip/port bindings, these are automated.
- flags: '-v 5 -orchSecret=deepsecret'
- },
- t_b: {
- type: 'transcoder',
- instances: 0,
- // these are the livepeer binary flags, add them as you wish.
- // the test-harness overrides flags that has to do with directories or
- // ip/port bindings, these are automated.
- flags: '-v 5 -orchSecret=deepsecret2'
- },
- o_a: {
- type: 'orchestrator',
- instances: 5,
- // TODO these are not complete, try adding the right orchestrator flags :)
- flags: `-v 5 -initializeRound=true -gasPrice 20 -gasLimit 20000000 \
- -currentManifest=true -orchSecret=deepsecret -maxSessions 4 -transcoder`
- },
- o_b: {
- type: 'orchestrator',
- instances: 0,
- // TODO these are not complete, try adding the right orchestrator flags :)
- flags: `-v 5 -initializeRound=true -gasPrice 20 -gasLimit 20000000 \
- -currentManifest=true -orchSecret=deepsecret2 -maxSessions 4 -transcoder`
- },
- b_a: {
- type: 'broadcaster',
- // googleStorage: {
- // bucket: 'lptest-fran',
- // key: 'examples/test-harness-226018-e3a05729b733.json'
- // },
- instances: 1,
- flags: `-v 5 -gasPrice 20 -gasLimit 20000000 -currentManifest=true`
- }
- }
- }, (err, experiment) => {
- if (err) throw err
- console.log('done!')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement