diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 02:57:58 +0000 |
commit | be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch) | |
tree | 9754ff1ca740f6346cf8483ec915d4054bc5da2d /build_external/scenarios/children-to-localhost | |
parent | Initial commit. (diff) | |
download | netdata-upstream.tar.xz netdata-upstream.zip |
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
5 files changed, 39 insertions, 0 deletions
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 00000000..7b7be665 --- /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_netdata.conf b/build_external/scenarios/children-to-localhost/child_netdata.conf new file mode 100644 index 00000000..1f8b0a1d --- /dev/null +++ b/build_external/scenarios/children-to-localhost/child_netdata.conf @@ -0,0 +1,2 @@ +[db] + mode = dbengine 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 00000000..a8ed306b --- /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 = 11111111-2222-3333-4444-555555555555 + 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 00000000..dea56fe5 --- /dev/null +++ b/build_external/scenarios/children-to-localhost/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3.3' +services: + child: + image: netdata/netdata + command: /usr/sbin/netdata -D + volumes: + - ./child_stream.conf:/etc/netdata/stream.conf:ro + - ./child_netdata.conf:/etc/netdata/netdata.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 00000000..36a416b9 --- /dev/null +++ b/build_external/scenarios/children-to-localhost/parent_stream.conf @@ -0,0 +1,7 @@ +[11111111-2222-3333-4444-555555555555] + enabled = yes + allow from = * + default history = 3600 + health enabled by default = auto + default postpone alarms on connect seconds = 60 + multiple connections = allow |