A collection of shell script that helps extending Test Network as well as executing benchmarking using Hyperledger Caliper
It will extend your Test Network to 3 orderer (orderer.example.com, orderer1.example.com, orderer2.example.com) and 3 peers each organization (peer0, peer1, peer2). It will also join those nodes to channel and install the default chaincode (fabcar) to the nodes.
First you have to update .env files and make sure they point to the correct values. The important variables are CHANNEL_NAME
, FABRIC_SAMPLES_DIR
(where you clone fabric samples) and TEST_NETWORK_EXTENDED_DIR
(where you clone this repository)
envVar.sh contains helper variables and functions. It should work after you update .env
file but please check the content of this files to make sure that everything points to the correct path/value
To run everything all at once, just execute ./setup-fabric-extended.sh
. It will download all the necessary Fabric components, binary and extend the test network.
OR, if you already setup your test network + create channel + deploy fabcar chaincode, just execute ./extend-network.sh
to extend it.
When you want to decompose the extended peers & orderer, simpy execute ./decompose-extension.sh
./setup.caliper.sh
- will setup all the necessary scripts for Hyperledger Caliper
./execute-caliper.sh
- will run Caliper benchmark