Comments (5)
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.
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.
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.
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.
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)
- Error in log: can't resolve request via upstream server; context deadline exceeded HOT 7
- Feature: Realtime Query Logging without Database HOT 27
- Black/White -> Allow/Deny HOT 4
- QNAME Minimization Support HOT 3
- Error : field denylists not found in type config.Blocking HOT 4
- Log file location on mac/brew HOT 2
- New User : Unable to block youtube.com and facebook.com domains using blocky. HOT 4
- Show the rule which is the cause of blocked request HOT 1
- Release image without capabilities set HOT 3
- Conditional groups
- Feature request: config validation command line option HOT 1
- individual lists saves memory? HOT 3
- question: *multiple* blocky *same* promethus *multiple* grafana dashboards HOT 5
- Feature Request : Allow to set database table name in config file HOT 3
- Simple disabling via CLI doesn't work without the groups parameter
- 👍 An excellent project, it would be even better with the addition of multi-port services. HOT 3
- can not see the buttons on the grafana original dashboard HOT 5
- sslbump option for TLS 1.3 encrypted SNI scenarios HOT 2
- Feature Request: DNS cloaking rules
- Improve API to allow for external-dns (DDNS) integration HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blocky.