Skip to content

Commit

Permalink
Merge "[FAB-3288] Sync configtx.yaml with Compose configs"
Browse files Browse the repository at this point in the history
  • Loading branch information
christo4ferris authored and Gerrit Code Review committed Apr 28, 2017
2 parents ba93322 + fc268da commit 37eb1a9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
2 changes: 2 additions & 0 deletions bddtests/environments/orderer-1-kafka-1/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
image: hyperledger/fabric-kafka
environment:
KAFKA_BROKER_ID: 0
KAFKA_MESSAGE_MAX_BYTES: 103809024
KAFKA_REPLICA_FETCH_MAX_BYTES: 103809024
KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
Expand Down
6 changes: 6 additions & 0 deletions bddtests/environments/orderer-1-kafka-3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ services:
environment:
KAFKA_BROKER_ID: 0
KAFKA_DEFAULT_REPLICATION_FACTOR: 3
KAFKA_MESSAGE_MAX_BYTES: 103809024
KAFKA_REPLICA_FETCH_MAX_BYTES: 103809024
KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
Expand All @@ -34,6 +36,8 @@ services:
environment:
KAFKA_BROKER_ID: 1
KAFKA_DEFAULT_REPLICATION_FACTOR: 3
KAFKA_MESSAGE_MAX_BYTES: 103809024
KAFKA_REPLICA_FETCH_MAX_BYTES: 103809024
KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
Expand All @@ -44,6 +48,8 @@ services:
environment:
KAFKA_BROKER_ID: 2
KAFKA_DEFAULT_REPLICATION_FACTOR: 3
KAFKA_MESSAGE_MAX_BYTES: 103809024
KAFKA_REPLICA_FETCH_MAX_BYTES: 103809024
KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE: "false"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
Expand Down
32 changes: 18 additions & 14 deletions sampleconfig/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,32 @@ Organizations:
# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: msp

# AdminPrincipal dictates the type of principal used for an organization's Admins policy
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
# of role type ADMIN and role type MEMBER respectively
# AdminPrincipal dictates the type of principal used for an
# organization's Admins policy. Today, only the values of Role.ADMIN and
# Role.MEMBER are accepted, which indicates a principal of role type
# ADMIN and role type MEMBER respectively.
AdminPrincipal: Role.ADMIN

# BCCSP: Select which crypto implementation or library to use for the
# blockchain crypto service provider.
BCCSP:
Default: SW
SW:
# TODO: The default Hash and Security level needs refactoring to be
# fully configurable. Changing these defaults requires coordination
# SHA2 is hardcoded in several places, not only BCCSP
# TODO: The default Hash and Security level needs refactoring to
# be fully configurable. Changing these defaults requires
# coordination SHA2 is hardcoded in several places, not only
# BCCSP.
Hash: SHA2
Security: 256
# Location of key store. If this is unset, a location will
# be chosen using: 'MSPDir'/keystore
# Location of key store. If this is unset, a location will be
# chosen using: 'MSPDir'/keystore
FileKeyStore:
KeyStore:

AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context.
# AnchorPeers defines the location of peers which can be used for
# cross-org gossip communication. Note, this value is only encoded
# in the genesis block in the Application section context.
- Host: 127.0.0.1
Port: 7051

Expand Down Expand Up @@ -147,7 +149,9 @@ Orderer: &OrdererDefaults
MaxMessageCount: 10

# Absolute Max Bytes: The absolute maximum number of bytes allowed for
# the serialized messages in a batch.
# the serialized messages in a batch. If the "kafka" OrdererType is
# selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the
# Kafka brokers to a value that is equal to or larger than this one.
AbsoluteMaxBytes: 99 MB

# Preferred Max Bytes: The preferred maximum number of bytes allowed for
Expand All @@ -156,8 +160,8 @@ Orderer: &OrdererDefaults
# bytes.
PreferredMaxBytes: 512 KB

# Max Channels is the maximum number of channels to allow on the ordering network
# When set to 0, this implies no maximum number of channels
# Max Channels is the maximum number of channels to allow on the ordering
# network. When set to 0, this implies no maximum number of channels.
MaxChannels: 0

Kafka:
Expand Down

0 comments on commit 37eb1a9

Please sign in to comment.