Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
2ad57f08
Commit
2ad57f08
authored
Aug 22, 2016
by
cricketliu
Committed by
GitHub
Aug 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
More grammatical fixes.
parent
63840bc2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
middleware/cache/README.md
middleware/cache/README.md
+7
-7
No files found.
middleware/cache/README.md
View file @
2ad57f08
...
@@ -8,24 +8,24 @@
...
@@ -8,24 +8,24 @@
cache [ttl] [zones...]
cache [ttl] [zones...]
~~~
~~~
*
`ttl`
max TTL in seconds
, if not specified
the TTL of the reply (SOA minimum or minimum TTL in the
*
`ttl`
max TTL in seconds
. If not specified,
the TTL of the reply (SOA minimum or minimum TTL in the
answer section) will be used.
answer section) will be used.
*
`zones`
zones it should
should cache for. If empty
the zones from the configuration block are used.
*
`zones`
zones it should
cache for. If empty,
the zones from the configuration block are used.
Each element in the cache is cached according to its TTL
, for the negative cache
the SOA's MinTTL
Each element in the cache is cached according to its TTL
. For the negative cache,
the SOA's MinTTL
value is used.
value is used.
A cache mostly makes sense with a middleware that is potentially slow
, i.e. a proxy that retrieves
A cache mostly makes sense with a middleware that is potentially slow
(e.g., a proxy that retrieves an
answer, or to minimize backend queries for middleware like etcd. Using a cache with the file
answer
)
, or to minimize backend queries for middleware like etcd. Using a cache with the file
middleware essentially doubles the memory load with no conceivable increase of query speed.
middleware essentially doubles the memory load with no conceivable increase of query speed.
The minimum TTL allowed on resource records is 5 seconds.
The minimum TTL allowed on resource records is 5 seconds.
If monitoring is enabled (
`prometheus`
directive) then the following extra metrics are added:
If monitoring is enabled (
via the
`prometheus`
directive) then the following extra metrics are added:
*
coredns_cache_hit_count_total, and
*
coredns_cache_hit_count_total, and
*
coredns_cache_miss_count_total
*
coredns_cache_miss_count_total
They both work on a per
zone basis and just count the hit and miss counts for each query.
They both work on a per
-
zone basis and just count the hit and miss counts for each query.
## Examples
## Examples
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment