From 44d26f4df58fea7b1b0db4ab5bd261bbb19dd2c4 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Wed, 1 Mar 2017 15:56:15 +0000 Subject: [PATCH] Disable registry caching so we can avoid Redis. Patrick and Adam and I had a meeting this morning to discuss how to deploy Redis to be used as a shared cache for the registry nodes. Patrick suggested that we could instead disable the regstry caching layer and rely on Varnish to do all our caching, which makes the system simpler. This commit disables the in-memory cache of the registries so they won't get out of sync on write operations. Signed-off-by: Randy Barlow --- playbooks/groups/docker-registry.yml | 3 --- roles/docker-distribution/templates/config.yml.j2 | 2 -- 2 files changed, 5 deletions(-) diff --git a/playbooks/groups/docker-registry.yml b/playbooks/groups/docker-registry.yml index 4b83745e88..4171f08f14 100644 --- a/playbooks/groups/docker-registry.yml +++ b/playbooks/groups/docker-registry.yml @@ -87,9 +87,6 @@ } }, storage: { - cache: { - layerinfo: "inmemory" - }, filesystem: { rootdirectory: "/srv/" } diff --git a/roles/docker-distribution/templates/config.yml.j2 b/roles/docker-distribution/templates/config.yml.j2 index 09c8e075c6..1a8cd58c18 100644 --- a/roles/docker-distribution/templates/config.yml.j2 +++ b/roles/docker-distribution/templates/config.yml.j2 @@ -3,8 +3,6 @@ log: fields: service: {{ log.fields.service }} storage: - cache: - layerinfo: {{ storage.cache.layerinfo }} filesystem: rootdirectory: {{ storage.filesystem.rootdirectory }} http: