Giter Club home page Giter Club logo

dns-loop-container's Introduction

dns-loop

This is a set of scripts and tools use to generate a docker image to simply run a DNS query in a loop using curl and then plot a graph showing the resolution time. The github actions can be used to trigger a new build and push the updated image. The actions will get triggered any time a new release gets published.

The dns-loop script will run the curl-loop script that generates output of each DNS resolution time iteration and will pass that output to hist from the https://github.com/glamp/bashplotlib tool.

Using in Kuberntes

Sample usage in kubernetes

Deploy pod:

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
  name: dns-loop
spec:
  containers:
  - name: dns-loop
    image: sturrent/dns-loop
    command: ["/bin/sh"]
    args: ["-c", "while true; do sleep 1000; done"]
EOF

Run the script with the default values:

kubectl exec -it dns-loop -- dns-loop

Note: default values in dns-loop are

  • Iterations = 100
  • URL = google.com
  • Sleep time in between queries = 0.250 s

Execution example with default values:

sample_view

Running with custom values:

This is a sample run using 200 iterations, URL azure.microsoft.com and running the queries every 100 ms

kubectl exec -it dns-loop -- dns-loop 200 azure.microsoft.com 0.100

sample_view

dns-loop-container's People

Contributors

sturrent avatar

Watchers

 avatar  avatar

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.