GithubHelp home page GithubHelp logo

Clearing the database? about snitchdns HOT 7 CLOSED

ctxis avatar ctxis commented on May 30, 2024
Clearing the database?

from snitchdns.

Comments (7)

rwjack avatar rwjack commented on May 30, 2024 1

I love the way you treat github like jira. You're an absolute legend.

Have you thought about having a potential method of accepting donations? I'm not exactly Bill Gates but a coffee would be the least I could do!

from snitchdns.

sadreck avatar sadreck commented on May 30, 2024

I've implemented a "clear database after X number of days" option in the DNS settings - give it a try and let me know how it goes. It should run in the cron and most likely the first run will take a while as it'd delete the most records.

As for caching, true - I forgot to remove that text and have replaced it with another warning (single threaded). The caching mechanism currently implemented isn't very sophisticated, it's a simple array in-memory which is checked before the daemon checks the database. This means that if the max dns cached items is zero (disabled), the memory will keep growing and growing, so my recommendation would be to set it to something sensible (depending on your traffic and memory). Every time it hits that limit, the whole cache is emptied.

Let me know if the db cleanup doesn't work, otherwise I'll close this ticket.

from snitchdns.

sadreck avatar sadreck commented on May 30, 2024

Thank you for your kind words but no donations are necessary! I'm just glad when people find SnitchDNS useful.

And as always, if you have any ideas feel free to create an issue!

from snitchdns.

terryltoms avatar terryltoms commented on May 30, 2024

Hi, for me the DB cleanup doesn't work. Thanks for your work.

from snitchdns.

sadreck avatar sadreck commented on May 30, 2024

Hi,

A couple of questions:

  1. Are you running SnitchDNS via Docker or a manual installation?
  2. Can you check if the cron is installed and running?

Thanks,
Pavel

from snitchdns.

terryltoms avatar terryltoms commented on May 30, 2024

Hi,

  1. via docker
  2. by running cron -l, I can see a job for flask crontab run.

Thanks

from snitchdns.

sadreck avatar sadreck commented on May 30, 2024

I think it's because the cron service wasn't starting - I've pushed c9314fc - could you try again with the latest and greatest version please?

from snitchdns.

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.