forked from Deuxfleurs/mknet
Add the mknet config file
This commit is contained in:
parent
050b7d4846
commit
4e6ca1b724
1 changed files with 29 additions and 1 deletions
30
liveness.md
30
liveness.md
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue