Description:
Adding network latency simulator for block live stream consumers using TC (linux network tool) for simulating network congestion and slow connection with very high latency.
The result of the Test was successful:
The Server was not blocked by slow consumers,
The consumers were able to consume blocks as fast as their networks allowed them,
The control consumer that did not had any restrictions was not impacted by the network issues of other consumers.
And more importantly, once the network issues (latency) resolved on the simulated consumers, the messages or blocks arrived in the correct order
Related issue(s):
Fixes #32
Notes for reviewer:
Due to how Dockerfile performs COPY I had to create a copy of the files consumer.sh and protobuf foldere inside the test project. But I would welcome a suggestion on how to copy relative paths that are above the folder structure of the main project of Dockerfile when building the image.
Description: Adding network latency simulator for block live stream consumers using TC (linux network tool) for simulating network congestion and slow connection with very high latency.
The result of the Test was successful:
Related issue(s):
Fixes #32
Notes for reviewer: Due to how Dockerfile performs COPY I had to create a copy of the files
consumer.sh
andprotobuf
foldere inside the test project. But I would welcome a suggestion on how to copy relative paths that are above the folder structure of the main project of Dockerfile when building the image.How is working:
Checklist