FS#45556 - {archweb} Allow automated sending of mirror issue notification
Attached to Project:
Arch Linux
Opened by Florian Pritz (bluewind) - Saturday, 04 July 2015, 21:12 GMT
Last edited by Kristian (klausenbusk) - Monday, 05 June 2023, 17:42 GMT
Opened by Florian Pritz (bluewind) - Saturday, 04 July 2015, 21:12 GMT
Last edited by Kristian (klausenbusk) - Monday, 05 June 2023, 17:42 GMT
|
Details
I'd like to be able to automate detection and handling of
out of date or inaccessible mirrors, but the current APIs
don't provide all the necessary information.
I'd like the following additional features: - a link to each protocols status page (example: https://www.archlinux.org/mirrors/kernel.org/212/) e.g. in this json (https://www.archlinux.org/mirrors/kernel.org/json/). The link is in the HTML version of the page. - the contact emails for a mirror - a way to append info to the notes field of a mirror The last two items are private information so they should use some form of authentication. |
This task depends upon
Closed by Kristian (klausenbusk)
Monday, 05 June 2023, 17:42 GMT
Reason for closing: Upstream
Additional comments about closing: Please report upstream if this is still relevant: https://github.com/archlinux/aurweb.
Monday, 05 June 2023, 17:42 GMT
Reason for closing: Upstream
Additional comments about closing: Please report upstream if this is still relevant: https://github.com/archlinux/aurweb.
- notify about "out of sync" if the lastsync time is older than 72hours
- notify about "unreachable" if the lastsync file could not be fetched for 24hours
- notify if the lastupdate file is 72 hours older than the lastupdate file on our master mirror
A potential improvement is to be able to set the timeouts for each mirror on their own (some mirrors sync every minute so 1 hour delay might be more appropriate than 72).
If a tier 1 mirror is unreachable or out of sync, tier 2 mirrors that use this mirror should NOT receive emails about being out of sync. There is a field in the database that records the source mirror for tier 2 mirrors, but this field is often not correct due to mirrors changing their upstream without notifying us.
Templates for the email texts can be found here: https://git.server-speed.net/users/flo/bin/tree/generate-mirror-mail.pl