-
Notifications
You must be signed in to change notification settings - Fork 248
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
GitHub storage fails when content is >1MB #88
Comments
Seeing if the Google folks would be interested in streamlining this on their side. It's presently a significant amount of code to use the Git API! google/go-github#1052 |
Any updates on this? Is this still relevant? |
I still hit this occasionally, and have to remove the index to fix. |
Do you know if this will happen for 3 services with a simple http check for every 10 minutes? Or can you say in which cases this could occur (like x watched services / URLs with an interval of x time)? Not that I hit this every time. |
@DanielRuf This will eventually occur for all configurations using the GitHub storage backend, but doing fewer checks with fewer services will increase the lead time. I have 11 services checked every 30 minutes and it occurs every few months for me. One automated way to fix this in the GitHub storage backend is to take the bytesize of the index, and trim it down to < 1MB on every attempt to save. |
Sounds like we need some data rentention feature here (remove old entries / files). |
This appears to only occur when the index itself gets too large, so we could certainly prune old entries in the index such that the serialized JSON is always <1MB. The status page that I have only ever shows 24 hours, so we could also limit the index to the last 24 hours. |
@parkr what are your expiry settings for the GH storage? The index should be cleaned up on maintain calls, depending on what you have in |
That being said - it's a work around. Regardless of what you set in |
The GitHub Contents API has a limit which causes file fetch, creation, and updates to fail if the content is > 1 MB in size. I have been hitting this recently:
The Git Data API requires creating the blob, tree, and commit objects manually, but provides a much more robust means of dealing with larger data. We should migrate the GitHub notifier to use this method instead.
Opening this in case someone else has time to do this before I do.
The text was updated successfully, but these errors were encountered: