mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #649] Check API works Intermittently #469
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#469
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @texasbobs on GitHub (May 6, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/649
During our evaluation of this tool, we wanted to see how it would scale. We will have about 2200 checks that need to be created. I wrote a basic script to hit the check API 2200 times. It worked at first but then started returning 403 errors and an occasional success message.
The script just does this:
In the end, only 500 checks were created.
@cuu508 commented on GitHub (May 6, 2022):
On self-hosted instances, the default check limit for each account is 500 checks. You can increase it if you log into Django admin (
/admin/), go to "Profiles", look up the profile you are testing with, and edit its "Check limit" field.@texasbobs commented on GitHub (May 6, 2022):
That seems to have solved the problem. It is interesting that in the middle of the 403 errors, one would work every once in a while. Also, the 403 might not be the best message for reaching that limit. But in any case, I was able to add all of the checks. Thanks.
@cuu508 commented on GitHub (May 6, 2022):
That is unexpected. Can you confirm the 200 response were also for
POST /api/v1/checks/? Perhaps you had Healthchecks open in a browser tab, and the page was auto-refreshing?Any suggestions what HTTP response status code to use instead?
PS. The response codes are documented in Management API docs: https://healthchecks.io/docs/api/#create-check
@texasbobs commented on GitHub (May 6, 2022):
Thanks for the link.
In most places, the 403 indicates a problem with the token. It's fine though, just not what I was intuitively expecting.