Git Product home page Git Product logo

docker-dnsperf's Introduction

Dockerized DNS Performance Testing Tool

Docker Stars Docker Pulls Docker Automated

Integrated Items

  • DNSPerf 2.2.1

Usage

To run dnsperf with default settings, use the command below:

$ docker run -it guessi/dnsperf:alpine

Or run dnsperf with customized settings:

$ docker run                              \
    -e MAX_TEST_SECONDS=60                \
    -e DNS_SERVER_ADDR=8.8.8.8            \
    -e MAX_QPS=1000                       \
    -it guessi/dnsperf:alpine

Or run dnsperf with customized testing data:

$ docker run                              \
    -v /path/to/files:/opt/records.txt:ro \
    -e MAX_TEST_SECONDS=60                \
    -e DNS_SERVER_ADDR=8.8.8.8            \
    -e MAX_QPS=1000                       \
    -it guessi/dnsperf:alpine

Benchmark inside Kubernetes system

apply pre-configured testing deployment/pods

$ kubectl apply -f ./bench/k8s-dnsperf-bench.yaml
configmap "dns-records-config" unchanged
deployment.apps "dnsperf-deployment" configured

make sure the deployment is running as expected

$ kubectl get deploy dnsperf-deployment
NAME                 DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
dnsperf-deployment   5         5         5             5          2m

find out the pod name

$ kubectl get po -l app=dnsperf
NAME                                 READY     STATUS      RESTARTS   AGE
dnsperf-deployment-f9d5d86dd-7jg9c   1/1       Running     0          1m
dnsperf-deployment-f9d5d86dd-chbmb   1/1       Running     0          1m
dnsperf-deployment-f9d5d86dd-cs6sf   1/1       Running     0          1m
dnsperf-deployment-f9d5d86dd-ctwtj   1/1       Running     0          1m
dnsperf-deployment-f9d5d86dd-dnvt4   1/1       Running     0          1m

pick a pod for log output monitoring

$ kubectl logs -f dnsperf-deployment-f9d5d86dd-7jg9c

wait for result output

DNS Performance Testing Tool
Version 2.2.1

[Status] Command line: dnsperf -l 30 -s x.x.x.x -Q 100000 -d /opt/records.txt
[Status] .............
[Status] .............
[Status] .............
[Status] Testing complete (time limit)

Statistics:

  Queries sent:         741442
  Queries completed:    741404 (99.99%)
  Queries lost:         38 (0.01%)

  Response codes:       NOERROR 741404 (100.00%)
  Average packet size:  request 39, response 130
  Run time (s):         30.002017
  Queries per second:   24711.805210

  Average Latency (s):  0.003736 (min 0.000159, max 0.012242)
  Latency StdDev (s):   0.000644

FAQ

Why is the pods shown as "CrashLoopBackOff"?

Pod will end its life once the `MAX_TEST_SECONDS` passed

Why is the pods restart interval so long?

Please refer to the FAQ of [Pod Lifecycle](https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy)

Reference

docker-dnsperf's People

Contributors

guessi avatar

Watchers

 avatar

Forkers

infraqwa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.