channel_parameters – Manage the parameters for a Hyperledger Fabric channel
Synopsis
Specify the parameters for a Hyperledger Fabric channel.
This module works with the IBM Support for Hyperledger Fabric software or the Hyperledger Fabric Open Source Stack running in a Red Hat OpenShift or Kubernetes cluster.
Parameters
- path (required)
Path to current the channel configuration file.
This file can be fetched by using the ERROR while parsing: While parsing “M(channel_config)” at index 39: Module name “channel_config” is not a FQCN module.
This file will be updated in place. You will need to keep a copy of the original file for computing the configuration update.
Type: str- batch_size
The batch size parameters for the channel.
Type: dict
- max_message_count
The maximum number of messages that should be present in a block for the channel.
Type: int- absolute_max_bytes
The total size of all the messages in a block for the channel must not exceed this value.
Type: int- preferred_max_bytes
The total size of all the messages in a block for the channel should not exceed this value.
Type: int- batch_timeout
The maximum time to wait before cutting a new block for the channel.
Example values include 500ms, 5m, or 24h.
Type: str
Examples
- name: Set batch size channel parameters
hyperledger.fabric_ansible_collection.channel_parameters:
path: channel_config.bin
batch_size:
max_message_count: 10000
absolute_max_bytes: 10485760
preferred_max_bytes: 5242880
- name: Set batch timeout channel parameter
hyperledger.fabric_ansible_collection.channel_parameters:
path: channel_config.bin
batch_timeout: 500ms