fix references to outdated "Agents" config

This commit is contained in:
jaffee 2017-01-03 16:36:27 -06:00
parent 0eda9d2e01
commit 7128385f08
8 changed files with 12 additions and 15 deletions

View file

@ -239,8 +239,7 @@ bspawn uses a json config format that has 5 top level items - an example is belo
{
"CreatorArgs": ["-type", "local", "-serverN", "1", "-replicaN", "1"],
"PilosaHosts": ["localhost:19327"],
"Agents": { "Type": "local" },
"AgentHosts": ["localhost"],
"AgentHosts": ["agent.example.com"],
"Benchmarks": [
{
"Num": 1,
@ -261,11 +260,8 @@ Specifies the pilosa cluster that should be created to run benchmarks against. F
#### PilosaHosts
If PilosaHosts is set, CreatorArgs will be ignored, and an existing pilosa cluster specified by the list of hosts will be used.
#### Agents
Agents specifies the host(s) that the benchmark should be run from. Currently only running from localhost is supported.
#### AgentHosts
If AgentHosts is specified, Agents is ignored, and the existing agents specified here are used. This is not yet implemented.
If AgentHosts is not empty, the agents specified here are used; if it is empty, agents will be run locally.
#### Benchmarks
Benchmarks is where the actual benchmarks to run are specified - each contains a `Num` which is the number of agents that should run that benchmark, and Args which specifies the benchmark. The benchmarks in the `Benchmarks` list will be run concurrently. For more information about Args, see the `pilosactl bagent -help`.

View file

@ -1,6 +1,6 @@
{
"CreatorArgs": ["-type", "local", "-serverN", "1", "-replicaN", "1"],
"Agents": { "Type": "local" },
"AgentHosts": [],
"Benchmarks": [
{
"Num": 1,

View file

@ -1325,10 +1325,11 @@ type BspawnCommand struct {
// should include everything that comes after `pilosactl create`
CreatorArgs []string
// If AgentHosts is specified, Agents is ignored, and the existing
// agents specified here are used.
// List of hosts to run agents on. If this is empty, agents will be run
// locally.
AgentHosts []string
// If this is true, build and copy pilosactl binary to agent hosts.
CopyBinary bool
// Benchmarks is a slice of Spawns which specifies all of the bagent

View file

@ -1,6 +1,6 @@
{
"CreatorArgs": ["-type", "local", "-serverN", "3", "-replicaN", "1"],
"Agents": { "Type": "local" },
"AgentHosts": [],
"Benchmarks": [
{
"Num": 3,

View file

@ -1,6 +1,6 @@
{
"CreatorArgs": ["-type", "local", "-serverN", "3", "-replicaN", "1"],
"Agents": { "Type": "local" },
"AgentHosts": [],
"Benchmarks": [
{
"Num": 3,

View file

@ -1,6 +1,6 @@
{
"CreatorArgs": ["-type", "local", "-serverN", "1", "-replicaN", "1"],
"Agents": { "Type": "local" },
"AgentHosts": [],
"Benchmarks": [
{
"Num": 1,

View file

@ -1,6 +1,6 @@
{
"CreatorArgs": ["-type", "local", "-serverN", "3", "-replicaN", "1"],
"Agents": { "Type": "local" },
"CreatorArgs": ["-hosts=localhost:19444,localhost:19445,localhost:19446", "-log-file-prefix", "asdfe"],
"AgentHosts": [],
"Benchmarks": [
{
"Num": 3,

View file

@ -1,6 +1,6 @@
{
"CreatorArgs": ["-type", "local", "-serverN", "3", "-replicaN", "1"],
"Agents": { "Type": "local" },
"AgentHosts": [],
"Benchmarks": [
{
"Num": 1,