From 31edfb989ad2bbc1fe7ca503c03ea3f43644a72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 25 Nov 2016 10:34:08 +0000 Subject: [PATCH] improve readme --- spikes/leak/readme.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/spikes/leak/readme.md b/spikes/leak/readme.md index e69de29b..ccc02750 100644 --- a/spikes/leak/readme.md +++ b/spikes/leak/readme.md @@ -0,0 +1,25 @@ +# leak + + - 1. Spawn a bunch of servers: + - another-fast: a node with a linear memory leak + - fast: a node with a linear memory leak + - slow: a node with a memory leak that grows very slowly + - plain: a node with no memory leak + - 2. Spawn an [artillery](https://artillery.io) for each node that loads it with a small but constant stream of requests + - 3. Spawn Prometheus that watches the cpu/memory of each node + +Then, locally we start the same server and we can see the different instances and an aggregate of the metrics for each job. + +## usage + +``` +λ docker-compose up +λ node . +``` + +Go to http://127.0.0.1:8000/ and see the result. +The [Prometheus](https://prometheus.io) is also listening at http://127.0.0.1:9090/ + +## example + +![](https://cldup.com/yxS380e1HN.png)