Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/kotlin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hyperledger fabric 在多主机部署的Hyperledger fabric v1.4.1网络上使用Hyperledger caliper进行基准测试_Hyperledger Fabric_Benchmarking_Raft_Hyperledger Caliper - Fatal编程技术网

Hyperledger fabric 在多主机部署的Hyperledger fabric v1.4.1网络上使用Hyperledger caliper进行基准测试

Hyperledger fabric 在多主机部署的Hyperledger fabric v1.4.1网络上使用Hyperledger caliper进行基准测试,hyperledger-fabric,benchmarking,raft,hyperledger-caliper,Hyperledger Fabric,Benchmarking,Raft,Hyperledger Caliper,我的hyperledger结构网络部署在4台服务器上的专用网络上。每个服务器都有一个对等服务器和一个订购者。网络已启动并运行,我想在运行的网络上使用hyperledger caliper进行基准测试。TLS是在网络中启用的,我在任何地方都给出了绝对路径 我用caliper的基准和网络配置文件中的服务器url更改了url。我不想创建任何频道或注册任何管理员或安装链码,因为我已经完成了所有这些步骤。如何从这里进行基准测试 我的config.yaml文件如下所示: 我的fabric-go-tls.js

我的hyperledger结构网络部署在4台服务器上的专用网络上。每个服务器都有一个对等服务器和一个订购者。网络已启动并运行,我想在运行的网络上使用hyperledger caliper进行基准测试。TLS是在网络中启用的,我在任何地方都给出了绝对路径

我用caliper的基准和网络配置文件中的服务器url更改了url。我不想创建任何频道或注册任何管理员或安装链码,因为我已经完成了所有这些步骤。如何从这里进行基准测试

  • 我的config.yaml文件如下所示:
  • 我的fabric-go-tls.json如下所示:
  • 预期:应该只运行基准测试而不创建频道,安装链码和注册管理员

    实际结果:在[create channel.js]停止

     error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Enrollment failed with errors [[{"code":19,"message":"CA 'ca.org0.example.com' does not exist"}]], stack=Error: Enrollment failed with errors [[{"code":19,"message":"CA 'ca.org0.example.com' does not exist"}]]
    
    但是网络运行良好!!谁能解释一下,我做错了什么?

    1)错误消息表明您在配置中为CA设置的
    名称与结构CA服务器的名称不匹配。请注意,结构CA服务器具有
    Fabric\u CA\u SERVER\u CA\u NAME
    设置,这很重要。这两个名字必须匹配

    2) Caliper的发布版本更好地支持由新的。此外,repo中提供了一个示例。

    1)错误消息表明您在配置中为CA设置的
    名称与结构CA服务器的名称不匹配。请注意,结构CA服务器具有
    Fabric\u CA\u SERVER\u CA\u NAME
    设置,这很重要。这两个名字必须匹配

    2) Caliper的发布版本更好地支持由新的。此外,回购协议中提供了一个示例

    {
      "caliper": {
        "blockchain": "fabric",
        "command" : {
          "start": "echo 'start' ",
          "end" : "echo 'stop'"
        }
      },
      "fabric": {
        "cryptodir": "/home/devk/hl-demo/artifacts/crypto-config",
        "network": {
          "orderer": {
            "url": "grpcs://172.28.57.54:7050",
            "mspid": "ordererMSP",
            "msp": "/home/devk/hl-demo/artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/",
            "server-hostname": "orderer.example.com",
            "tls_cacerts": "/home/devk/hl-demo/artifacts/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"
          },
          "org0": {
            "name": "org0",
            "mspid": "org0MSP",
            "msp": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org0.example.com/msp/",
            "ca": {
              "url": "https://172.28.57.54:7054",
              "name": "ca.org0.example.com"
            },
            "peer1": {
              "requests": "grpcs://172.28.57.54:7051",
              "events": "grpcs://172.28.57.54:7053",
              "server-hostname": "peer0.org0.example.com",
              "tls_cacerts": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org0.example.com/peers/peer0.org0.example.com/tls/ca.crt"
            }
          },
          "org1": {
            "name": "org2",
            "mspid": "org2MSP",
            "msp": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org1.example.com/msp/",
            "ca": {
              "url": "https://172.24.144.39:7054",
              "name": "ca.org1.example.com"
            },
            "peer1": {
              "requests": "grpcs://172.24.144.39:7051",
              "events": "grpcs://172.24.144.39:7053",
              "server-hostname": "peer0.org1.example.com",
              "tls_cacerts": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
            }
          },
          "org2": {
            "name": "org2",
            "mspid": "org2MSP",
            "msp": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org2.example.com/msp/",
            "ca": {
              "url": "https://172.27.27.175:7054",
              "name": "ca.org2.example.com"
            },
            "peer1": {
              "requests": "grpcs://172.27.27.175:7051",
              "events": "grpcs://172.27.27.175:7053",
              "server-hostname": "peer0.org2.example.com",
              "tls_cacerts": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt"
            }
          },
        "org3": {
            "name": "org3",
            "mspid": "org3MSP",
            "msp": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org3.example.com/msp/",
            "ca": {
              "url": "https://172.27.28.58:7054",
              "name": "ca.org3.example.com"
            },
            "peer1": {
              "requests": "grpcs://172.27.28.58:7051",
              "events": "grpcs://172.27.28.58:7053",
              "server-hostname": "peer0.org3.example.com",
              "tls_cacerts": "/home/devk/hl-demo/artifacts/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls/ca.crt"
            }
          }
        },
        "channel": [
          {
            "name": "common",
            "deployed": false,
            "config": "/home/devk/hl-demo/artifacts/channel/common.tx",
            "organizations": ["org0", "org1", "org2", "org3"]
          }
        ],
        "chaincodes": [
          {"id": "drm", "path": "contract/fabric/drm", "language":"golang", "version": "v0", "channel": "common"}
        ],
        "endorsement-policy": {
          "identities": [
            {
              "role": {
                "name": "admin",
                "mspId": "org0MSP"
              }
            },
            {
              "role": {
                "name": "member",
                "mspId": "org2MSP"
              }
            },
            {
              "role": {
                "name": "member",
                "mspId": "org2MSP"
              }
            },
            {
              "role": {
                "name": "member",
                "mspId": "org3MSP"
              }
            }
          ],
          "policy": { "4-of": [{"signed-by": 0}, {"signed-by": 1}, {"signed-by": 2}, {"signed-by": 3}]}
        },
        "context": {
          "query": "common"
        }
      },
      "info" : {
        "Version": "1.4.1",
        "Size": "4 Orgs with 1 Peer",
        "Orderer": "etcdraft",
        "Distribution": "Single Host"
      }
    }
    
     error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Enrollment failed with errors [[{"code":19,"message":"CA 'ca.org0.example.com' does not exist"}]], stack=Error: Enrollment failed with errors [[{"code":19,"message":"CA 'ca.org0.example.com' does not exist"}]]