-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3387] Clean up Docker Compose configs
Some cruft has been accumulated over time on the orderer-related Docker Compose configurations under the "bddtests" folder. This changeset: 1. Removes environment variables that are either deprecated (e.g. `ORDERER_RAMLEDGER`) or not in use by the BDD tests (e.g. all `CONFIGTX` variables since `bootstrap.feature` does not use the `configtxgen` tool, or the `provisional` bootstrapper). 2. Removes configurations that are either no longer relevant (e.g. `bdd-docker/docker-compose-4-consensus-batch-nosnapshotbuffer.yml`) or no longer in use. 3. Moves all Docker Compose files to the `bddtests` folder and renames them to filenames that are hopefully a bit more expressive. Thanks to Jeff Garratt for guiding me through his. 4. Modified the Kafka environment so that it uses the bare-minimum sensisble defaults, and added comments for the critical settings. UPDATE: Rebased, added more comments, expanded base orderer configuration to a ZK ensemble consisting of 3 ZK servers, and a Kafka cluster consisting of 4 brokers, modified the `SystemUpWaitTime` accordingly. Change-Id: Iac0f55a0bfc3a7a67b70d3de0918cf727058ae16 Signed-off-by: Kostas Christidis <kostas@christidis.io>
- Loading branch information
1 parent
5caa571
commit d163e72
Showing
22 changed files
with
321 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
bddtests/bdd-docker/docker-compose-4-consensus-batch-nosnapshotbuffer.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
version: '2' | ||
|
||
services: | ||
|
||
orderer: | ||
image: hyperledger/fabric-orderer | ||
environment: | ||
- ORDERER_GENERAL_GENESISMETHOD=${ORDERER_GENERAL_GENESISMETHOD} | ||
- ORDERER_GENERAL_GENESISFILE=${ORDERER_GENERAL_GENESISFILE} | ||
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 | ||
- ORDERER_GENERAL_LOGLEVEL=debug | ||
- ORDERER_KAFKA_VERBOSE=true | ||
- ORDERER_GENERAL_TLS_ENABLED=true | ||
volumes: | ||
- ./volumes/orderer:/var/hyperledger/bddtests/volumes/orderer | ||
- /etc/hyperledger/msp:/etc/hyperledger/msp | ||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer | ||
command: orderer | ||
ports: | ||
- '7050' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
version: '2' | ||
|
||
services: | ||
|
||
zookeeper: | ||
image: hyperledger/fabric-zookeeper | ||
restart: always | ||
ports: | ||
- '2181' | ||
- '2888' | ||
- '3888' | ||
|
||
kafka: | ||
image: hyperledger/fabric-kafka | ||
restart: always | ||
environment: | ||
# ======================================================================== | ||
# Reference: https://kafka.apache.org/documentation/#configuration | ||
# ======================================================================== | ||
# | ||
# socket.request.max.bytes | ||
# The maximum number of bytes in a socket request. ATTN: If you set this | ||
# env var, you should make sure that the value assigned to | ||
# `brokerConfig.Producer.MaxMessageBytes` in `newBrokerConfig()` in | ||
# `fabric/orderer/kafka/util.go` matches it. | ||
#- KAFKA_SOCKET_REQUEST_MAX_BYTES=104857600 # 100 * 1024 * 1024 B | ||
# | ||
# message.max.bytes | ||
# The maximum size of envelope that the broker can receive. | ||
- KAFKA_MESSAGE_MAX_BYTES=103809024 # 99 * 1024 * 1024 B | ||
# | ||
# replica.fetch.max.bytes | ||
# The number of bytes of messages to attempt to fetch for each channel. | ||
# This is not an absolute maximum, if the fetched envelope is larger than | ||
# this value, the envelope will still be returned to ensure that progress | ||
# can be made. The maximum message size accepted by the broker is defined | ||
# via message.max.bytes above. | ||
- KAFKA_REPLICA_FETCH_MAX_BYTES=103809024 # 99 * 1024 * 1024 B | ||
# | ||
# unclean.leader.election.enable | ||
# Data consistency is key in a blockchain environment. We cannot have a | ||
# leader chosen outside of the in-sync replica set, or we run the risk of | ||
# overwriting the offsets that the previous leader produced, and --as a | ||
# result-- rewriting the blockchain that the orderers produce. | ||
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false | ||
ports: | ||
- '9092' |
Oops, something went wrong.