distribution/registry/storage
Manish Tomar ce101280fe
fix redis caching issue
* fix redis caching issue

earlier redis cache was updated when there was any error including any
temporary connectivity issue. This would trigger set calls which would
further increase load and possibly connectivity errors from redis
leaving the system with continuous errors and high latency. Now the
cache is updated only when it is genuine cache miss. Other errors do not
trigger a cache update.

* add back tracker Hit() and Miss() calls

*squashed commits*
(cherry picked from commit 6f3e1c10260ef59ba4e9c42e939329fad9fdd8c3)
(cherry picked from commit 6738ff3320cf82cc2df919a95a1bde2f7789a501)

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2020-03-04 17:51:37 -08:00
..
cache fix redis caching issue 2020-03-04 17:51:37 -08:00
driver Merge pull request #2272 from naveedjamil/fips 2020-02-22 17:40:41 -08:00
blob_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
blobcachemetrics.go registry: remove dependency on logrus for client 2017-08-15 10:28:38 -07:00
blobserver.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blobstore.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
blobwriter.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
blobwriter_nonresumable.go If resumable digest support is disabled, detct this when closing the blobwriter 2016-06-13 17:35:06 -07:00
blobwriter_resumable.go track digest offset in blobwriter 2018-09-12 14:53:27 -07:00
catalog.go lint fix 2018-08-06 09:46:42 -07:00
catalog_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader.go Enable static checks 2018-08-06 14:49:11 -07:00
filereader_test.go Enable static checks 2018-08-06 14:49:11 -07:00
garbagecollect.go Remove err nil check 2019-02-04 16:42:44 -08:00
garbagecollect_test.go Merge pull request #2474 from vikstrous/disable-v1-master 2018-08-24 10:58:39 -07:00
io.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
linkedblobstore.go fix gofmt and goimports 2018-09-11 16:14:10 -07:00
linkedblobstore_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
manifestlisthandler.go Fix registry stripping newlines from manifests 2018-09-05 13:40:42 -07:00
manifeststore.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
manifeststore_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
ocimanifesthandler_test.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
paths.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
paths_test.go Add unit tests for BlobEnumerator 2019-12-06 09:38:13 +01:00
purgeuploads.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
purgeuploads_test.go Fix gometalint errors 2019-02-04 16:01:04 -08:00
registry.go fixes to make layersPathSpec work 2019-12-05 20:48:33 +01:00
schema2manifesthandler.go Migrate to golangci-lint 2020-02-14 08:11:16 +11:00
schema2manifesthandler_test.go Update schema2 builder to take media type 2016-12-14 16:17:20 -08:00
signedmanifesthandler.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
tagstore.go Merge pull request #2748 from manishtomar/tag-digests 2019-10-08 12:14:56 -07:00
tagstore_test.go better name and updated tests 2018-11-01 10:31:08 -07:00
v1unsupportedhandler.go disable schema1 by default, add a config flag to enable it 2017-12-19 10:23:25 -08:00
vacuum.go add possibility to clean untagged manifests 2018-01-05 12:20:01 +02:00