mageddo / dns-proxy-server

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet
http://mageddo.github.io/dns-proxy-server/
Apache License 2.0
784 stars 78 forks source link

Use Virtual Threads #436

Closed mageddo closed 2 months ago

mageddo commented 5 months ago

What is expected

What is Happening

What is the actual behavior and lacks without this feature and what's the fallback while this feature is not implemented yet

Changes (Optional)

Refs

Export a process stats to Prometheus

How to export docker metrics (the docker engine itself not specific container metrics)

Data

docker-compose -f src/stress-test/docker/docker-compose.yaml up  --build
rate(container_cpu_user_seconds_total[30s]) * 100
dig google.com @127.0.0.1 -p5753
https://stackoverflow.com/a/34930574/2979435

Depends on #435

mageddo commented 2 months ago

3.24.0 (No Virtual Threads)

 this.doNRequestsFor(executor, 1_000, Duration.ofSeconds(20));

image

Using Virtual Threads

 this.doNRequestsFor(executor, 1_000, Duration.ofSeconds(20));

image