github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/examples/sfhackfest/tmp/orderer/orderer.yaml (about)

     1  ---
     2  ################################################################################
     3  #
     4  #   Orderer Configuration
     5  #
     6  #   - This controls the type and configuration for the orderer which is started
     7  #   - This controls the type and configuration for the ordererledger if needed
     8  #
     9  ################################################################################
    10  General:
    11  
    12      # Ledger Type: The ledger type to provide to the orderer (if needed)
    13      # Available types are "ram", "file".
    14      LedgerType: ram
    15  
    16      # Queue Size: The maximum number of messages to allow pending from a gRPC
    17      # client.
    18      QueueSize: 10
    19  
    20      # Max Window Size: The maximum number of messages to for the orderer Deliver
    21      # to allow before acknowledgement must be received from the client.
    22      MaxWindowSize: 1000
    23  
    24      # Listen address: The IP on which to bind to listen
    25      ListenAddress: 127.0.0.1
    26  
    27      # Listen port: The port on which to bind to listen
    28      ListenPort: 7050
    29  
    30      # TLS: TLS settings for the GRPC server
    31      TLS:
    32          Enabled: false
    33          ServerKey:
    34          ServerCertificate:
    35          ServerRootCAs:
    36          ClientAuthEnabled: false
    37          ClientRootCAs:
    38  
    39  
    40      # Log Level: The level at which to log.  This accepts logging specifications
    41      # per fabric/docs/Setup/logging-control.md
    42      LogLevel: info
    43  
    44      # Genesis method: The method by which to retrieve/generate the genesis
    45      # block. Available values are "provisional", "file". Provisional utilizes
    46      # the parameters in the Genesis section to dynamically generate a new
    47      # genesis block. File uses the file provided by GenesisFile as the genesis
    48      # block.
    49      GenesisMethod: provisional
    50  
    51      # Genesis file: The file containing the genesis block. Used by the orderer
    52      # when GenesisMethod is set to "file".
    53      GenesisFile: ./genesisblock
    54  
    55      # Enable an HTTP service for Go "pprof" profiling as documented at:
    56      # https://golang.org/pkg/net/http/pprof
    57      Profile:
    58          Enabled: false
    59          Address: 0.0.0.0:6060
    60  
    61  ################################################################################
    62  #
    63  #   SECTION: RAM Ledger
    64  #
    65  #   - This section applies to the configuration of the RAM ledger
    66  #
    67  ################################################################################
    68  RAMLedger:
    69  
    70      # History Size: The number of blocks that the RAM ledger is set to retain
    71      HistorySize: 1000
    72  
    73  
    74  ################################################################################
    75  #
    76  #   SECTION: File Ledger
    77  #
    78  #   - This section applies to the configuration of the file ledger
    79  #
    80  ################################################################################
    81  FileLedger:
    82  
    83      # Location: The directory to store the blocks in
    84      # NOTE: If this is unset, a temporary location will be chosen using
    85      # the prefix specified by Prefix
    86      Location:
    87  
    88      # The prefix to use when generating a ledger directory in temporary space
    89      # Otherwise, this value is ignored
    90      Prefix: hyperledger-fabric-ordererledger
    91  
    92  ################################################################################
    93  #
    94  #   SECTION: Kafka
    95  #
    96  #   - This section applies to the configuration of the Kafka-backed orderer
    97  #
    98  ################################################################################
    99  Kafka:
   100  
   101      # Retry: What to do if none of the Kafka brokers are available
   102      Retry:
   103          # The producer should attempt to reconnect every <Period>
   104          Period: 3s
   105          # Panic if <Stop> has elapsed and no connection has been established
   106          Stop: 60s
   107  
   108      # Verbose: Turn on logging for sarama, the client library that we use to
   109      # interact with the Kafka cluster
   110      Verbose: false
   111  
   112      # Brokers: A list of Kafka brokers to which the orderer connects
   113      # NOTE: Use IP:port notation
   114      Brokers:
   115          - 127.0.0.1:9092
   116  
   117  ################################################################################
   118  #
   119  #   SECTION: Sbft
   120  #
   121  #   - This section applies to the configuration of the Sbft-backed orderer
   122  #
   123  ################################################################################
   124  Sbft:
   125      # Address to use for SBFT internal communication
   126      PeerCommAddr: ":6101"
   127      CertFile: "sbft/testdata/cert1.pem"
   128      KeyFile: "sbft/testdata/key.pem"
   129      # Directory for SBFT data (persistence)
   130      DataDir: "/tmp"
   131      # Number of peers
   132      "N": 1
   133      # Fault tolerance
   134      F: 0
   135      BatchDurationNsec: 1000
   136      BatchSizeBytes: 1000000000
   137      RequestTimeoutNsec: 1000000000
   138      # Peers (PeerCommAddr) with the path of their cert
   139      Peers:
   140          ":6101": "sbft/testdata/cert1.pem"
   141  
   142  ################################################################################
   143  #
   144  #   SECTION: Genesis
   145  #
   146  #   - This section applies to the configuration for the provisional bootstrapper
   147  #
   148  ################################################################################
   149  Genesis:
   150  
   151      # Orderer Type: The orderer implementation to start
   152      # Available types are "solo" and "kafka"
   153      OrdererType: solo
   154  
   155      # Batch Timeout: The amount of time to wait before creating a batch
   156      BatchTimeout: 10s
   157  
   158      # Batch Size: Controls the number of messages batched into a block
   159      BatchSize:
   160  
   161          # Max Message Count: The maximum number of messages to permit in a batch
   162          MaxMessageCount: 10
   163  
   164          # Absolute Max Bytes: The absolute maximum number of bytes allowed for
   165          # the serialized messages in a batch.
   166          AbsoluteMaxBytes: 99 MB
   167  
   168          # Preferred Max Bytes: The preferred maximum number of bytes allowed for
   169          # the serialized messages in a batch. A message larger than the preferred
   170          # max bytes will result in a batch larger than preferred max bytes.
   171          PreferredMaxBytes: 512 KB