visit
Recently, I stress-tested a Quorum network consisting of 2 nodes on separate machines, and the result was 140 tps…
So, let’s see how to create a 2 node Quorum network in just a few minutes so that you can also stress-test your own Quorum network. But if you are new to Quorum, I suggest you go through the below article, to get a better understanding of this article.
I am using 2 separate AWS machines (Ubuntu Server 16.04 LTS, t2-micro) for 2 separate Quorum nodes. Let us call them quorum-peer-1
and quorum-peer-2
.
2 nodes on AWS
Now, if you are running 2 nodes as above then let’s assume IP address of quorum-peer-1
is IP-1
and IP address of quorum-peer-2
is IP-2
.
Ports to open(all TCP ports ,accessible from anywhere):
Now ssh into the quorum-peer-1
and clone the below repository.
Similarly, ssh into quorum-peer-2
and clone the below repository.
Now execute the below command on both of the machines simultaneously as a super user (using sudo su
).
for example if IP-1
is 12.45.78.55 and IP-2
is 12.45.78.56, then the above command will be like
Make sure that the IP’s are in correct order, or the script will not work as expectedYou will see output similar to below ones.
quorum-peer-1 output
quorum-peer-2 output
If you encounter some error then execute ./stop.sh
and again repeat the “Initializing network” step.
Now, it’s time to test our network. In the quorum-peer-1
execute the below command
Now, go to quorum-peer-2
and execute the below command
quorum-peer-2 output
Now, here is the last command to measure the TPS. Execute the below command to start bombarding private transactions from quorum-peer-1
to quorum-peer-2
. Execute the following command in quorum-peer-1
and you will see output similar to screens shown below.
quorum-peer-1 transaction bombarding
quorum-peer-2 tps results
Well, that’s better than many blockchains, but not really mind blowing.Now as you can see, in the above screen that for first 1000 trxs the average tps rate is around 140 tps.
when you go for 1000 tps but end up with 140 tps…
Well, that was it…your first Quorum network stress-test. If you made it to the end then comment you TPS below using different machine sizes. Let’s see how high it can go.
Hold down the clap button if you liked the content! It helps me gain exposure .
Want to learn more? Check out my previous articles
Clap 50 times and follow me on Twitter: