lp:~hloeung/ubuntu-repository-cache/metadata-age-metric

Created by Haw Loeung and last modified
Get this branch:
bzr branch lp:~hloeung/ubuntu-repository-cache/metadata-age-metric
Only Haw Loeung can upload to this branch. If you are Haw Loeung please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Haw Loeung
Project:
Ubuntu Repository Cache Charm
Status:
Merged

Recent revisions

339. By Haw Loeung

Fixed based on review, in absence of file, don't export metric

338. By Haw Loeung

Fixed based on review

337. By Haw Loeung

Switch to getting file modification time on disk rather than over HTTP based on review/discussion

336. By Haw Loeung

blacken

335. By Haw Loeung

Add missing unit tests

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
This branch contains Public information 
Everyone can see this information.

Subscribers