fabric配置文件讲解整理(一) core.yaml

本文档详细梳理了fabric的core.yaml配置文件,包括Peer section、VM section、chaincode section、ledger section和operations section等关键部分,涉及节点配置、链码运行环境、链码配置、账本设置和操作服务器等核心内容,旨在方便开发者理解和调整项目配置。
摘要由CSDN通过智能技术生成

梳理了一下core.yaml配置文件的内容,都是大概地标注了一下,方便自己日后更改项目配置。如果整理的有错误,欢迎评论和私信!

core.yaml文件分为几大section:Peer section(节点配置),VM section(链码运行环境配置),chaincode section(链码配置),ledger section(账本配置),operations section(操作服务器),metrics section(度量配置)

下面是部分注释

##################################################################

                                         Peer section

##################################################################

peer:

id: jdoe

    networkId: dev

    listenAddress: 0.0.0.0:7051  //监听的网络接口,默认为所有接口

    address: 0.0.0.0:7051

    addressAutoDetect: false

    keepalive:    //节点存活设置

        interval: 7200s

        timeout: 20s     //超时时间

        minInterval: 60s   //client之间ping的最小时间

        client:

            interval: 60s

            timeout: 20s

        deliveryClient:

            interval: 60s

            timeout: 20s

    gossip:   //gossip配置

        bootstrap: 127.0.0.1:7051

    //下面的orgLeader和useLeaderElection参数互斥,是否动态选举

        useLeaderElection: false

        orgLeader: true

        membershipTrackerInterval: 5s

        endpoint:

        maxBlockCountToStore: 10    //内存中存储的块的最大数

        maxPropagationBurstLatency: 10ms

        maxPropagationBurstSize: 10

        propagateIterations: 1

        propagatePeerNum: 3

        pullInterval: 4s

        pullPeerNum: 3

        requestStateInfoInterval: 4s

        publishStateInfoInterval: 4s

        stateInfoRetentionInterval:

        publishCertPeriod: 10s

        skipBlockVerification: false

        dialTimeout: 3s

        connTimeout: 2s     //连接超时时间

        recvBuffSize: 20      //接收缓存大小

        sendBuffSize: 200     //发送缓存大小

        digestWaitTime: 1s

        requestWaitTime: 1500ms

        responseWaitTime: 2s

        aliveTimeInterval: 5s

        aliveExpirationTimeout: 25s

        reconnectInterval: 25s      //重连间隔时间

        maxConnectionAttempts: 120    //一个节点尝试连接的最大数

        msgExpirationFactor: 20

        //

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值