github.com/IBM-Blockchain/fabric-operator@v1.0.4/testdata/init/peer/core_bootstrap_test.yaml (about)

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