mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #610] [Self-hosted] How to configure healthchecks.io in a multi-instances mode #445
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#445
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 @tizard34 on GitHub (Feb 22, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/610
We have deployed Healthchecks.io in a kubernetes platform. The application is running in 2 instances (load-balanced).
When a check is down (The ping /fail is sent), we are receiving 1 notification.
When a check is down because it's to late, we sometimes feel like we get 2 notifications.
Is there a specific configuration that would allow Healthchecks.io to work in multi-instance mode ?
@cuu508 commented on GitHub (Feb 23, 2022):
Do both instances use the same database?
@tizard34 commented on GitHub (Feb 23, 2022):
@cuu508 yes of course
Are you insinuating that the sending of duplicate notifications is not related to the number of instances?
@cuu508 commented on GitHub (Feb 23, 2022):
Running multiple instances should not cause duplicate notifications, unless there's a bug.
Do you see the duplicate outgoing notifications in web UI, check's details page, Log section?
The sendalerts management command writes a log of sent notifications to stdout – can you see duplicate outgoing notifications in sendalerts logs?
@tizard34 commented on GitHub (Feb 23, 2022):
Ok, I will take care of that.
For the moment, I have simply noticed the duplicate notifications in MS Teams, not in the web UI.
@cuu508 commented on GitHub (Feb 23, 2022):
Healthchecks posts the notification by making a HTTP request to MS Teams incoming webhook address.
If a HTTP request fails, the request is retried 1 or 2 more times. The following conditions count as failures:
So in theory the following scenario is possible:
I don't know if that's what's happening here, but it's a possibility.