hyperldger架构上默认块的大小是多少? [英] What is the size of the default block on hyperldger fabric?

查看:87
本文介绍了hyperldger架构上默认块的大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用hyperldger创建新的区块链,我将尝试估算链的大小.

I'm trying to create a estimation of the size of a chain if i create a new blockchain using hyperldger.

为了了解磁盘空间使用情况,我想知道这是hyperldger结构中默认块的平均大小.

In order to have an idea of disk space usage i would like to know that is the average size of a default block in the hyperldger fabric.

先谢谢你, 最好的问候

Thank you before hand, Best Regards

推荐答案

下面您可以找到为订购服务提供的默认配置.您实际上可以使用BatchTimeoutBatchSize参数控制块的大小,还请注意,这很大程度上取决于用例,因为它依赖于事务大小,即链码的逻辑.

Bellow you can find default configuration provided for ordering service. You can actually control block size with BatchTimeout and BatchSize parameters, also note that this is pretty use case dependent as it relies on transaction size, i.e. the logic of your chaincode.

################################################################################
#
#   SECTION: Orderer
#
#   - This section defines the values to encode into a config transaction or
#   genesis block for orderer related parameters
#
################################################################################
Orderer: &OrdererDefaults

    # Orderer Type: The orderer implementation to start
    # Available types are "solo" and "kafka"
    OrdererType: solo

    Addresses:
        - orderer.example.com:7050

    # Batch Timeout: The amount of time to wait before creating a batch
    BatchTimeout: 2s

    # Batch Size: Controls the number of messages batched into a block
    BatchSize:

        # Max Message Count: The maximum number of messages to permit in a batch
        MaxMessageCount: 10

        # Absolute Max Bytes: The absolute maximum number of bytes allowed for
        # the serialized messages in a batch.
        AbsoluteMaxBytes: 98 MB

        # Preferred Max Bytes: The preferred maximum number of bytes allowed for
        # the serialized messages in a batch. A message larger than the preferred
        # max bytes will result in a batch larger than preferred max bytes.
        PreferredMaxBytes: 512 KB

这篇关于hyperldger架构上默认块的大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆