Giter VIP home page Giter VIP logo

Comments (5)

0xERR0R avatar 0xERR0R commented on August 22, 2024

For non docker setup it is cool, but what is if the config file is malformed after a change? Current implementation fails on start if config is wrong -> this is ok. But what is if working configuration has been changed and is not ok after config is saved and was automatically reloaded? Should last working configuration be used?

from blocky.

runningman84 avatar runningman84 commented on August 22, 2024

That is a valid point, in this case the feature should be optional.

For me this feature is not needed anymore because my helm chart will try a new deployment once the file changed if the new pod does not come up the old version would remain running... What would help would be some prometheus / health endpoint which could be used in order to know if everything is working fine.

from blocky.

crlesor avatar crlesor commented on August 22, 2024

My goal is to allow blocky to be disabled and re-enabled for specific devices and/or changing blocklists for specific devices without stopping the DNS blocking/forwarding of blocky.

Is it possible to push a new config file into blocky without any stopping of the DNS blocking/forwarding? Or, is there a better way to achieve the above goal?

from blocky.

0xERR0R avatar 0xERR0R commented on August 22, 2024

Actual, the only way is to restart blocky. I use blocky as docker container, if I change config I just run "docker-compose down && docker-compose up -d", this takes only a few seconds. If you need 99.99% uptime of DNS resolver, I would recommend you to run 2 instances of blocky on different servers and use both as DNS1 and DNS2 in client config. In this case you can do maintenance on one server with blocky (change config, install updates etc) and your clients will automatically use the second instance.

from blocky.

0xERR0R avatar 0xERR0R commented on August 22, 2024

Reloading of the config file on change is not a trivial operation: since almost everything can change, all components should be reinitialized, lists must be reloaded etc. In case of validation error, the old config (?) must be used, if other errors occur (e.g. port is in use), the application would not start.
To reduce such complexity, I recommend just to restart blocky. This would typically be very fast.

I'll close this issue, please reopen, if you're disagreed or have another suggestions

from blocky.

Related Issues (20)

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.