From 3f15146c197db7ff87fedd639555221c744de2dd Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Thu, 25 Jun 2020 11:07:53 -0400 Subject: [PATCH] add composition with mock randomness --- .../compositions/composition-local-drand.toml | 75 +++++++++++++++++++ lotus-soup/compositions/composition.toml | 17 ++--- 2 files changed, 80 insertions(+), 12 deletions(-) create mode 100644 lotus-soup/compositions/composition-local-drand.toml diff --git a/lotus-soup/compositions/composition-local-drand.toml b/lotus-soup/compositions/composition-local-drand.toml new file mode 100644 index 000000000..f6ba2e1d6 --- /dev/null +++ b/lotus-soup/compositions/composition-local-drand.toml @@ -0,0 +1,75 @@ +[metadata] + name = "lotus-soup" + author = "" + +[global] + plan = "lotus-soup" + case = "lotus-baseline" + total_instances = 6 + builder = "docker:go" + runner = "local:docker" + +[[groups]] + id = "bootstrapper" + [groups.resources] + memory = "120Mi" + cpu = "10m" + [groups.instances] + count = 1 + percentage = 0.0 + [groups.run] + [groups.run.test_params] + role = "bootstrapper" + clients = "1" + miners = "1" + balance = "2000" + sectors = "10" + random_beacon_type = "local-drand" + +[[groups]] + id = "miners" + [groups.resources] + memory = "120Mi" + cpu = "10m" + [groups.instances] + count = 1 + percentage = 0.0 + [groups.run] + [groups.run.test_params] + role = "miner" + clients = "1" + miners = "1" + balance = "2000" + sectors = "10" + random_beacon_type = "local-drand" + + +[[groups]] + id = "clients" + [groups.resources] + memory = "120Mi" + cpu = "10m" + [groups.instances] + count = 1 + percentage = 0.0 + [groups.run] + [groups.run.test_params] + role = "client" + clients = "1" + miners = "1" + balance = "2000" + sectors = "10" + random_beacon_type = "local-drand" + + +[[groups]] + id = "drand" + [groups.resources] + memory = "120Mi" + cpu = "10m" + [groups.instances] + count = 3 + percentage = 0.0 + [groups.run] + [groups.run.test_params] + role = "drand" diff --git a/lotus-soup/compositions/composition.toml b/lotus-soup/compositions/composition.toml index 3f5dc7555..b4da0f2e4 100644 --- a/lotus-soup/compositions/composition.toml +++ b/lotus-soup/compositions/composition.toml @@ -5,7 +5,7 @@ [global] plan = "lotus-soup" case = "lotus-baseline" - total_instances = 6 + total_instances = 3 builder = "docker:go" runner = "local:docker" @@ -24,6 +24,7 @@ miners = "1" balance = "2000000000" sectors = "10" + random_beacon_type = "mock" [[groups]] id = "miners" @@ -40,6 +41,8 @@ miners = "1" balance = "2000000000" sectors = "10" + random_beacon_type = "mock" + [[groups]] id = "clients" @@ -56,15 +59,5 @@ miners = "1" balance = "2000000000" sectors = "10" + random_beacon_type = "mock" -[[groups]] - id = "drand" - [groups.resources] - memory = "120Mi" - cpu = "10m" - [groups.instances] - count = 3 - percentage = 0.0 - [groups.run] - [groups.run.test_params] - role = "drand"