Guest User

Untitled

a guest
Jun 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. ################################################################################
  2. #
  3. # SECTION: Orderer
  4. #
  5. # - This section defines the values to encode into a config transaction or
  6. # genesis block for orderer related parameters
  7. #
  8. ################################################################################
  9. Orderer: &OrdererDefaults
  10.  
  11. # Orderer Type: The orderer implementation to start
  12. # Available types are "solo" and "kafka"
  13. OrdererType: solo
  14.  
  15. Addresses:
  16. - orderer.example.com:7050
  17.  
  18. # Batch Timeout: The amount of time to wait before creating a batch
  19. BatchTimeout: 2s
  20.  
  21. # Batch Size: Controls the number of messages batched into a block
  22. BatchSize:
  23.  
  24. # Max Message Count: The maximum number of messages to permit in a batch
  25. MaxMessageCount: 10
  26.  
  27. # Absolute Max Bytes: The absolute maximum number of bytes allowed for
  28. # the serialized messages in a batch.
  29. AbsoluteMaxBytes: 98 MB
  30.  
  31. # Preferred Max Bytes: The preferred maximum number of bytes allowed for
  32. # the serialized messages in a batch. A message larger than the preferred
  33. # max bytes will result in a batch larger than preferred max bytes.
  34. PreferredMaxBytes: 512 KB
  35.  
  36. ################################################################################
  37. # SECTION: Orderer
  38. ################################################################################
  39. Orderer: &OrdererDefaults
  40. OrdererType: solo
  41. Addresses:
  42. #- orderer0.ordererorg:7050
  43. - orderer0:7050
  44. Kafka:
  45. Brokers:
  46. BatchTimeout: 2s
  47. BatchSize:
  48. MaxMessageCount: 10
  49. AbsoluteMaxBytes: 98 MB
  50. PreferredMaxBytes: 512 KB
  51. Organizations:
  52.  
  53. // BatchSize contains configuration affecting the size of batches.
  54. type BatchSize struct {
  55. MaxMessageCount uint32 `yaml:"MaxMessageSize"`
  56. AbsoluteMaxBytes uint32 `yaml:"AbsoluteMaxBytes"`
  57. PreferredMaxBytes uint32 `yaml:"PreferredMaxBytes"`
  58. }
Add Comment
Please, Sign In to add comment