From 4e6ca1b724080d1bf85cb34930872658f1203712 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 11 Aug 2022 22:37:43 +0200 Subject: [PATCH] Add the mknet config file --- liveness.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/liveness.md b/liveness.md index 17fa3f9..4719c9a 100644 --- a/liveness.md +++ b/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: