2
0

configtx.yaml 6.0 KB

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