Name: loadtesting-the-Blockchain-Network
Owner: International Business Machines
Description: Run a java program to load test a blockchain network.
Created: 2018-03-26 21:06:34.0
Updated: 2018-05-22 06:56:06.0
Pushed: 2018-05-02 20:06:08.0
Homepage: https://developer.ibm.com/code/patterns/load-test-your-blockchain-network/
Size: 70
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This pattern is continuation of the Leveraging cache and MessagingQueue to scale Blockchain Network . In this pattern, we are going run java programs to load test our blockchain network i.e. to send request to blockchain network and to check for results of request execution. MongoDb is used to keep track of statistics for the load testing.
er run -p 27017:27017 -d mongo
git clone https://github.com/IBM/loadtesting-the-Blockchain-Network.git
compile
exec:java -Dexec.mainClass="secretApp.testApp.ResultGenerator"
exec:java -Dexec.mainClass="secretApp.testApp.ExecutionApp"
er-compose -p "fitcoin" up -d --scale fitcoin-backend=<No of containers>
For eg:er-compose -p "fitcoin" up -d --scale fitcoin-backend=3
Note: To view the results you can download robomongo/ Robo 3T. Currently, ExecutionApp is configured to send enroll request for user types, query request for user state and invoke request for generating fitcoins which can be modified according to the requirements.