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