Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rate limiter #19

Open
Beholder1984 opened this issue Oct 28, 2021 · 5 comments
Open

Rate limiter #19

Beholder1984 opened this issue Oct 28, 2021 · 5 comments

Comments

@Beholder1984
Copy link

I am trying to monitor 9 docker containers with docker-notify. After adding the last project docker-notify started spamming me with error messages. In the result from docker-hub I see messages containing the following:

statusCode: 429,
statusMessage: 'Too Many Requests',

Which suggests that I am making to many requests to Docker hub. Any suggestions on how I can monitor more then 8 projects?

@Schlabbi
Copy link
Owner

That's a bug. I should rework the DockerAPI implementation. Maybe we can also reduce the amount of requests that are currently made so we don't hit the rate limit as easily. So sorry, but until that is fixed, you will probably run into these errors.

@rgstephens
Copy link
Contributor

@Beholder1984 What is your checkInterval? I'm monitoring 9 images with a 20 minute interval and haven't run into this problem.

@Beholder1984
Copy link
Author

@rgstephens my checkInterval is currently set to 60. Do you by any change have a subscription to docker hub. It seems that paying customers won't hit the rate limiter so fast.

@rgstephens
Copy link
Contributor

No, I don't have a paid subscription and the code is not logging in with an id either.

@TonyRL
Copy link
Contributor

TonyRL commented Jan 8, 2022

TonyRL#33 adds support for optional Docker Hub auth.
You can now use your own personal plan account for double the limits (200 checks/6hrs vs 100 checks/6hrs).
FYI, You can also use githubactions' account as it does not any rate limit.

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

No branches or pull requests

4 participants