-
Notifications
You must be signed in to change notification settings - Fork 150
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
stats endpoint is timing out #167
Comments
Probot has the same issue: probot/probot#380 |
I've just merged #133 to add in-memory caching, this does not fix the root issue, and is not a long term solution to have accurate reporting on https://probot.github.io/apps/all-contributors/ (During the period we expect the sync to happen, also added a cron to keep the lambda warm: #169) |
@gr2m any idea how we could make the endpoint code more efficient? i.e. are there endpoints from GitHub we should be using instead https://github.com/all-contributors/all-contributors-bot/blob/master/src/serverless-stats.js |
As mentioned in Slack
I would turn off stats using the environment variable, I don’t like the endpoint to be in probot at all the way it is. GitHub should provide better APIs to get these statistics, and they are aware of the problem. |
Shipped in #175 |
Describe the bug
The stats endpoint is timing out:
https://gkioebvccg.execute-api.us-east-1.amazonaws.com/prod/probot/stats
Causing https://probot.github.io/apps/all-contributors/ to show incorrect installations.
https://raw.githubusercontent.com/probot/probot.github.io/master/_apps/all-contributors.md
From the screenshot below:
We can see that the duration of the endpoint has been slowly increasing with the number of installs. Once we crossed the 30 second mark (in the last week of February) the lambda is taking longer to process than the 30second hard timeout from API Gateway, and the gateway times out.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Endpoint returns quickly and promptly to allow stat reporting.
Screenshots
The text was updated successfully, but these errors were encountered: