This presentation helps to establish multi peer Hyperledger fabric connection on different hosts .
For more information and tutorials
https://www.youtube.com/edit?o=U&video_id=EvICyArbFSs
www.rihusoft.com
2. Peer To Peer Network
Hyperledger fabric is decentralized network, It works with various set of components.
Each of these will be running on it’s own docker instances.
Each Component can be configured to communicate with each other.
These Docker instances even when running on multiple physical machines, can still communicate
with each other.
Every peer maintains a copy of the ledger.
Every transaction is validated by orderer and then added in to the ledger.
Peers in the same network are always in sync.
3. Prerequisites:
Docker - version 17.03.0-ce or greater
Docker Compose - version 1.8 or greater
Node.js - version 6.9. or greater
NPM – version 3.10.10.
Go – 1.7x / JDK.
Hyperledger Fabric platform-specific binaries.
• Cryptogen.
• configtxgen,
• configtxlator,
• peer
Download the Docker images required for Fabric.
4. MultiPeer Setup
Generate certificates in one host and share them to all
other connected machines.
Every host should contain same certificates.
Run the related containers in every machine.
Every host may contains one or more peers based on
the running containers, and atleast one orderer in any
one of the host.
All containers must be run in the same channel.
Ordering service provides a shared communication
channel to peers.
Peers can additionally take up a special role of an
endorsing peer, or an endorser.
Every peer receives ordered state updates in the form
of blocks from the ordering service and maintain the
state and the ledger.
6. CouchDB as the State Database
Couchdb is a document oriented databse.
Most of the chaincode shim APIs can be utilized with either couchdb or leveldb.
Both leveldb and couchdb supports core chain code operations such as getting and
setting a key(asset), and querying based on keys.
Couchdb enabled as the state satabse by adding the state database configuration as
couchdb.
Couchdb runs as the separate database for every peer.