summaryrefslogtreecommitdiffstats
path: root/build_external
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
commit81581f9719bc56f01d5aa08952671d65fda9867a (patch)
tree0f5c6b6138bf169c23c9d24b1fc0a3521385cb18 /build_external
parentReleasing debian version 1.38.1-1. (diff)
downloadnetdata-81581f9719bc56f01d5aa08952671d65fda9867a.tar.xz
netdata-81581f9719bc56f01d5aa08952671d65fda9867a.zip
Merging upstream version 1.39.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build_external')
-rw-r--r--build_external/README.md5
-rw-r--r--build_external/scenarios/children-to-localhost/README.md10
-rw-r--r--build_external/scenarios/children-to-localhost/child_stream.conf10
-rw-r--r--build_external/scenarios/children-to-localhost/docker-compose.yml9
-rw-r--r--build_external/scenarios/children-to-localhost/parent_stream.conf7
5 files changed, 40 insertions, 1 deletions
diff --git a/build_external/README.md b/build_external/README.md
index d68e4d0f1..9905bddf3 100644
--- a/build_external/README.md
+++ b/build_external/README.md
@@ -1,7 +1,10 @@
<!--
title: "External build-system"
-date: 2020-03-31
custom_edit_url: https://github.com/netdata/netdata/edit/master/build_external/README.md
+sidebar_label: "External build-system"
+learn_status: "Published"
+learn_topic_type: "References"
+learn_rel_path: "Installation/Package maintainers"
-->
# External build-system
diff --git a/build_external/scenarios/children-to-localhost/README.md b/build_external/scenarios/children-to-localhost/README.md
new file mode 100644
index 000000000..7b7be665a
--- /dev/null
+++ b/build_external/scenarios/children-to-localhost/README.md
@@ -0,0 +1,10 @@
+# Stream children to localhost
+
+1. Run `docker-compose up --scale=50`
+2. Copy `parent_stream.conf` to the `stream.conf` of a local agent
+3. Restart the local agent
+
+You'll have 50 child agents streaming to the parent agent that runs locally.
+
+Useful for easily stress testing, restarting, profiling, debugging, etc, a
+locally-built agent during development.
diff --git a/build_external/scenarios/children-to-localhost/child_stream.conf b/build_external/scenarios/children-to-localhost/child_stream.conf
new file mode 100644
index 000000000..72a353fe0
--- /dev/null
+++ b/build_external/scenarios/children-to-localhost/child_stream.conf
@@ -0,0 +1,10 @@
+[stream]
+ enabled = yes
+ destination = tcp:host.docker.internal
+ api key = 00000000-0000-0000-0000-000000000000
+ timeout seconds = 60
+ default port = 19999
+ send charts matching = *
+ buffer size bytes = 1048576
+ reconnect delay seconds = 5
+ initial clock resync iterations = 60
diff --git a/build_external/scenarios/children-to-localhost/docker-compose.yml b/build_external/scenarios/children-to-localhost/docker-compose.yml
new file mode 100644
index 000000000..59739f9eb
--- /dev/null
+++ b/build_external/scenarios/children-to-localhost/docker-compose.yml
@@ -0,0 +1,9 @@
+version: '3.3'
+services:
+ child:
+ image: netdata/netdata
+ command: /usr/sbin/netdata -D
+ volumes:
+ - ./child_stream.conf:/etc/netdata/stream.conf:ro
+ extra_hosts:
+ - "host.docker.internal:host-gateway"
diff --git a/build_external/scenarios/children-to-localhost/parent_stream.conf b/build_external/scenarios/children-to-localhost/parent_stream.conf
new file mode 100644
index 000000000..bf85ae258
--- /dev/null
+++ b/build_external/scenarios/children-to-localhost/parent_stream.conf
@@ -0,0 +1,7 @@
+[00000000-0000-0000-0000-000000000000]
+ enabled = yes
+ allow from = *
+ default history = 3600
+ health enabled by default = auto
+ default postpone alarms on connect seconds = 60
+ multiple connections = allow