Skip to content

The record-rate controller in documentation's samples doesn't work. #1131

@chasecheese

Description

@chasecheese

Try to use record-rate in Caliper v0.4.2 testing fabric, but get errors.

Context

I wrote the config according to the samples in doc, but it doesn't work. I'm testing fabric using caliperv0.4.2

Actual Behavior

I get errors:

Possible Fix

Would you please update the part of doc? How to use record-rate and replay-rate in v0.4.2.

Steps to Reproduce

  1. wrote the benchmarkconfig.yaml
test:
    name: basic-contract-benchmark
    description: test benchmark
    workers:
      type: local
      number: 4
    rounds:
      - label: 50TpsAsset
        description: Read asset benchmark
        txDuration: 10

        rateControl: {
          "type": "record-rate",
          "opts": {
            "rateController": {
              "type": "fixed-rate",
              "opts": {"tps" : 100}
            },
            "pathTemplate": "../tx_records_client<C>_round<R>.txt",
            "outputFormat": "TEXT",
            "logEnd": true
          }
        }
        workload:
          module: workload/readAsset.js
          arguments:
            assets: 10
            contractId: basic

2.run caliper npx caliper launch manager --caliper-workspace ./ --caliper-networkconfig ./networks/networkConfig.yaml --caliper-benchconfig ./benchmarks/benchmarkconfig.yaml --caliper-flow-only-test --caliper-fabric-gateway-enabled
3.get error:
image

Your Environment

  • Version used: Caliper v0.4.2(installed via npm) fabirc2.0.0
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version : Ubuntu20.04/16.04 amd64

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcomponent/coreRelated to the core code-base

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions