New build_external scenario. (#14725)
vkalintiris committed
Mar 15, 2023 at 08:11 UTC
cca68b24db63114ce40e4acdf9b5404e110b3293
4 files changed
+36
build_external/scenarios/children-to-localhost/README.md
new
+10
@@ -0,0 +1,10 @@
1
+# Stream children to localhost
2
+
3
+1. Run `docker-compose up --scale=50`
4
+2. Copy `parent_stream.conf` to the `stream.conf` of a local agent
5
+3. Restart the local agent
6
+
7
+You'll have 50 child agents streaming to the parent agent that runs locally.
8
+
9
+Useful for easily stress testing, restarting, profiling, debugging, etc, a
10
+locally-built agent during development.
build_external/scenarios/children-to-localhost/child_stream.conf
new
+10
@@ -0,0 +1,10 @@
1
+[stream]
2
+ enabled = yes
3
+ destination = tcp:host.docker.internal
4
+ api key = 00000000-0000-0000-0000-000000000000
5
+ timeout seconds = 60
6
+ default port = 19999
7
+ send charts matching = *
8
+ buffer size bytes = 1048576
9
+ reconnect delay seconds = 5
10
+ initial clock resync iterations = 60
build_external/scenarios/children-to-localhost/docker-compose.yml
new
+9
@@ -0,0 +1,9 @@
1
+version: '3.3'
2
+services:
3
+ child:
4
+ image: netdata/netdata
5
+ command: /usr/sbin/netdata -D
6
+ volumes:
7
+ - ./child_stream.conf:/etc/netdata/stream.conf:ro
8
+ extra_hosts:
9
+ - "host.docker.internal:host-gateway"
build_external/scenarios/children-to-localhost/parent_stream.conf
new
+7
@@ -0,0 +1,7 @@
1
+[00000000-0000-0000-0000-000000000000]
2
+ enabled = yes
3
+ allow from = *
4
+ default history = 3600
5
+ health enabled by default = auto
6
+ default postpone alarms on connect seconds = 60
7
+ multiple connections = allow