Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Reduce spam log generated by registry cache warmer #1538

Merged
merged 4 commits into from
Nov 21, 2018
Merged

Conversation

stefanprodan
Copy link
Member

  • abort image tags fetching on HTTP 429 errors
  • log the rate limit error once per image repository

Fix #1529

- log the rate limit error once per image repository
registry/cache/warming.go Outdated Show resolved Hide resolved
registry/cache/warming.go Outdated Show resolved Hide resolved
Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Does it work? ;-)

@stefanprodan stefanprodan changed the title Reduce spam log generated by registry cache warmer WIP: Reduce spam log generated by registry cache warmer Nov 21, 2018
@stefanprodan
Copy link
Member Author

The automated updates are not working, I'm investigating it...

@stefanprodan
Copy link
Member Author

The cancelable context will block forever after the cancel event, so I've used the passed context in the select and the cancelable one for client manifest fetching. The automated updates are working fine now.

@stefanprodan stefanprodan changed the title WIP: Reduce spam log generated by registry cache warmer Reduce spam log generated by registry cache warmer Nov 21, 2018
@stefanprodan
Copy link
Member Author

The blocking was caused by the wait group, that's being fixed in the latest commit. Ready to merge 🔨

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants