Giter VIP home page Giter VIP logo

rdns-mongo's Introduction

rdns-mongo

License Golang MongoDB

Golang implemented high currency rdns server with zone data save in mongodb

Save zone data into mongodb

According to elgs/dns-zonefile, now we can parse and generate zone file in JSON format. Therefore, we can easily save it into mongodb.

Compile and setup

To compile this application, run the following command:

$ cd <path-to-workfolder>
$ go build

After building application, you can run the application

$ ./rdns-mongo

Performance Testing

We run a stress testing with dnsperf on a 1 CPU Core, 2 GB RAM virtual machine, and the throughput is about 13,900 qps.

DNS Performance Testing Tool
Version 2.9.0

[Status] Command line: dnsperf -s 127.0.0.1 -p 5566 -d rdns_query -l 30 -c 20 -Q 50000
[Status] Sending queries (to 127.0.0.1:5566)
[Status] Started at: Thu Sep 29 22:31:40 2022
[Status] Stopping after 30.000000 seconds
[Status] Testing complete (time limit)

Statistics:

  Queries sent:         417484
  Queries completed:    417484 (100.00%)
  Queries lost:         0 (0.00%)

  Response codes:       NOERROR 417484 (100.00%)
  Average packet size:  request 44, response 107
  Run time (s):         30.012939
  Queries per second:   13910.133893

  Average Latency (s):  0.007103 (min 0.000053, max 0.033680)
  Latency StdDev (s):   0.001920

rdns-mongo's People

Contributors

yishiashia avatar

Watchers

James Cloos 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.