lp:~hloeung/ubuntu-repository-cache/metadata-age-metric
- Get this branch:
- bzr branch lp:~hloeung/ubuntu-repository-cache/metadata-age-metric
Branch merges
- Joel Sing (community): Approve (+1)
- Barry Price: Approve
- Canonical IS Reviewers: Pending requested
-
Diff: 105 lines (+37/-9)2 files modifiedfiles/health_check.py (+28/-9)
tests/unit/test_health_check.py (+9/-0)
Branch information
Recent revisions
- 337. By Haw Loeung
-
Switch to getting file modification time on disk rather than over HTTP based on review/discussion
- 334. By Haw Loeung
-
Report archive metadata age as a metric
This allows us to move from nagios alerting to prometheus /
alertmanager. - 333. By Haw Loeung
-
Updated cron_random_sleep, cleaner approach for randomness per view
Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/splay- cron-daily- 2/+merge/ 399571
Reviewed-by: Junien Fridrick <email address hidden> - 332. By Haw Loeung
-
Allow an additional process to reduce short outages on graceful restart - LP:1918211
Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/extra- server- process/ +merge/ 399536
Reviewed-by: Paul Collins <email address hidden> - 331. By Haw Loeung
-
Ensure daily apache2 graceful restart is splayed - LP:1918211
We ship out a random sleep script to cron.daily to ensure that
graceful restarts from logrotation is spread out across the various
units.Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/splay- cron-daily/ +merge/ 399553
Reviewed-by: Colin Misare <email address hidden> - 330. By Haw Loeung
-
Add 'Accept-Encoding' in nrpe and health checks
Upstream archives use mod_deflate which sets 'Vary: Accept-Encoding' on responses, so check_http should set that header.
This also reduces the logging spam from squid:
| 2021/03/10 00:15:00 kid1| varyEvaluateMatch: Oops. Not a Vary match on second attempt, 'http://
archive. ubuntu. com/ubuntu/ pool/' 'accept- encoding= "*"'
| 2021/03/10 00:15:00 kid1| clientProcessHit: Vary object loop!We also hope to reduce squid memory usage (mem_node) as discovered by
tcuthbert.Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/add- accept- encoding- headers/ +merge/ 399399
Reviewed-by: Thomas Cuthbert <email address hidden>
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:ubuntu-repository-cache