-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-12762 Add etcd/raft consensus option to BYFN
Augment the fabric-samples first-network sample to include an option to choose etcd/raft as consensus-type. Extend the -o flag so that it allows users to choose between the solo, kafka, or etcdraft consensus-type for the ordering service. Use three orderer nodes. Change-Id: Ibc4c3564220466aef0a87baee4a2d594e5554a62 Signed-off-by: Yoav Tock <[email protected]>
- Loading branch information
Showing
7 changed files
with
142 additions
and
26 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
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
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 |
---|---|---|
|
@@ -359,3 +359,43 @@ Profiles: | |
Organizations: | ||
- *Org1 | ||
- *Org2 | ||
|
||
SampleMultiNodeEtcdRaft: | ||
<<: *ChannelDefaults | ||
Capabilities: | ||
<<: *ChannelCapabilities | ||
Orderer: | ||
<<: *OrdererDefaults | ||
OrdererType: etcdraft | ||
EtcdRaft: | ||
Consenters: | ||
- Host: orderer.example.com | ||
Port: 7050 | ||
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tock-ibm
Author
Contributor
|
||
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt | ||
- Host: orderer2.example.com | ||
Port: 7050 | ||
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt | ||
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt | ||
- Host: orderer3.example.com | ||
Port: 7050 | ||
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt | ||
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt | ||
Addresses: | ||
- orderer.example.com:7050 | ||
- orderer2.example.com:7050 | ||
- orderer3.example.com:7050 | ||
|
||
Organizations: | ||
- *OrdererOrg | ||
Capabilities: | ||
<<: *OrdererCapabilities | ||
Application: | ||
<<: *ApplicationDefaults | ||
Organizations: | ||
- <<: *OrdererOrg | ||
Consortiums: | ||
SampleConsortium: | ||
Organizations: | ||
- *Org1 | ||
- *Org2 |
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,45 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
version: '2' | ||
|
||
volumes: | ||
orderer2.example.com: | ||
orderer3.example.com: | ||
|
||
networks: | ||
byfn: | ||
|
||
services: | ||
|
||
orderer2.example.com: | ||
extends: | ||
file: base/peer-base.yaml | ||
service: orderer-base | ||
container_name: orderer2.example.com | ||
networks: | ||
- byfn | ||
volumes: | ||
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block | ||
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/var/hyperledger/orderer/msp | ||
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/var/hyperledger/orderer/tls | ||
- orderer2.example.com:/var/hyperledger/production/orderer | ||
ports: | ||
- 8050:7050 | ||
|
||
orderer3.example.com: | ||
extends: | ||
file: base/peer-base.yaml | ||
service: orderer-base | ||
container_name: orderer3.example.com | ||
networks: | ||
- byfn | ||
volumes: | ||
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block | ||
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/msp:/var/hyperledger/orderer/msp | ||
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/:/var/hyperledger/orderer/tls | ||
- orderer3.example.com:/var/hyperledger/production/orderer | ||
ports: | ||
- 9050: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
@tock-ibm are we suppose to use
server.crt
both in ClientTLSCert and ServerTLSCert ?