Skip to content

Commit 56667c1

Browse files
committed
[FAB-4620] Update Docker Compose config files
Change-Id: Ice318f1b9432d6bab1c686a1ddb452519b86fb14 Signed-off-by: Kostas Christidis <[email protected]>
1 parent 0a72230 commit 56667c1

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

bddtests/dc-orderer-kafka-base.yml

+8
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,13 @@ services:
4747
# overwriting the offsets that the previous leader produced, and --as a
4848
# result-- rewriting the blockchain that the orderers produce.
4949
- KAFKA_UNCLEAN_LEADER_ELECTION_ENABLE=false
50+
#
51+
# log.retention.ms
52+
# Until the ordering service in Fabric adds support for pruning of the
53+
# Kafka logs, time-based retention should be disabled so as to prevent
54+
# segments from expiring. (Size-based retention -- see
55+
# log.retention.bytes -- is disabled by default so there is no need to set
56+
# it explicitly.)
57+
# - KAFKA_LOG_RETENTION_MS=-1
5058
ports:
5159
- '9092'

bddtests/dc-orderer-kafka.yml

+16-12
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,27 @@ services:
6262
# it is written to at least M replicas (which are then considered in-sync
6363
# and belong to the in-sync replica set, or ISR). In any other case, the
6464
# write operation returns an error. Then:
65-
# 1. if just one replica out of the N (see default.replication.factor
66-
# below) that the channel data is written to becomes unavailable,
65+
# 1. If up to M-N replicas -- out of the N (see default.replication.factor
66+
# below) that the channel data is written to -- become unavailable,
6767
# operations proceed normally.
68-
# 2. If N - M + 1 (or more) replicas become unavailable, Kafka cannot
69-
# maintain an ISR set of M, so it stops accepting writes. Reads work
70-
# without issues. The cluster becomes writeable again when M replicas get
71-
# in-sync.
68+
# 2. If more replicas become unavailable, Kafka cannot maintain an ISR set
69+
# of M, so it stops accepting writes. Reads work without issues. The
70+
# channel becomes writeable again when M replicas get in-sync.
7271
- KAFKA_MIN_INSYNC_REPLICAS=2
7372
#
7473
# default.replication.factor
75-
# Let the value of this setting be M. This means that:
76-
# 1. Each channel will have its data replicated to N brokers. These are
77-
# the candidates for the ISR set for a channel. As we've noted in the
74+
# Let the value of this setting be N. A replication factor of N means that
75+
# each channel will have its data replicated to N brokers. These are the
76+
# candidates for the ISR set of a channel. As we noted in the
7877
# min.insync.replicas section above, not all of these brokers have to be
79-
# available all the time. We choose a default.replication.factor of N so
80-
# as to have the largest possible candidate set for a channel's ISR.
81-
# 2. Channel creations cannot go forward if less than N brokers are up.
78+
# available all the time. In this sample configuration we choose a
79+
# default.replication.factor of K-1 (where K is the total number of brokers in
80+
# our Kafka cluster) so as to have the largest possible candidate set for
81+
# a channel's ISR. We explicitly avoid setting N equal to K because
82+
# channel creations cannot go forward if less than N brokers are up. If N
83+
# were set equal to K, a single broker going down would mean that we would
84+
# not be able to create new channels, i.e. the crash fault tolerance of
85+
# the ordering service would be non-existent.
8286
- KAFKA_DEFAULT_REPLICATION_FACTOR=3
8387
#
8488
# zookeper.connect

0 commit comments

Comments
 (0)