实战Caliper测试多机Fabric环境

成功跑完caliper自带例子之后,本人尝试使用caliper来测试自己部署的多机fabric环境。

被测fabric网络拓扑

1orderer、3peer、kafka共识、无ca、native启动(非docker)。

IP 节点 域名
10.254.186.164 orderer orderer.example.com
10.254.186.164 peer peer0.org1.example.com
10.254.247.165 peer peer1.org1.example.com
10.254.207.154 peer peer0.org2.example.com
10.254.186.164 kafka 无需

注:测试之前需要先完整启动fabric网络,测试时command参数会设置为空不启动任何docker资源。

Caliper配置文件

基准测试配置

{
  "blockchain": {
    "type": "fabric",
    "config": "benchmark/simple/fabric-test.json"
  },
  "command" : {
  },
  "test": {
    "name": "simple",
    "description" : "This is an example benchmark for caliper, to test the backend DLT's performance with simple account opening & querying transactions",
    "clients": {
      "type": "local",
      "number": 1
    },
    "rounds": [{
      "label" : "open",
      "txNumber" : [1000, 1000, 1000,1000, 1000, 1000],
      "rateControl" : [{"type": "fixed-rate", "opts": {"tps" : 50}}, {"type": "fixed-rate", "opts": {"tps" : 100}}, {"type": "fixed-rate", "opts": {"tps" : 150}},{"type": "fixed-rate", "opts": {"tps"
  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值