fix deals stress tests (#265)

This commit is contained in:
Anton Evangelatov 2020-10-11 12:38:59 +02:00 committed by GitHub
parent 1a64caaa4d
commit cc8a0f8022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@
[global] [global]
plan = "lotus-soup" plan = "lotus-soup"
case = "deals-stress" case = "deals-stress"
total_instances = 9 total_instances = 6
builder = "docker:go" builder = "docker:go"
runner = "cluster:k8s" runner = "cluster:k8s"
@ -22,17 +22,18 @@
registry_type="aws" registry_type="aws"
[global.run.test_params] [global.run.test_params]
clients = "6" clients = "3"
miners = "2" miners = "2"
genesis_timestamp_offset = "0" genesis_timestamp_offset = "0"
balance = "20000000" # These balances will work for maximum 100 nodes, as TotalFilecoin is 2B balance = "90000000" # These balances will work for maximum 100 nodes, as TotalFilecoin is 2B
sectors = "100" sectors = "10"
random_beacon_type = "mock" random_beacon_type = "mock"
mining_mode = "natural"
[[groups]] [[groups]]
id = "bootstrapper" id = "bootstrapper"
[groups.resources] [groups.resources]
memory = "2048Mi" memory = "512Mi"
cpu = "100m" cpu = "100m"
[groups.instances] [groups.instances]
count = 1 count = 1
@ -52,7 +53,6 @@
[groups.run] [groups.run]
[groups.run.test_params] [groups.run.test_params]
role = "miner" role = "miner"
mining_mode = "natural"
[[groups]] [[groups]]
id = "clients" id = "clients"
@ -60,10 +60,10 @@
memory = "2048Mi" memory = "2048Mi"
cpu = "100m" cpu = "100m"
[groups.instances] [groups.instances]
count = 6 count = 3
percentage = 0.0 percentage = 0.0
[groups.run] [groups.run]
[groups.run.test_params] [groups.run.test_params]
role = "client" role = "client"
deals = "5" deals = "3"
deal_mode = "concurrent" deal_mode = "concurrent"

View File

@ -39,7 +39,7 @@ func dealsStress(t *testkit.TestEnvironment) error {
t.RecordMessage("selected %s as the miner", minerAddr.MinerActorAddr) t.RecordMessage("selected %s as the miner", minerAddr.MinerActorAddr)
time.Sleep(2 * time.Second) time.Sleep(12 * time.Second)
// prepare a number of concurrent data points // prepare a number of concurrent data points
deals := t.IntParam("deals") deals := t.IntParam("deals")

View File

@ -27,7 +27,7 @@ func StartDeal(ctx context.Context, minerActorAddr address.Address, client api.F
}, },
Wallet: addr, Wallet: addr,
Miner: minerActorAddr, Miner: minerActorAddr,
EpochPrice: types.NewInt(1000000), EpochPrice: types.NewInt(1000),
MinBlocksDuration: 640000, MinBlocksDuration: 640000,
DealStartEpoch: 200, DealStartEpoch: 200,
FastRetrieval: fastRetrieval, FastRetrieval: fastRetrieval,