caliper icon indicating copy to clipboard operation
caliper copied to clipboard

I had some problems testing the Fisco-bcos with calipers

Open augetyMax opened this issue 2 years ago • 1 comments

Which Caliper version are you using?

V0.2.0

Which Node.JS version are you using?

v8

Which operating system are you using?

Ubuntu22.04

Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?

I tried to use the stress test guide in the official fisco-bcos documentation to test the performance of bcos. After deployment, an error occurred. https://fisco-bcos-documentation.readthedocs.io/zh_CN/v2.8.0/docs/tutorial/stress_testing.html 2.1-2.2

What was the observed incorrect behavior?

image image image

Please provide the error logs and their surroundings.

node0 log information:
error|2022-07-25 16:22:46.537263|[NETWORK][Host]TCP Connection refused by node,endpoint=172.17.0.1:30915,message=Connection refused
warning|2022-07-25 16:22:46.537322|[P2P][Service] onConnect,errorCode=5,nodeID=00000000...,nodeName=,endpoint=unknown,what=Connect failed
error|2022-07-25 16:22:46.537334|[NETWORK][Host]TCP Connection refused by node,endpoint=172.17.0.1:30916,message=Connection refused
warning|2022-07-25 16:22:46.537350|[P2P][Service] onConnect,errorCode=5,nodeID=00000000...,nodeName=,endpoint=unknown,what=Connect failed
error|2022-07-25 16:22:46.537380|[NETWORK][Host]TCP Connection refused by node,endpoint=172.17.0.1:30917,message=Connection refused

Please provide your benchmark configuration file content, if possible.

config.yaml

#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

---
test:
  name: Hello World
  description: This is a helloworld benchmark of FISCO BCOS for caliper
  clients:
    type: local
    number: 1
  rounds:
    - label: get
      description: Test performance of getting name
      txNumber:
        - 10000
      rateControl:
        - type: fixed-rate
          opts:
            tps: 1000
      callback: benchmarks/samples/fisco-bcos/helloworld/get.js
    - label: set
      description: Test performance of setting name
      txNumber:
        - 10000
      rateControl:
        - type: fixed-rate
          opts:
            tps: 1000
      callback: benchmarks/samples/fisco-bcos/helloworld/set.js
monitor:
  type:
    - docker
    - process
  docker:
    name:
      - all
  process:
    - command: node
      arguments: fiscoBcosClientWorker.js
      multiOutput: avg
  interval: 0.5

Please provide your network configuration file content, if possible.

docker-compose.yaml

version: "3"

services:
  node0:
    image: fiscoorg/fiscobcos:latest
    ports:
      - "20914:20914"
      - "8914:8914"
      - "30914:30914"
    working_dir: /data
    volumes:
      - ./node0:/data
    container_name: node0
    command: /usr/local/bin/fisco-bcos -c config.ini

  node1:
    image: fiscoorg/fiscobcos:latest
    ports:
      - "20915:20915"
      - "8915:8915"
      - "30915:30915"
    working_dir: "/data"
    volumes:
      - ./node1:/data
    container_name: node1
    command: /usr/local/bin/fisco-bcos -c config.ini
    depends_on:
      - "node0"

  node2:
    image: fiscoorg/fiscobcos:latest
    ports:
      - "20916:20916"
      - "8916:8916"
      - "30916:30916"
    working_dir: "/data"
    volumes:
      - ./node2:/data
    container_name: node2
    command: /usr/local/bin/fisco-bcos -c config.ini
    depends_on:
      - "node1"

  node3:
    image: fiscoorg/fiscobcos:latest
    ports:
      - "20917:20917"
      - "8917:8917"
      - "30917:30917"
    working_dir: "/data"
    volumes:
      - ./node3:/data
    container_name: node3
    command: /usr/local/bin/fisco-bcos -c config.ini
    depends_on:
      - "node2"

fisco-bcos.json

{
  "caliper": {
    "blockchain": "fisco-bcos",
    "command": {
      "start": "docker-compose -f networks/fisco-bcos/4nodes1group/docker-compose.yaml up -d; sleep 3s",
      "end": "docker-compose -f networks/fisco-bcos/4nodes1group/docker-compose.yaml down"
    }
  },
  "fisco-bcos": {
    "config": {
      "privateKey": "bcec428d5205abe0f0cc8a734083908d9eb8563e31f943d760786edf42ad67dd",
      "account": "0x64fa644d2a694681bd6addd6c5e36cccd8dcdde3"
    },
    "network": {
      "nodes": [
        {
          "ip": "127.0.0.1",
          "rpcPort": "8914",
          "channelPort": "20914"
        },
        {
          "ip": "127.0.0.1",
          "rpcPort": "8915",
          "channelPort": "20915"
        },
        {
          "ip": "127.0.0.1",
          "rpcPort": "8916",
          "channelPort": "20916"
        },
        {
          "ip": "127.0.0.1",
          "rpcPort": "8917",
          "channelPort": "20917"
        }
      ],
      "authentication": {
        "key": "/home/augety/fisco/benchmarks/caliper-benchmarks/networks/fisco-bcos/4nodes1group/sdk/node.key",
        "cert": "/home/augety/fisco/benchmarks/caliper-benchmarks/networks/fisco-bcos/4nodes1group/sdk/node.crt",
        "ca": "/home/augety/fisco/benchmarks/caliper-benchmarks/networks/fisco-bcos/4nodes1group/sdk/ca.crt"
      },
      "groupID": 1,
      "timeout": 100000
    },
    "smartContracts": [
      {
        "id": "helloworld",
        "path": "src/fisco-bcos/helloworld/HelloWorld.sol",
        "language": "solidity",
        "version": "v0"
      },
      {
        "id": "parallelok",
        "path": "src/fisco-bcos/transfer/ParallelOk.sol",
        "language": "solidity",
        "version": "v0"
      },
      {
        "id": "dagtransfer",
        "address": "0x0000000000000000000000000000000000005002",
        "language": "precompiled",
        "version": "v0"
      }
    ]
  },
  "info": {
    "Version": "2.0.0",
    "Size": "4 Nodes",
    "Distribution": "Single Host"
  }
}

Please provide your workload module content, if possible.

Please provide any additional information you deem relevant to the error.

I use VMware Workstation to configure Ubuntu22.04 virtual machine.

augetyMax avatar Jul 25 '22 08:07 augetyMax