{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/944","labels_url":"https://api.github.com/repos/docker/distribution/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/944/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/944/events","html_url":"https://github.com/docker/distribution/issues/944","id":103770217,"number":944,"title":"Registry v2 as pull-through cache eating up CPU","user":{"login":"schmunk42","id":649031,"avatar_url":"https://avatars.githubusercontent.com/u/649031?v=3","gravatar_id":"","url":"https://api.github.com/users/schmunk42","html_url":"https://github.com/schmunk42","followers_url":"https://api.github.com/users/schmunk42/followers","following_url":"https://api.github.com/users/schmunk42/following{/other_user}","gists_url":"https://api.github.com/users/schmunk42/gists{/gist_id}","starred_url":"https://api.github.com/users/schmunk42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmunk42/subscriptions","organizations_url":"https://api.github.com/users/schmunk42/orgs","repos_url":"https://api.github.com/users/schmunk42/repos","events_url":"https://api.github.com/users/schmunk42/events{/privacy}","received_events_url":"https://api.github.com/users/schmunk42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"RichardScothern","id":922018,"avatar_url":"https://avatars.githubusercontent.com/u/922018?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardScothern","html_url":"https://github.com/RichardScothern","followers_url":"https://api.github.com/users/RichardScothern/followers","following_url":"https://api.github.com/users/RichardScothern/following{/other_user}","gists_url":"https://api.github.com/users/RichardScothern/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardScothern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardScothern/subscriptions","organizations_url":"https://api.github.com/users/RichardScothern/orgs","repos_url":"https://api.github.com/users/RichardScothern/repos","events_url":"https://api.github.com/users/RichardScothern/events{/privacy}","received_events_url":"https://api.github.com/users/RichardScothern/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/9","html_url":"https://github.com/docker/distribution/milestones/Registry/2.2","labels_url":"https://api.github.com/repos/docker/distribution/milestones/9/labels","id":1026605,"number":9,"title":"Registry/2.2","description":"","creator":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":62,"state":"open","created_at":"2015-03-18T04:28:58Z","updated_at":"2015-10-15T18:50:31Z","due_on":"2015-10-19T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-28T18:16:15Z","updated_at":"2015-10-15T23:36:56Z","closed_at":null,"body":"I configured a v2 registry mirror or pull-through cache like so:\r\n\r\n```\r\nregistry2:\r\n  image: registry:2\r\n  ports:\r\n    - 5000:5000\r\n  links:\r\n    - redis:REDIS\r\n  environment:\r\n    - REGISTRY_PROXY_REMOTEURL=\"https://registry-1.docker.io\"\r\n    - REGISTRY_REDIS_ADDR=\"REDIS:6379\"\r\nredis:\r\n  image: redis\r\n  expose:\r\n    - 6379\r\n  ports:\r\n    - 6379:6379\r\n```\r\n\r\nI tried it also with host-volumes and without redis and `inmemory` settings, various versions (2, 2.1, latest); but all results are the same.\r\n\r\nA few sequential pulls might work, but at least on two concurrent pulls, which have to be fetched by the registry, the registry container runs into some kind of idle state, eating up 70-100% of the CPU - eventually dropping out a few kB/sec of data.\r\n\r\nHere's a longer gist of the log output https://gist.github.com/schmunk42/aeede32b28d3e94e4d30.\r\n\r\n*Using: docker 1.8.1 with docker-machine VMs (Toolbox)*"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/148552108","html_url":"https://github.com/docker/distribution/issues/944#issuecomment-148552108","issue_url":"https://api.github.com/repos/docker/distribution/issues/944","id":148552108,"user":{"login":"roboll","id":1259631,"avatar_url":"https://avatars.githubusercontent.com/u/1259631?v=3","gravatar_id":"","url":"https://api.github.com/users/roboll","html_url":"https://github.com/roboll","followers_url":"https://api.github.com/users/roboll/followers","following_url":"https://api.github.com/users/roboll/following{/other_user}","gists_url":"https://api.github.com/users/roboll/gists{/gist_id}","starred_url":"https://api.github.com/users/roboll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roboll/subscriptions","organizations_url":"https://api.github.com/users/roboll/orgs","repos_url":"https://api.github.com/users/roboll/repos","events_url":"https://api.github.com/users/roboll/events{/privacy}","received_events_url":"https://api.github.com/users/roboll/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T23:36:56Z","updated_at":"2015-10-15T23:36:56Z","body":"As far as I can tell this makes registry completely useless as a cache - is there any progress on getting a fix released?"}}