-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrating thread pools to virtual threads * using virtual thread executor when querying remote dns servers * fixing test * stress test related code * configuring supervisor * adjusting default dns * created stress test * created stress test * creating docs of how to use stress tests * more asserts * creating collector structure * skipping login page and set as admin * configuring metrics * fixing test conflict with running dps on machine * configuring default dashboards * changing filter time * updating the docs * adjusting the docs order * linking doc * clean code * clean code * release notes * [Gradle Release Plugin] - new version commit: '3.25.0-snapshot'.
- Loading branch information
Showing
27 changed files
with
712 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,3 +71,5 @@ issues | |
/files | ||
tmp/ | ||
Poc.java | ||
|
||
src/stress-test/docker/dps-stress-test-instance/files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Compiling from source | ||
weight: 4 | ||
pre: "<b>4. </b>" | ||
pre: "<b>1. </b>" | ||
--- | ||
|
||
## Requirements | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Generating the docs | ||
weight: 6 | ||
pre: "<b>6. </b>" | ||
pre: "<b>2. </b>" | ||
--- | ||
|
||
## Introduction | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Release Process | ||
weight: 7 | ||
pre: "<b>7. </b>" | ||
pre: "<b>3. </b>" | ||
--- | ||
|
||
## Feature Request - Phase 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: Stress Tests | ||
pre: "<b>4. </b>" | ||
--- | ||
|
||
Start DPS Instance to be tested | ||
|
||
```bash | ||
./gradlew clean build compTest shadowJar nativeImageJar nativeCompile -i | ||
cp build/native/nativeCompile/dns-proxy-server ./src/stress-test/docker/dps-stress-test-instance/files/ | ||
docker-compose -f src/stress-test/docker/dps-stress-test-instance/docker-compose.yml up --build | ||
``` | ||
|
||
Start Grafana Stack to Collect Performance Metrics | ||
|
||
```bash | ||
docker-compose -f src/stress-test/docker/grafana/docker-compose.yml up --build | ||
``` | ||
|
||
Run the Stress Test Suite | ||
|
||
```bash | ||
./gradlew build stressTest | ||
``` | ||
|
||
Access http://localhost:3000 to see the metrics | ||
|
||
[1]: {{%relref "1-getting-started/requirements/_index.en.md" %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=3.24.2-snapshot | ||
version=3.25.0-snapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/stress-test/docker/dps-stress-test-instance/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM debian:12 | ||
|
||
ARG PROCESS_EXPORTER_URL=https://github.com/ncabatoff/process-exporter/releases/download/v0.8.2/process-exporter-0.8.2.linux-amd64.tar.gz | ||
|
||
RUN mkdir /process-exporter && mkdir -p /var/log/supervisord &&\ | ||
apt-get update && apt-get install -y curl supervisor &&\ | ||
curl -sL ${PROCESS_EXPORTER_URL} > /tmp/process-exporter.tgz &&\ | ||
tar --strip 1 -zxvf /tmp/process-exporter.tgz -C /process-exporter | ||
|
||
# from website | ||
ARG APP_URL=https://github.com/mageddo/dns-proxy-server/releases/download/3.24.0-snapshot/dns-proxy-server-linux-amd64-3.24.0-snapshot.tgz | ||
RUN mkdir /app &&\ | ||
curl -sL ${APP_URL} > /tmp/app.tgz &&\ | ||
tar --strip 1 -zxvf /tmp/app.tgz -C /app | ||
|
||
# from local build | ||
#RUN mkdir /app | ||
#COPY files/dns-proxy-server /app/dns-proxy-server | ||
|
||
WORKDIR /process-exporter | ||
|
||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
COPY conf.yaml /process-exporter/conf.yaml | ||
|
||
ENTRYPOINT ["/usr/bin/supervisord"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
process_names: | ||
- name: "{{.Comm}}" | ||
cmdline: | ||
- '.+' |
9 changes: 9 additions & 0 deletions
9
src/stress-test/docker/dps-stress-test-instance/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
dps-stress-test-instance: | ||
build: | ||
dockerfile: Dockerfile | ||
environment: | ||
- MG_LOG_LEVEL=TRACE | ||
ports: | ||
- 9256:9256 | ||
- 5753:53/udp |
38 changes: 38 additions & 0 deletions
38
src/stress-test/docker/dps-stress-test-instance/supervisord.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[supervisord] | ||
file=/tmp/supervisor.sock ; path to your socket file | ||
[supervisord] | ||
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | ||
logfile_maxbytes=50MB ; maximum size of logfile before rotation | ||
logfile_backups=10 ; number of backed up logfiles | ||
loglevel=info ; info, debug, warn, trace | ||
pidfile=/var/run/supervisord.pid ; pidfile location | ||
nodaemon=true ; run supervisord as a daemon | ||
minfds=1024 ; number of startup file descriptors | ||
minprocs=200 ; number of process descriptors | ||
user=root ; default user | ||
childlogdir=/var/log/supervisord/ ; where child log files will live | ||
|
||
[rpcinterface:supervisor] | ||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | ||
|
||
;[supervisorctl] | ||
;serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket | ||
|
||
|
||
[program:app] | ||
user=root | ||
command=bash -c '/app/dns-proxy-server --default-dns=false' | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/fd/1 | ||
stderr_logfile_maxbytes=0 | ||
autorestart=false | ||
|
||
[program:processexporter] | ||
user=root | ||
command=bash -c '/process-exporter/process-exporter -config.path conf.yaml' | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/fd/1 | ||
stderr_logfile_maxbytes=0 | ||
autorestart=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../docs/content/4-developing/stress-tests.en.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
prometheus: | ||
image: prom/prometheus:v2.46.0 | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
|
||
grafana: | ||
image: grafana/grafana:10.0.3-ubuntu | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
- GF_SERVER_DOMAIN=grafana.docker | ||
- GF_AUTH_ANONYMOUS_ENABLED=true | ||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin | ||
- GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/var/lib/grafana/dashboards/process-exporter-metrics.json | ||
volumes: | ||
- ./grafana/provisioning:/etc/grafana/provisioning:ro | ||
- ./grafana/dashboards:/var/lib/grafana/dashboards |
Oops, something went wrong.