Giter Club home page Giter Club logo

mdns's Introduction

mdns

Build Status

Welcome to designate-mdns, rewritten in Go.

$ mdns --help
  -allowUnknownFlags
        Don't terminate the app if ini file contains unknown flags.
  -bind_address string
        IP to listen on (default "127.0.0.1")
  -bind_port string
        port to listen on (default "5358")
  -config string
        Path to ini config for using in go flags. May be relative to the current executable path.
  -configUpdateInterval duration
        Update interval for re-reading config file set via -config flag. Zero disables config file re-reading.
  -db string
        db connection string (default "root:password@tcp(127.0.0.1:3306)/designate")
  -debug
        enables debug mode
  -dumpflags
        Dumps values for all flags defined in the app into stdout in ini-compatible syntax and terminates the app.
  -version
        prints version information

There is a key assumption that this code makes that makes it different from the Python code. This does not listen on RabbitMQ for RPC calls from Designate. This is simply a translation between DNS Protocol and the Designate database.

This is an intentional decision. Because while it would certainly be possible to figure out how to answer to oslo_messaging, it's undesirable to chase RPC endpoints/versions. The worker model spec details a world without the need for a MiniDNS that sends NOTIFYs and queries nameservers. This is that.

Setup

It's pretty easy to get up and running, set up your Go working tree and clone this into src/github.com/rackerlabs/mdns.

Dependencies are managed with Glide so you'll need to install it brew install glide. Then glide install.

It accepts a config file with the -config flag. -help will show you what you need to configure + the defaults.

Is it Fast?

Yes. Listening on localhost, with the same Designate database, here are some basic benchmarks against the current designate-mdns. These were created using the bench tool located in /cmd.

SOA Queries 2K Record AXFR
designate-mdns 40 qps, ~1.2s 2.5 qps, ~2.3s
mdns 2000 qps, ~.016s 20 qps, ~.4s

mdns's People

Contributors

timsimmons avatar

Watchers

Eric Larson 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.