github.com/sykesm/fabric@v1.1.0-preview.0.20200129034918-2aa12b1a0181/sampleconfig/core.yaml (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  
     6  ###############################################################################
     7  #
     8  #    Peer section
     9  #
    10  ###############################################################################
    11  peer:
    12  
    13      # The peer id provides a name for this peer instance and is used when
    14      # naming docker resources.
    15      id: jdoe
    16  
    17      # The networkId allows for logical separation of networks and is used when
    18      # naming docker resources.
    19      networkId: dev
    20  
    21      # The Address at local network interface this Peer will listen on.
    22      # By default, it will listen on all network interfaces
    23      listenAddress: 0.0.0.0:7051
    24  
    25      # The endpoint this peer uses to listen for inbound chaincode connections.
    26      # If this is commented-out, the listen address is selected to be
    27      # the peer's address (see below) with port 7052
    28      # chaincodeListenAddress: 0.0.0.0:7052
    29  
    30      # The endpoint the chaincode for this peer uses to connect to the peer.
    31      # If this is not specified, the chaincodeListenAddress address is selected.
    32      # And if chaincodeListenAddress is not specified, address is selected from
    33      # peer listenAddress.
    34      # chaincodeAddress: 0.0.0.0:7052
    35  
    36      # When used as peer config, this represents the endpoint to other peers
    37      # in the same organization. For peers in other organization, see
    38      # gossip.externalEndpoint for more info.
    39      # When used as CLI config, this means the peer's endpoint to interact with
    40      address: 0.0.0.0:7051
    41  
    42      # Whether the Peer should programmatically determine its address
    43      # This case is useful for docker containers.
    44      addressAutoDetect: false
    45  
    46      # Keepalive settings for peer server and clients
    47      keepalive:
    48          # Interval is the duration after which if the server does not see
    49          # any activity from the client it pings the client to see if it's alive
    50          interval: 7200s
    51          # Timeout is the duration the server waits for a response
    52          # from the client after sending a ping before closing the connection
    53          timeout: 20s
    54          # MinInterval is the minimum permitted time between client pings.
    55          # If clients send pings more frequently, the peer server will
    56          # disconnect them
    57          minInterval: 60s
    58          # Client keepalive settings for communicating with other peer nodes
    59          client:
    60              # Interval is the time between pings to peer nodes.  This must
    61              # greater than or equal to the minInterval specified by peer
    62              # nodes
    63              interval: 60s
    64              # Timeout is the duration the client waits for a response from
    65              # peer nodes before closing the connection
    66              timeout: 20s
    67          # DeliveryClient keepalive settings for communication with ordering
    68          # nodes.
    69          deliveryClient:
    70              # Interval is the time between pings to ordering nodes.  This must
    71              # greater than or equal to the minInterval specified by ordering
    72              # nodes.
    73              interval: 60s
    74              # Timeout is the duration the client waits for a response from
    75              # ordering nodes before closing the connection
    76              timeout: 20s
    77  
    78  
    79      # Gossip related configuration
    80      gossip:
    81          # Bootstrap set to initialize gossip with.
    82          # This is a list of other peers that this peer reaches out to at startup.
    83          # Important: The endpoints here have to be endpoints of peers in the same
    84          # organization, because the peer would refuse connecting to these endpoints
    85          # unless they are in the same organization as the peer.
    86          bootstrap: 127.0.0.1:7051
    87  
    88          # NOTE: orgLeader and useLeaderElection parameters are mutual exclusive.
    89          # Setting both to true would result in the termination of the peer
    90          # since this is undefined state. If the peers are configured with
    91          # useLeaderElection=false, make sure there is at least 1 peer in the
    92          # organization that its orgLeader is set to true.
    93  
    94          # Defines whenever peer will initialize dynamic algorithm for
    95          # "leader" selection, where leader is the peer to establish
    96          # connection with ordering service and use delivery protocol
    97          # to pull ledger blocks from ordering service. It is recommended to
    98          # use leader election for large networks of peers.
    99          useLeaderElection: true
   100          # Statically defines peer to be an organization "leader",
   101          # where this means that current peer will maintain connection
   102          # with ordering service and disseminate block across peers in
   103          # its own organization
   104          orgLeader: false
   105  
   106          # Interval for membershipTracker polling
   107          membershipTrackerInterval: 5s
   108  
   109          # Overrides the endpoint that the peer publishes to peers
   110          # in its organization. For peers in foreign organizations
   111          # see 'externalEndpoint'
   112          endpoint:
   113          # Maximum count of blocks stored in memory
   114          maxBlockCountToStore: 100
   115          # Max time between consecutive message pushes(unit: millisecond)
   116          maxPropagationBurstLatency: 10ms
   117          # Max number of messages stored until a push is triggered to remote peers
   118          maxPropagationBurstSize: 10
   119          # Number of times a message is pushed to remote peers
   120          propagateIterations: 1
   121          # Number of peers selected to push messages to
   122          propagatePeerNum: 3
   123          # Determines frequency of pull phases(unit: second)
   124          # Must be greater than digestWaitTime + responseWaitTime
   125          pullInterval: 4s
   126          # Number of peers to pull from
   127          pullPeerNum: 3
   128          # Determines frequency of pulling state info messages from peers(unit: second)
   129          requestStateInfoInterval: 4s
   130          # Determines frequency of pushing state info messages to peers(unit: second)
   131          publishStateInfoInterval: 4s
   132          # Maximum time a stateInfo message is kept until expired
   133          stateInfoRetentionInterval:
   134          # Time from startup certificates are included in Alive messages(unit: second)
   135          publishCertPeriod: 10s
   136          # Should we skip verifying block messages or not (currently not in use)
   137          skipBlockVerification: false
   138          # Dial timeout(unit: second)
   139          dialTimeout: 3s
   140          # Connection timeout(unit: second)
   141          connTimeout: 2s
   142          # Buffer size of received messages
   143          recvBuffSize: 20
   144          # Buffer size of sending messages
   145          sendBuffSize: 200
   146          # Time to wait before pull engine processes incoming digests (unit: second)
   147          # Should be slightly smaller than requestWaitTime
   148          digestWaitTime: 1s
   149          # Time to wait before pull engine removes incoming nonce (unit: milliseconds)
   150          # Should be slightly bigger than digestWaitTime
   151          requestWaitTime: 1500ms
   152          # Time to wait before pull engine ends pull (unit: second)
   153          responseWaitTime: 2s
   154          # Alive check interval(unit: second)
   155          aliveTimeInterval: 5s
   156          # Alive expiration timeout(unit: second)
   157          aliveExpirationTimeout: 25s
   158          # Reconnect interval(unit: second)
   159          reconnectInterval: 25s
   160          # This is an endpoint that is published to peers outside of the organization.
   161          # If this isn't set, the peer will not be known to other organizations.
   162          externalEndpoint:
   163          # Leader election service configuration
   164          election:
   165              # Longest time peer waits for stable membership during leader election startup (unit: second)
   166              startupGracePeriod: 15s
   167              # Interval gossip membership samples to check its stability (unit: second)
   168              membershipSampleInterval: 1s
   169              # Time passes since last declaration message before peer decides to perform leader election (unit: second)
   170              leaderAliveThreshold: 10s
   171              # Time between peer sends propose message and declares itself as a leader (sends declaration message) (unit: second)
   172              leaderElectionDuration: 5s
   173  
   174          pvtData:
   175              # pullRetryThreshold determines the maximum duration of time private data corresponding for a given block
   176              # would be attempted to be pulled from peers until the block would be committed without the private data
   177              pullRetryThreshold: 60s
   178              # As private data enters the transient store, it is associated with the peer's ledger's height at that time.
   179              # transientstoreMaxBlockRetention defines the maximum difference between the current ledger's height upon commit,
   180              # and the private data residing inside the transient store that is guaranteed not to be purged.
   181              # Private data is purged from the transient store when blocks with sequences that are multiples
   182              # of transientstoreMaxBlockRetention are committed.
   183              transientstoreMaxBlockRetention: 1000
   184              # pushAckTimeout is the maximum time to wait for an acknowledgement from each peer
   185              # at private data push at endorsement time.
   186              pushAckTimeout: 3s
   187              # Block to live pulling margin, used as a buffer
   188              # to prevent peer from trying to pull private data
   189              # from peers that is soon to be purged in next N blocks.
   190              # This helps a newly joined peer catch up to current
   191              # blockchain height quicker.
   192              btlPullMargin: 10
   193              # the process of reconciliation is done in an endless loop, while in each iteration reconciler tries to
   194              # pull from the other peers the most recent missing blocks with a maximum batch size limitation.
   195              # reconcileBatchSize determines the maximum batch size of missing private data that will be reconciled in a
   196              # single iteration.
   197              reconcileBatchSize: 10
   198              # reconcileSleepInterval determines the time reconciler sleeps from end of an iteration until the beginning
   199              # of the next reconciliation iteration.
   200              reconcileSleepInterval: 1m
   201              # reconciliationEnabled is a flag that indicates whether private data reconciliation is enable or not.
   202              reconciliationEnabled: true
   203              # skipPullingInvalidTransactionsDuringCommit is a flag that indicates whether pulling of invalid
   204              # transaction's private data from other peers need to be skipped during the commit time and pulled
   205              # only through reconciler.
   206              skipPullingInvalidTransactionsDuringCommit: false
   207  
   208          # Gossip state transfer related configuration
   209          state:
   210              # indicates whenever state transfer is enabled or not
   211              # default value is true, i.e. state transfer is active
   212              # and takes care to sync up missing blocks allowing
   213              # lagging peer to catch up to speed with rest network
   214              enabled: true
   215              # checkInterval interval to check whether peer is lagging behind enough to
   216              # request blocks via state transfer from another peer.
   217              checkInterval: 10s
   218              # responseTimeout amount of time to wait for state transfer response from
   219              # other peers
   220              responseTimeout: 3s
   221              # batchSize the number of blocks to request via state transfer from another peer
   222              batchSize: 10
   223              # blockBufferSize reflects the size of the re-ordering buffer
   224              # which captures blocks and takes care to deliver them in order
   225              # down to the ledger layer. The actually buffer size is bounded between
   226              # 0 and 2*blockBufferSize, each channel maintains its own buffer
   227              blockBufferSize: 100
   228              # maxRetries maximum number of re-tries to ask
   229              # for single state transfer request
   230              maxRetries: 3
   231  
   232      # TLS Settings
   233      tls:
   234          # Require server-side TLS
   235          enabled:  false
   236          # Require client certificates / mutual TLS.
   237          # Note that clients that are not configured to use a certificate will
   238          # fail to connect to the peer.
   239          clientAuthRequired: false
   240          # X.509 certificate used for TLS server
   241          cert:
   242              file: tls/server.crt
   243          # Private key used for TLS server (and client if clientAuthEnabled
   244          # is set to true
   245          key:
   246              file: tls/server.key
   247          # Trusted root certificate chain for tls.cert
   248          rootcert:
   249              file: tls/ca.crt
   250          # Set of root certificate authorities used to verify client certificates
   251          clientRootCAs:
   252              files:
   253                - tls/ca.crt
   254          # Private key used for TLS when making client connections.  If
   255          # not set, peer.tls.key.file will be used instead
   256          clientKey:
   257              file:
   258          # X.509 certificate used for TLS when making client connections.
   259          # If not set, peer.tls.cert.file will be used instead
   260          clientCert:
   261              file:
   262  
   263      # Authentication contains configuration parameters related to authenticating
   264      # client messages
   265      authentication:
   266          # the acceptable difference between the current server time and the
   267          # client's time as specified in a client request message
   268          timewindow: 15m
   269  
   270      # Path on the file system where peer will store data (eg ledger). This
   271      # location must be access control protected to prevent unintended
   272      # modification that might corrupt the peer operations.
   273      fileSystemPath: /var/hyperledger/production
   274  
   275      # BCCSP (Blockchain crypto provider): Select which crypto implementation or
   276      # library to use
   277      BCCSP:
   278          Default: SW
   279          # Settings for the SW crypto provider (i.e. when DEFAULT: SW)
   280          SW:
   281              # TODO: The default Hash and Security level needs refactoring to be
   282              # fully configurable. Changing these defaults requires coordination
   283              # SHA2 is hardcoded in several places, not only BCCSP
   284              Hash: SHA2
   285              Security: 256
   286              # Location of Key Store
   287              FileKeyStore:
   288                  # If "", defaults to 'mspConfigPath'/keystore
   289                  KeyStore:
   290          # Settings for the PKCS#11 crypto provider (i.e. when DEFAULT: PKCS11)
   291          PKCS11:
   292              # Location of the PKCS11 module library
   293              Library:
   294              # Token Label
   295              Label:
   296              # User PIN
   297              Pin:
   298              Hash:
   299              Security:
   300  
   301      # Path on the file system where peer will find MSP local configurations
   302      mspConfigPath: msp
   303  
   304      # Identifier of the local MSP
   305      # ----!!!!IMPORTANT!!!-!!!IMPORTANT!!!-!!!IMPORTANT!!!!----
   306      # Deployers need to change the value of the localMspId string.
   307      # In particular, the name of the local MSP ID of a peer needs
   308      # to match the name of one of the MSPs in each of the channel
   309      # that this peer is a member of. Otherwise this peer's messages
   310      # will not be identified as valid by other nodes.
   311      localMspId: SampleOrg
   312  
   313      # CLI common client config options
   314      client:
   315          # connection timeout
   316          connTimeout: 3s
   317  
   318      # Delivery service related config
   319      deliveryclient:
   320          # It sets the total time the delivery service may spend in reconnection
   321          # attempts until its retry logic gives up and returns an error
   322          reconnectTotalTimeThreshold: 3600s
   323  
   324          # It sets the delivery service <-> ordering service node connection timeout
   325          connTimeout: 3s
   326  
   327          # It sets the delivery service maximal delay between consecutive retries
   328          reConnectBackoffThreshold: 3600s
   329  
   330          # A list of orderer endpoint addresses which should be overridden
   331          # when found in channel configurations.
   332          addressOverrides:
   333          #  - from:
   334          #    to:
   335          #    caCertsFile:
   336          #  - from:
   337          #    to:
   338          #    caCertsFile:
   339  
   340      # Type for the local MSP - by default it's of type bccsp
   341      localMspType: bccsp
   342  
   343      # Used with Go profiling tools only in none production environment. In
   344      # production, it should be disabled (eg enabled: false)
   345      profile:
   346          enabled:     false
   347          listenAddress: 0.0.0.0:6060
   348  
   349      # Handlers defines custom handlers that can filter and mutate
   350      # objects passing within the peer, such as:
   351      #   Auth filter - reject or forward proposals from clients
   352      #   Decorators  - append or mutate the chaincode input passed to the chaincode
   353      #   Endorsers   - Custom signing over proposal response payload and its mutation
   354      # Valid handler definition contains:
   355      #   - A name which is a factory method name defined in
   356      #     core/handlers/library/library.go for statically compiled handlers
   357      #   - library path to shared object binary for pluggable filters
   358      # Auth filters and decorators are chained and executed in the order that
   359      # they are defined. For example:
   360      # authFilters:
   361      #   -
   362      #     name: FilterOne
   363      #     library: /opt/lib/filter.so
   364      #   -
   365      #     name: FilterTwo
   366      # decorators:
   367      #   -
   368      #     name: DecoratorOne
   369      #   -
   370      #     name: DecoratorTwo
   371      #     library: /opt/lib/decorator.so
   372      # Endorsers are configured as a map that its keys are the endorsement system chaincodes that are being overridden.
   373      # Below is an example that overrides the default ESCC and uses an endorsement plugin that has the same functionality
   374      # as the default ESCC.
   375      # If the 'library' property is missing, the name is used as the constructor method in the builtin library similar
   376      # to auth filters and decorators.
   377      # endorsers:
   378      #   escc:
   379      #     name: DefaultESCC
   380      #     library: /etc/hyperledger/fabric/plugin/escc.so
   381      handlers:
   382          authFilters:
   383            -
   384              name: DefaultAuth
   385            -
   386              name: ExpirationCheck    # This filter checks identity x509 certificate expiration
   387          decorators:
   388            -
   389              name: DefaultDecorator
   390          endorsers:
   391            escc:
   392              name: DefaultEndorsement
   393              library:
   394          validators:
   395            vscc:
   396              name: DefaultValidation
   397              library:
   398  
   399      #    library: /etc/hyperledger/fabric/plugin/escc.so
   400      # Number of goroutines that will execute transaction validation in parallel.
   401      # By default, the peer chooses the number of CPUs on the machine. Set this
   402      # variable to override that choice.
   403      # NOTE: overriding this value might negatively influence the performance of
   404      # the peer so please change this value only if you know what you're doing
   405      validatorPoolSize:
   406  
   407      # The discovery service is used by clients to query information about peers,
   408      # such as - which peers have joined a certain channel, what is the latest
   409      # channel config, and most importantly - given a chaincode and a channel,
   410      # what possible sets of peers satisfy the endorsement policy.
   411      discovery:
   412          enabled: true
   413          # Whether the authentication cache is enabled or not.
   414          authCacheEnabled: true
   415          # The maximum size of the cache, after which a purge takes place
   416          authCacheMaxSize: 1000
   417          # The proportion (0 to 1) of entries that remain in the cache after the cache is purged due to overpopulation
   418          authCachePurgeRetentionRatio: 0.75
   419          # Whether to allow non-admins to perform non channel scoped queries.
   420          # When this is false, it means that only peer admins can perform non channel scoped queries.
   421          orgMembersAllowedAccess: false
   422  
   423      # Limits is used to configure some internal resource limits.
   424      limits:
   425        # Concurrency limits the number of concurrently running system chaincode requests.
   426        # This option is only supported for qscc at this time.
   427        concurrency:
   428          qscc: 5000
   429  
   430  ###############################################################################
   431  #
   432  #    VM section
   433  #
   434  ###############################################################################
   435  vm:
   436  
   437      # Endpoint of the vm management system.  For docker can be one of the following in general
   438      # unix:///var/run/docker.sock
   439      # http://localhost:2375
   440      # https://localhost:2376
   441      endpoint: unix:///var/run/docker.sock
   442  
   443      # settings for docker vms
   444      docker:
   445          tls:
   446              enabled: false
   447              ca:
   448                  file: docker/ca.crt
   449              cert:
   450                  file: docker/tls.crt
   451              key:
   452                  file: docker/tls.key
   453  
   454          # Enables/disables the standard out/err from chaincode containers for
   455          # debugging purposes
   456          attachStdout: false
   457  
   458          # Parameters on creating docker container.
   459          # Container may be efficiently created using ipam & dns-server for cluster
   460          # NetworkMode - sets the networking mode for the container. Supported
   461          # standard values are: `host`(default),`bridge`,`ipvlan`,`none`.
   462          # Dns - a list of DNS servers for the container to use.
   463          # Note:  `Privileged` `Binds` `Links` and `PortBindings` properties of
   464          # Docker Host Config are not supported and will not be used if set.
   465          # LogConfig - sets the logging driver (Type) and related options
   466          # (Config) for Docker. For more info,
   467          # https://docs.docker.com/engine/admin/logging/overview/
   468          # Note: Set LogConfig using Environment Variables is not supported.
   469          hostConfig:
   470              NetworkMode: host
   471              Dns:
   472                 # - 192.168.0.1
   473              LogConfig:
   474                  Type: json-file
   475                  Config:
   476                      max-size: "50m"
   477                      max-file: "5"
   478              Memory: 2147483648
   479  
   480  ###############################################################################
   481  #
   482  #    Chaincode section
   483  #
   484  ###############################################################################
   485  chaincode:
   486  
   487      # The id is used by the Chaincode stub to register the executing Chaincode
   488      # ID with the Peer and is generally supplied through ENV variables
   489      # the `path` form of ID is provided when installing the chaincode.
   490      # The `name` is used for all other requests and can be any string.
   491      id:
   492          path:
   493          name:
   494  
   495      # Generic builder environment, suitable for most chaincode types
   496      builder: $(DOCKER_NS)/fabric-ccenv:$(TWO_DIGIT_VERSION)
   497  
   498      # Enables/disables force pulling of the base docker images (listed below)
   499      # during user chaincode instantiation.
   500      # Useful when using moving image tags (such as :latest)
   501      pull: false
   502  
   503      golang:
   504          # golang will never need more than baseos
   505          runtime: $(DOCKER_NS)/fabric-baseos:$(TWO_DIGIT_VERSION)
   506  
   507          # whether or not golang chaincode should be linked dynamically
   508          dynamicLink: false
   509  
   510      java:
   511          # This is an image based on java:openjdk-8 with addition compiler
   512          # tools added for java shim layer packaging.
   513          # This image is packed with shim layer libraries that are necessary
   514          # for Java chaincode runtime.
   515          runtime: $(DOCKER_NS)/fabric-javaenv:$(TWO_DIGIT_VERSION)
   516  
   517      node:
   518          # This is an image based on node:$(NODE_VER)-alpine
   519          runtime: $(DOCKER_NS)/fabric-nodeenv:$(TWO_DIGIT_VERSION)
   520  
   521      # List of directories to treat as external builders and launchers for
   522      # chaincode. The external builder detection processing will iterate over the
   523      # builders in the order specified below.
   524      externalBuilders: []
   525          # - path: /path/to/directory
   526          #   name: descriptive-builder-name
   527          #   environmentWhitelist:
   528          #      - ENVVAR_NAME_TO_PROPAGATE_FROM_PEER
   529          #      - GOPROXY
   530  
   531      # The maximum duration to wait for the chaincode build and install process
   532      # to complete.
   533      installTimeout: 300s
   534  
   535      # Timeout duration for starting up a container and waiting for Register
   536      # to come through.
   537      startuptimeout: 300s
   538  
   539      # Timeout duration for Invoke and Init calls to prevent runaway.
   540      # This timeout is used by all chaincodes in all the channels, including
   541      # system chaincodes.
   542      # Note that during Invoke, if the image is not available (e.g. being
   543      # cleaned up when in development environment), the peer will automatically
   544      # build the image, which might take more time. In production environment,
   545      # the chaincode image is unlikely to be deleted, so the timeout could be
   546      # reduced accordingly.
   547      executetimeout: 30s
   548  
   549      # There are 2 modes: "dev" and "net".
   550      # In dev mode, user runs the chaincode after starting peer from
   551      # command line on local machine.
   552      # In net mode, peer will run chaincode in a docker container.
   553      mode: net
   554  
   555      # keepalive in seconds. In situations where the communiction goes through a
   556      # proxy that does not support keep-alive, this parameter will maintain connection
   557      # between peer and chaincode.
   558      # A value <= 0 turns keepalive off
   559      keepalive: 0
   560  
   561      # system chaincodes whitelist. To add system chaincode "myscc" to the
   562      # whitelist, add "myscc: enable" to the list below, and register in
   563      # chaincode/importsysccs.go
   564      system:
   565          _lifecycle: enable
   566          cscc: enable
   567          lscc: enable
   568          escc: enable
   569          vscc: enable
   570          qscc: enable
   571  
   572      # Logging section for the chaincode container
   573      logging:
   574        # Default level for all loggers within the chaincode container
   575        level:  info
   576        # Override default level for the 'shim' logger
   577        shim:   warning
   578        # Format for the chaincode container logs
   579        format: '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
   580  
   581  ###############################################################################
   582  #
   583  #    Ledger section - ledger configuration encompasses both the blockchain
   584  #    and the state
   585  #
   586  ###############################################################################
   587  ledger:
   588  
   589    blockchain:
   590  
   591    state:
   592      # stateDatabase - options are "goleveldb", "CouchDB"
   593      # goleveldb - default state database stored in goleveldb.
   594      # CouchDB - store state database in CouchDB
   595      stateDatabase: goleveldb
   596      # Limit on the number of records to return per query
   597      totalQueryLimit: 100000
   598      couchDBConfig:
   599         # It is recommended to run CouchDB on the same server as the peer, and
   600         # not map the CouchDB container port to a server port in docker-compose.
   601         # Otherwise proper security must be provided on the connection between
   602         # CouchDB client (on the peer) and server.
   603         couchDBAddress: 127.0.0.1:5984
   604         # This username must have read and write authority on CouchDB
   605         username:
   606         # The password is recommended to pass as an environment variable
   607         # during start up (eg CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD).
   608         # If it is stored here, the file must be access control protected
   609         # to prevent unintended users from discovering the password.
   610         password:
   611         # Number of retries for CouchDB errors
   612         maxRetries: 3
   613         # Number of retries for CouchDB errors during peer startup
   614         maxRetriesOnStartup: 12
   615         # CouchDB request timeout (unit: duration, e.g. 20s)
   616         requestTimeout: 35s
   617         # Limit on the number of records per each CouchDB query
   618         # Note that chaincode queries are only bound by totalQueryLimit.
   619         # Internally the chaincode may execute multiple CouchDB queries,
   620         # each of size internalQueryLimit.
   621         internalQueryLimit: 1000
   622         # Limit on the number of records per CouchDB bulk update batch
   623         maxBatchUpdateSize: 1000
   624         # Warm indexes after every N blocks.
   625         # This option warms any indexes that have been
   626         # deployed to CouchDB after every N blocks.
   627         # A value of 1 will warm indexes after every block commit,
   628         # to ensure fast selector queries.
   629         # Increasing the value may improve write efficiency of peer and CouchDB,
   630         # but may degrade query response time.
   631         warmIndexesAfterNBlocks: 1
   632         # Create the _global_changes system database
   633         # This is optional.  Creating the global changes database will require
   634         # additional system resources to track changes and maintain the database
   635         createGlobalChangesDB: false
   636         # CacheSize denotes the maximum mega bytes (MB) to be allocated for the in-memory state
   637         # cache. Note that CacheSize needs to be a multiple of 32 MB. If it is not a multiple
   638         # of 32 MB, the peer would round the size to the next multiple of 32 MB.
   639         # To disable the cache, 0 MB needs to be assigned to the cacheSize.
   640         cacheSize: 64
   641  
   642    history:
   643      # enableHistoryDatabase - options are true or false
   644      # Indicates if the history of key updates should be stored.
   645      # All history 'index' will be stored in goleveldb, regardless if using
   646      # CouchDB or alternate database for the state.
   647      enableHistoryDatabase: true
   648  
   649    pvtdataStore:
   650      # the maximum db batch size for converting
   651      # the ineligible missing data entries to eligible missing data entries
   652      collElgProcMaxDbBatchSize: 5000
   653      # the minimum duration (in milliseconds) between writing
   654      # two consecutive db batches for converting the ineligible missing data entries to eligible missing data entries
   655      collElgProcDbBatchesInterval: 1000
   656  
   657  ###############################################################################
   658  #
   659  #    Operations section
   660  #
   661  ###############################################################################
   662  operations:
   663      # host and port for the operations server
   664      listenAddress: 127.0.0.1:9443
   665  
   666      # TLS configuration for the operations endpoint
   667      tls:
   668          # TLS enabled
   669          enabled: false
   670  
   671          # path to PEM encoded server certificate for the operations server
   672          cert:
   673              file:
   674  
   675          # path to PEM encoded server key for the operations server
   676          key:
   677              file:
   678  
   679          # most operations service endpoints require client authentication when TLS
   680          # is enabled. clientAuthRequired requires client certificate authentication
   681          # at the TLS layer to access all resources.
   682          clientAuthRequired: false
   683  
   684          # paths to PEM encoded ca certificates to trust for client authentication
   685          clientRootCAs:
   686              files: []
   687  
   688  ###############################################################################
   689  #
   690  #    Metrics section
   691  #
   692  ###############################################################################
   693  metrics:
   694      # metrics provider is one of statsd, prometheus, or disabled
   695      provider: disabled
   696  
   697      # statsd configuration
   698      statsd:
   699          # network type: tcp or udp
   700          network: udp
   701  
   702          # statsd server address
   703          address: 127.0.0.1:8125
   704  
   705          # the interval at which locally cached counters and gauges are pushed
   706          # to statsd; timings are pushed immediately
   707          writeInterval: 10s
   708  
   709          # prefix is prepended to all emitted statsd metrics
   710          prefix: