joyent-portal/spikes/no-leak
2017-03-21 10:07:19 +00:00
..
artillery add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
prometheus add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
scripts add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
src add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
static add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
.babelrc add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
.dockerignore add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
.eslintignore add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
.eslintrc add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
.gitignore add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
datasets.json add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
docker-compose.yml add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
Dockerfile add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
package.json add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
readme.md add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
sort.js add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
watch.js add no-leak example to get normal data 2017-03-21 10:07:19 +00:00
yarn.lock add no-leak example to get normal data 2017-03-21 10:07:19 +00:00

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
    1. Spawn an artillery for each node that loads it with a small but constant stream of requests
    1. 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 is also listening at http://127.0.0.1:9090/

example