梳理了一下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
//