1. 14 Aug, 2018 1 commit
  2. 23 Apr, 2018 1 commit
    • Vladimír Čunát's avatar
      cache: restored kr_cache_insert_rr API · d22cb348
      Vladimír Čunát authored
      This commit abstracts out stash_rrset from stash_rrarray_entry,
      and fixes incrementing metrics on actual record insertion.
      It then resurfaces kr_cache_insert_rr that was deleted in 2.0
      using the extracted function.
      
      vcunat separated stash_rrset_precond() later during rebase.
      d22cb348
  3. 13 Feb, 2018 1 commit
  4. 30 Jan, 2018 1 commit
  5. 15 Jan, 2018 1 commit
  6. 12 Dec, 2017 1 commit
    • Vladimír Čunát's avatar
      fix missing include · 90cdd9ee
      Vladimír Čunát authored
      struct timeval wasn't available, probably depending on libknot version,
      breaking e.g. the Docker build.
      90cdd9ee
  7. 11 Dec, 2017 1 commit
  8. 08 Dec, 2017 1 commit
  9. 22 Nov, 2017 1 commit
    • Vladimír Čunát's avatar
      review TTL limit handling · e2efd001
      Vladimír Čunát authored
      - aggressive cache forgot to apply the maximum TTL bound
      - packet cache had a separate ad-hoc limit of 15 minutes;
        this got removed
      - cleanups, etc.
      e2efd001
  10. 16 Nov, 2017 1 commit
    • Vladimír Čunát's avatar
      rename module 'cache_lmdb' -> 'cache' · dfe7468d
      Vladimír Čunát authored
      The name was weird.  There's no other implementation ATM and the module
      will always be only really suitable for *local* caches, but otherwise
      it's not neccessarily bound to LMDB.
      dfe7468d
  11. 10 Nov, 2017 3 commits
  12. 26 Oct, 2017 1 commit
  13. 20 Oct, 2017 1 commit
  14. 17 Oct, 2017 1 commit
    • Vladimír Čunát's avatar
      . · 595f4a14
      Vladimír Čunát authored
      Positive caching seems usable now. (No xNAME, wildcards, etc.)
      Problem around zone cuts:
       - clear cache
       - kdig fubar
       - kdig DNSKEY cz
      595f4a14
  15. 13 Oct, 2017 1 commit
  16. 12 Oct, 2017 1 commit
  17. 27 Sep, 2017 1 commit
  18. 01 Sep, 2017 1 commit
    • Vladimír Čunát's avatar
      cache: rework reusing transactions (LMDB) · e2621d92
      Vladimír Čunát authored
      Previously a read transaction could be held open by each fork
      indefinitely.  That was done for better speed, but it had a downside
      of keeping old pages alive and potentially reading only old data,
      until some writes were attempted by that fork.
      
      Now kr_cache_ provides explicit API for suitable points where to break
      transactions, reusing the _sync command.  On LMDB side the read-only
      transaction is only reset and later renewed, supposedly giving better
      performance than aborting (see LMDB docs on reset+renew).
      
      Performance: preliminary testing with two forks, resperf on comcast
      query-set shows no noticeable difference in peak QPS.
      e2621d92
  19. 31 Mar, 2017 1 commit
    • Vladimír Čunát's avatar
      rrcache: avoid knot_pkt_put · 58b709d6
      Vladimír Čunát authored
      Constructing the wire format in rrcache was useless and it took 2-4 %
      of time in the resperf profile.  Let's also pass the rank (used soon).
      58b709d6
  20. 30 Mar, 2017 1 commit
  21. 29 Mar, 2017 1 commit
  22. 20 Mar, 2017 1 commit
  23. 25 Jan, 2017 1 commit
  24. 16 Jan, 2017 1 commit
  25. 13 Dec, 2016 1 commit
  26. 06 Dec, 2016 1 commit
  27. 02 Nov, 2016 1 commit
  28. 24 Oct, 2016 1 commit
  29. 16 Jul, 2016 1 commit
  30. 01 Jul, 2016 1 commit
  31. 20 May, 2016 1 commit
    • Marek Vavrusa's avatar
      lib: cache api v2, removed dep on libknot db.h · e68c3a0a
      Marek Vavrusa authored
      this change introduces new API for cache backends,
      that is a subset of knot_db_api_t from libknot
      with several cache-specific operations
      
      major changes are:
      * merged 'cachectl' module into 'cache' as it is
        99% default-on and it simplifies things
      * not transaction oriented, transactions may be
        reused and cached for higher performance
      * scatter/gather API, this is important for
        latency and performance of non-local backends
        like Redis
      * faster and reliable cache clearing
      * cache-specific operations (prefix scan, ...) in
        the API not hacked in
      * simpler code for both backends and caller
      e68c3a0a
  32. 14 Apr, 2016 1 commit
  33. 17 Dec, 2015 1 commit
  34. 10 Dec, 2015 1 commit
  35. 27 Oct, 2015 1 commit
  36. 23 Oct, 2015 1 commit
    • Marek Vavruša's avatar
      lib/cache: more granular control for rank check on insertion · a2b9d06d
      Marek Vavruša authored
      for pktcache same or better rank is required (because it’s a direct answer)
      for rrcache better rank is required (unless doing write-through)
      
      for both cases, no cache rank check is needed when inserting secure data
      
      security note: this mitigates possible non-auth NS hijacking
      a2b9d06d
  37. 12 Oct, 2015 1 commit
  38. 06 Oct, 2015 1 commit