github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/examples/cluster/config/configtx.yaml (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  
     6  ---
     7  ################################################################################
     8  #
     9  #   Profile
    10  #
    11  #   - Different configuration profiles may be encoded here to be specified
    12  #   as parameters to the configtxgen tool
    13  #
    14  ################################################################################
    15  Profiles:
    16  
    17      SampleOrg:
    18        Orderer:
    19          <<: *OrdererDefaults
    20          Organizations:
    21            - *OrdererOrg
    22        Consortiums:
    23          SampleConsortium:
    24            Organizations:
    25              - *OrdererOrg
    26              - *Org1
    27  
    28      SampleChannel:
    29        Consortium: SampleConsortium
    30        Application:
    31          Organizations:
    32            - *Org1
    33  
    34  ################################################################################
    35  #
    36  #   Section: Organizations
    37  #
    38  #   - This section defines the different organizational identities which will
    39  #   be referenced later in the configuration.
    40  #
    41  ################################################################################
    42  Organizations:
    43  
    44      # SampleOrg defines an MSP using the sampleconfig.  It should never be used
    45      # in production but may be used as a template for other definitions
    46      - &OrdererOrg
    47          # DefaultOrg defines the organization which is used in the sampleconfig
    48          # of the fabric.git development environment
    49          Name: OrdererOrg
    50  
    51          # ID to load the MSP definition as
    52          ID: OrdererMSP
    53  
    54          # MSPDir is the filesystem path which contains the MSP configuration
    55          MSPDir: cryptogen/ordererOrganizations/orderer.net/msp
    56  
    57          AdminPrincipal: Role.ADMIN
    58  
    59      - &Org1
    60          # DefaultOrg defines the organization which is used in the sampleconfig
    61          # of the fabric.git development environment
    62          Name: Org1MSP
    63  
    64          # ID to load the MSP definition as
    65          ID: Org1MSP
    66  
    67          MSPDir: cryptogen/peerOrganizations/org1.net/msp
    68  
    69          AdminPrincipal: Role.ADMIN
    70  
    71          AnchorPeers:
    72              # AnchorPeers defines the location of peers which can be used
    73              # for cross org gossip communication.  Note, this value is only
    74              # encoded in the genesis block in the Application section context
    75              - Host: peer1
    76                Port: 7051
    77  
    78  ################################################################################
    79  #
    80  #   SECTION: Orderer
    81  #
    82  #   - This section defines the values to encode into a config transaction or
    83  #   genesis block for orderer related parameters
    84  #
    85  ################################################################################
    86  Orderer: &OrdererDefaults
    87  
    88      # Orderer Type: The orderer implementation to start
    89      # Available types are "solo" and "kafka"
    90      OrdererType: solo
    91  
    92      Addresses:
    93          - orderer:7050
    94  
    95      # Batch Timeout: The amount of time to wait before creating a batch
    96      BatchTimeout: 2s
    97  
    98      # Batch Size: Controls the number of messages batched into a block
    99      BatchSize:
   100  
   101          # Max Message Count: The maximum number of messages to permit in a batch
   102          MaxMessageCount: 10
   103  
   104          # Absolute Max Bytes: The absolute maximum number of bytes allowed for
   105          # the serialized messages in a batch.
   106          AbsoluteMaxBytes: 98 MB
   107  
   108          # Preferred Max Bytes: The preferred maximum number of bytes allowed for
   109          # the serialized messages in a batch. A message larger than the preferred
   110          # max bytes will result in a batch larger than preferred max bytes.
   111          PreferredMaxBytes: 512 KB
   112  
   113      Kafka:
   114          # Brokers: A list of Kafka brokers to which the orderer connects
   115          # NOTE: Use IP:port notation
   116          Brokers:
   117              - 127.0.0.1:9092
   118  
   119      # Organizations is the list of orgs which are defined as participants on
   120      # the orderer side of the network
   121      Organizations:
   122  
   123  ################################################################################
   124  #
   125  #   SECTION: Application
   126  #
   127  #   - This section defines the values to encode into a config transaction or
   128  #   genesis block for application related parameters
   129  #
   130  ################################################################################
   131  Application: &ApplicationDefaults
   132  
   133      # Organizations is the list of orgs which are defined as participants on
   134      # the application side of the network
   135      Organizations: