Add the mknet config file

This commit is contained in:
Quentin 2022-08-11 22:37:43 +02:00
parent 050b7d4846
commit 4e6ca1b724
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 29 additions and 1 deletions

View File

@ -8,7 +8,35 @@ So I wanted to reproduce this behavior in a more controlled environment.
## Reproducing the error in mknet
I used mknet to emulate a simple network with close to zero latency but with a very small bandwidth: 1Mbit/s. The idea is that the network will be the bottleneck, but not the CPU, the memory or the disk, even on my low powered laptop.
I used mknet to emulate a simple network with close to zero latency but with a very small bandwidth: 1Mbit/s. The idea is that the network will be the bottleneck, but not the CPU, the memory or the disk, even on my low powered laptop. The following configuration describes the simulated network configuration I used:
```yaml
links:
- &slow
bandwidth: 1M
latency: 500us
- &1000
bandwidth: 1000M
latency: 100us
servers:
- name: node1
<<: *slow
- name: node2
<<: *slow
- name: node3
<<: *slow
global:
subnet:
base: 'fc00:9a7a:9e::'
local: 64
zone: 16
latency-offset: 3ms
upstream:
ip: fc00:9a7a:9e:ffff:ffff:ffff:ffff:ffff
conn: *1000
```
After a while, we quickly observe that the cluster is not reacting very well: