Created
July 23, 2019 14:58
-
-
Save kyriediculous/e009a1058c591f5d82032295eb271fe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const TestHarness = require('../src/index') | |
let th = new TestHarness() | |
th.run({ | |
name: 'testnet', // specify unique config name here | |
discordUserId: null, // id of Discord user to send alert from Prometheus to (use `Copy ID` on profile to get) | |
// should be string | |
publicImage: true, // 'livepeer/go-livepeer:benchmarking', // if true will be used 'livepeer/go-livepeer:edge' or can be set | |
// to any other publicly available image | |
local: true, | |
localBuild: false, | |
standardSetup: true, // request token, register orchestartors, etc... | |
email: null, // email to send alerts to | |
metrics: true, | |
loki: true, | |
livepeerBinaryPath: null, // this will use the livepeer binary in the GCP bucket. | |
// constrainResources: true, | |
blockchain: { | |
name: 'lpTestNet', | |
networkId: 7777, | |
controllerAddress: '0xA1fe753Fe65002C22dDc7eab29A308f73C7B6982', | |
}, | |
// machines: { | |
// zone: 'us-east1-b', | |
// transcoderMachineType: 'n1-highcpu-32', | |
// broadcasterMachineType: 'n1-highcpu-16', | |
// orchestratorMachineType: 'n1-highcpu-16', | |
// streamerMachineType: 'n1-standard-2', | |
// managerMachineType: 'n1-highmem-2' | |
// }, | |
nodes: { | |
s_a: { | |
instances: 1, | |
type: 'streamer', | |
}, | |
transcoders: { | |
type: 'transcoder', | |
// how many containers to run as transcoders. | |
instances: 2, | |
flags: '-v 5 -transcodingOptions P240p30fps16x9,P360p30fps16x9,P720p30fps16x9 -maxSessions 4' | |
}, | |
orchestrators: { | |
instances: 2, | |
type: 'orchestrator', | |
orchSecret: 'secret1', | |
// TODO these are not complete, try adding the right orchestrator flags :) | |
flags: `-v 5 -initializeRound=true -gasPrice 20 -gasLimit 20000000 -maxSessions 32 -pricePerUnit 1` | |
}, | |
broadcasters: { | |
type: 'broadcaster', | |
// googleStorage: { | |
// bucket: 'lptest-fran', | |
// key: 'examples/test-harness-226018-e3a05729b733.json' | |
// }, | |
instances: 2, | |
flags: `-v 5 -maxSessions 4 -gasPrice 20 -gasLimit 20000000 -currentManifest=true -transcodingOptions P240p30fps16x9,P360p30fps16x9,P720p30fps16x9` | |
} | |
} | |
}, (err, experiment) => { | |
if (err) throw err | |
console.log('done!') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment