Skip to content

Commit dee53d0

Browse files
Luis Sanchezkchristidis
Luis Sanchez
authored andcommitted
[FAB-4274] Refine comments in sample orderer.yml
Change-Id: Ib1a1b78ce34193a164dde8500669ea9b58eb20fb Signed-off-by: Luis Sanchez <[email protected]> Signed-off-by: Kostas Christidis <[email protected]>
1 parent 52853f8 commit dee53d0

File tree

2 files changed

+118
-71
lines changed

2 files changed

+118
-71
lines changed

examples/cluster/config/orderer.yaml

+65-42
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,35 @@ General:
4141
# per: fabric/docs/Setup/logging-control.md
4242
LogLevel: debug
4343

44-
# Genesis method: The method by which to retrieve/generate the genesis
45-
# block. Available values are "provisional", "file". Provisional utilizes
46-
# the parameters in the Genesis section to dynamically generate a new
47-
# genesis block. File uses the file provided by GenesisFile as the genesis
48-
# block.
44+
# Genesis method: The method by which the genesis block for the orderer
45+
# system channel is specified. Available options are "provisional", "file":
46+
# - provisional: Utilizes a genesis profile, specified by GenesisProfile,
47+
# to dynamically generate a new genesis block.
48+
# - file: Uses the file provided by GenesisFile as the genesis block.
4949
GenesisMethod: file
5050

51-
# Genesis profile: The profile to use when using the provisional
52-
# GenesisMethod, See the configtx.yaml file for the descriptions of the
53-
# available profiles.
51+
# Genesis profile: The profile to use to dynamically generate the genesis
52+
# block to use when initializing the orderer system channel and
53+
# GenesisMethod is set to "provisional". See the configtx.yaml file for the
54+
# descriptions of the available profiles. Ignored if GenesisMethod is set to
55+
# "file".
5456
GenesisProfile: SampleSingleMSPSolo
5557

56-
# Genesis file: The file containing the genesis block. Used by the orderer
57-
# when GenesisMethod is set to "file".
58+
# Genesis file: The file containing the genesis block to use when
59+
# initializing the orderer system channel and GenesisMethod is set to
60+
# "file". Ignored if GenesisMethod is set to "provisional".
5861
GenesisFile: genesis.block
5962

60-
# LocalMSPDir is where to find the crypto material needed for signing in the
63+
# LocalMSPDir is where to find the private crypto material needed by the
6164
# orderer. It is set relative here as a default for dev environments but
6265
# should be changed to the real location in production.
6366
LocalMSPDir: msp
6467

6568
# LocalMSPID is the identity to register the local MSP material with the MSP
66-
# manager. IMPORTANT: Deployers need to change the value of the localMspId
67-
# string. In particular, the name of the local MSP ID of an orderer needs to
68-
# match the name of one of the MSPs in the ordering system channel.
69+
# manager. IMPORTANT: The local MSP ID of an orderer needs to match the MSP
70+
# ID of one of the organizations defined in the in the orderer system
71+
# channel's /Channel/Orderer configuration. The sample organization defined
72+
# in the sample configuration provided has an MSP ID of "DEFAULT".
6973
LocalMSPID: OrdererMSP
7074

7175
# Enable an HTTP service for Go "pprof" profiling as documented at:
@@ -74,10 +78,17 @@ General:
7478
Enabled: false
7579
Address: 0.0.0.0:6060
7680

77-
# BCCSP: Select which crypto implementation or library to use for the
78-
# blockchain crypto service provider.
81+
# BCCSP configures the blockchain crypto service providers.
7982
BCCSP:
83+
# Default specifies the preferred blockchain crypto service provider
84+
# to use. If the preferred provider is not available, the software
85+
# based provider ("SW") will be used.
86+
# Valid providers are:
87+
# - SW: a software based crypto provider
88+
# - PKCS11: a CA hardware security module crypto provider.
8089
Default: SW
90+
91+
# SW configures the software based blockchain crypto provider.
8192
SW:
8293
# TODO: The default Hash and Security level needs refactoring to be
8394
# fully configurable. Changing these defaults requires coordination
@@ -89,24 +100,11 @@ General:
89100
FileKeyStore:
90101
KeyStore:
91102

92-
################################################################################
93-
#
94-
# SECTION: RAM Ledger
95-
#
96-
# - This section applies to the configuration of the RAM ledger.
97-
#
98-
################################################################################
99-
RAMLedger:
100-
101-
# History Size: The number of blocks that the RAM ledger is set to retain.
102-
HistorySize: 1000
103-
104-
105103
################################################################################
106104
#
107105
# SECTION: File Ledger
108106
#
109-
# - This section applies to the configuration of the file or json ledgers
107+
# - This section applies to the configuration of the file or json ledgers.
110108
#
111109
################################################################################
112110
FileLedger:
@@ -120,6 +118,22 @@ FileLedger:
120118
# Otherwise, this value is ignored.
121119
Prefix: hyperledger-fabric-ordererledger
122120

121+
################################################################################
122+
#
123+
# SECTION: RAM Ledger
124+
#
125+
# - This section applies to the configuration of the RAM ledger.
126+
#
127+
################################################################################
128+
RAMLedger:
129+
130+
# History Size: The number of blocks that the RAM ledger is set to retain.
131+
# WARNING: Appending a block to the ledger might cause the oldest block in
132+
# the ledger to be dropped in order to limit the number total number blocks
133+
# to HistorySize. For example, if history size is 10, when appending block
134+
# 10, block 0 (the genesis block!) will be dropped to make room for block 10.
135+
HistorySize: 1000
136+
123137
################################################################################
124138
#
125139
# SECTION: Kafka
@@ -131,31 +145,40 @@ Kafka:
131145

132146
# Retry: What to do if none of the Kafka brokers are available.
133147
Retry:
134-
# The producer should attempt to reconnect every <Period>
148+
# The orderer should attempt to reconnect every <Period>
135149
Period: 3s
136150
# Panic if <Stop> has elapsed and no connection has been established
137151
Stop: 60s
138152

139-
# Verbose: Turn on logging for sarama, the client library that we use to
140-
# interact with the Kafka cluster.
153+
# Verbose: Enable logging for interactions with the Kafka cluster.
141154
Verbose: false
142155

143-
# TLS: TLS settings for the Kafka client
156+
# TLS: TLS settings for the orderer's connection to the Kafka cluster.
144157
TLS:
145158

146-
# Enabled: set to true enable TLS
159+
# Enabled: Use TLS when connecting to the Kafka cluster.
147160
Enabled: false
148161

149-
# PrivateKey: PEM-encoded private key orderer will use for authentication.
162+
# PrivateKey: PEM-encoded private key the orderer will use for
163+
# authentication.
150164
PrivateKey:
151-
#File: uncomment to read PrivateKey from a file
165+
# As an alternative to specifying the PrivateKey here, uncomment the
166+
# following "File" key and specify the file name from which to load the
167+
# value of PrivateKey.
168+
#File: path/to/PrivateKey
152169

153-
# Certificate: PEM-encoded signed public key vertificate orderer will use
154-
# for authentication.
170+
# Certificate: PEM-encoded signed public key certificate the orderer will
171+
# use for authentication.
155172
Certificate:
156-
#File: uncomment to read Certificate from a file
173+
# As an alternative to specifying the Certificate here, uncomment the
174+
# following "File" key and specify the file name from which to load the
175+
# value of Certificate.
176+
#File: path/to/Certificate
157177

158-
# RootCAs: PEM encoded trusted signer certificates used to validate
178+
# RootCAs: PEM-encoded trusted root certificates used to validate
159179
# certificates from the Kafka cluster.
160180
RootCAs:
161-
#File: uncomment to read Certificate from a file
181+
# As an alternative to specifying the RootCAs here, uncomment the
182+
# following "File" key and specify the file name from which to load the
183+
# value of RootCAs.
184+
#File: path/to/RootCAs

sampleconfig/orderer.yaml

+53-29
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,35 @@ General:
4141
# per: fabric/docs/Setup/logging-control.md
4242
LogLevel: info
4343

44-
# Genesis method: The method by which to retrieve/generate the genesis
45-
# block. Available values are "provisional", "file". Provisional utilizes
46-
# the parameters in the Genesis section to dynamically generate a new
47-
# genesis block. File uses the file provided by GenesisFile as the genesis
48-
# block.
44+
# Genesis method: The method by which the genesis block for the orderer
45+
# system channel is specified. Available options are "provisional", "file":
46+
# - provisional: Utilizes a genesis profile, specified by GenesisProfile,
47+
# to dynamically generate a new genesis block.
48+
# - file: Uses the file provided by GenesisFile as the genesis block.
4949
GenesisMethod: provisional
5050

51-
# Genesis profile: The profile to use when using the provisional
52-
# GenesisMethod, See the configtx.yaml file for the descriptions of the
53-
# available profiles.
51+
# Genesis profile: The profile to use to dynamically generate the genesis
52+
# block to use when initializing the orderer system channel and
53+
# GenesisMethod is set to "provisional". See the configtx.yaml file for the
54+
# descriptions of the available profiles. Ignored if GenesisMethod is set to
55+
# "file".
5456
GenesisProfile: SampleInsecureSolo
5557

56-
# Genesis file: The file containing the genesis block. Used by the orderer
57-
# when GenesisMethod is set to "file".
58+
# Genesis file: The file containing the genesis block to use when
59+
# initializing the orderer system channel and GenesisMethod is set to
60+
# "file". Ignored if GenesisMethod is set to "provisional".
5861
GenesisFile: genesisblock
5962

60-
# LocalMSPDir is where to find the crypto material needed for signing in the
63+
# LocalMSPDir is where to find the private crypto material needed by the
6164
# orderer. It is set relative here as a default for dev environments but
6265
# should be changed to the real location in production.
6366
LocalMSPDir: msp
6467

6568
# LocalMSPID is the identity to register the local MSP material with the MSP
66-
# manager. IMPORTANT: Deployers need to change the value of the localMspId
67-
# string. In particular, the name of the local MSP ID of an orderer needs to
68-
# match the name of one of the MSPs in the ordering system channel.
69+
# manager. IMPORTANT: The local MSP ID of an orderer needs to match the MSP
70+
# ID of one of the organizations defined in the in the orderer system
71+
# channel's /Channel/Orderer configuration. The sample organization defined
72+
# in the sample configuration provided has an MSP ID of "DEFAULT".
6973
LocalMSPID: DEFAULT
7074

7175
# Enable an HTTP service for Go "pprof" profiling as documented at:
@@ -74,10 +78,17 @@ General:
7478
Enabled: false
7579
Address: 0.0.0.0:6060
7680

77-
# BCCSP: Select which crypto implementation or library to use for the
78-
# blockchain crypto service provider.
81+
# BCCSP configures the blockchain crypto service providers.
7982
BCCSP:
83+
# Default specifies the preferred blockchain crypto service provider
84+
# to use. If the preferred provider is not available, the software
85+
# based provider ("SW") will be used.
86+
# Valid providers are:
87+
# - SW: a software based crypto provider
88+
# - PKCS11: a CA hardware security module crypto provider.
8089
Default: SW
90+
91+
# SW configures the software based blockchain crypto provider.
8192
SW:
8293
# TODO: The default Hash and Security level needs refactoring to be
8394
# fully configurable. Changing these defaults requires coordination
@@ -93,7 +104,7 @@ General:
93104
#
94105
# SECTION: File Ledger
95106
#
96-
# - This section applies to the configuration of the file or json ledgers
107+
# - This section applies to the configuration of the file or json ledgers.
97108
#
98109
################################################################################
99110
FileLedger:
@@ -117,6 +128,10 @@ FileLedger:
117128
RAMLedger:
118129

119130
# History Size: The number of blocks that the RAM ledger is set to retain.
131+
# WARNING: Appending a block to the ledger might cause the oldest block in
132+
# the ledger to be dropped in order to limit the number total number blocks
133+
# to HistorySize. For example, if history size is 10, when appending block
134+
# 10, block 0 (the genesis block!) will be dropped to make room for block 10.
120135
HistorySize: 1000
121136

122137
################################################################################
@@ -130,31 +145,40 @@ Kafka:
130145

131146
# Retry: What to do if none of the Kafka brokers are available.
132147
Retry:
133-
# The producer should attempt to reconnect every <Period>
148+
# The orderer should attempt to reconnect every <Period>
134149
Period: 3s
135150
# Panic if <Stop> has elapsed and no connection has been established
136151
Stop: 60s
137152

138-
# Verbose: Turn on logging for sarama, the client library that we use to
139-
# interact with the Kafka cluster.
153+
# Verbose: Enable logging for interactions with the Kafka cluster.
140154
Verbose: false
141155

142-
# TLS: TLS settings for the Kafka client
156+
# TLS: TLS settings for the orderer's connection to the Kafka cluster.
143157
TLS:
144158

145-
# Enabled: set to true enable TLS
159+
# Enabled: Use TLS when connecting to the Kafka cluster.
146160
Enabled: false
147161

148-
# PrivateKey: PEM-encoded private key orderer will use for authentication.
162+
# PrivateKey: PEM-encoded private key the orderer will use for
163+
# authentication.
149164
PrivateKey:
150-
#File: uncomment to read PrivateKey from a file
165+
# As an alternative to specifying the PrivateKey here, uncomment the
166+
# following "File" key and specify the file name from which to load the
167+
# value of PrivateKey.
168+
#File: path/to/PrivateKey
151169

152-
# Certificate: PEM-encoded signed public key vertificate orderer will use
153-
# for authentication.
170+
# Certificate: PEM-encoded signed public key certificate the orderer will
171+
# use for authentication.
154172
Certificate:
155-
#File: uncomment to read Certificate from a file
173+
# As an alternative to specifying the Certificate here, uncomment the
174+
# following "File" key and specify the file name from which to load the
175+
# value of Certificate.
176+
#File: path/to/Certificate
156177

157-
# RootCAs: PEM encoded trusted signer certificates used to validate
178+
# RootCAs: PEM-encoded trusted root certificates used to validate
158179
# certificates from the Kafka cluster.
159180
RootCAs:
160-
#File: uncomment to read Certificate from a file
181+
# As an alternative to specifying the RootCAs here, uncomment the
182+
# following "File" key and specify the file name from which to load the
183+
# value of RootCAs.
184+
#File: path/to/RootCAs

0 commit comments

Comments
 (0)