Created
July 16, 2019 15:06
-
-
Save ya7ya/d9a870c4bb79362af1b8995be3458039 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: 'y-loadfactor', // 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: false, | |
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: 'offchain', | |
networkId: 54321, | |
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: 3, | |
flags: '-v 5 -transcodingOptions P240p30fps16x9,P360p30fps16x9,P720p30fps16x9 -maxSessions 4' | |
}, | |
orchestrators: { | |
instances: 1, | |
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: 1, | |
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