mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #376] Smarter Cache for loading with Docker and LocalDB Solvers #127
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mageddo on GitHub (Mar 18, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/376
Introduction
After #370 DPS has a cache that increases its performance, as a drawback hostnames which aren't found are being cached for an hour, it means that a hostname not solved but later available because of a container started or created entry on localdb won't solve because it's cached for an hour.
Goals
The objective is to keep the 1 hour cache but just for records that aren't found at the remote and don't exists on localdb and docker containers.
Solution
There will be 2 caches
Remote Cache
Will cache only remote answers with longer periods as described at #370
Global Cache
It caches all solvers but for a period of 20 seconds in case of remote solvers, 30 seconds for docker containers and the specified ttl on the config file for localdb entries.
When the cache expires will try a hot load except by the remote solver which will be cached by the secondary RemoteCache