lp:~hloeung/ubuntu-repository-cache/drop-max-spare-threads
- Get this branch:
- bzr branch lp:~hloeung/ubuntu-repository-cache/drop-max-spare-threads
Branch merges
- Canonical IS Reviewers: Pending requested
- Ubuntu Repository Cache Charmers, Canonical: Pending requested
-
Diff: 65 lines (+6/-6)3 files modifiedlib/ubuntu_repository_cache/apache.py (+1/-1)
lib/ubuntu_repository_cache/tests/test_apache.py (+4/-4)
tests/unit/test_apache.py (+1/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 333. By Haw Loeung
-
Drop MaxSpareThreads - LP:1918211
We can't have too many around to allow for a server process to cycle
out. Otherwise we're back at the issue with scoreboard is full, not at
MaxRequestWorkers. - 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> - 329. By Haw Loeung
-
Fix issue with units stuck in maintenance - LP:1918199
Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/units- stuck-in- maintenance/ +merge/ 399324
Reviewed-by: Barry Price <email address hidden> - 328. By Haw Loeung
-
Don't cycle out apache2 processes by default - LP:1918211
This reduces the frequent and brief outages.
Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/no- apache2- mpm-MaxConnecti onsPerChild/ +merge/ 399336
Reviewed-by: Barry Price <email address hidden> - 327. By Haw Loeung
-
Make health-check script/endpoint more resilient
u-r-c units are usually deployed in public clouds with the sync-host
set to the main Ubuntu archive servers. We can't control the network
connectivity/conditions so update health-check script to retry up to 3
times on failures.Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/health- check-retries- on-failure/ +merge/ 399257
Reviewed-by: Benjamin Allot <email address hidden>
Reviewed-by: Barry Price <email address hidden> - 326. By Haw Loeung
-
Don't set health-
check-disabled flag in apache. create_ metadata_ site() On non-leader units, metadata sync calls service.pause() which then
calls this. This causes a brief period where the unit is disabled and
not serving requests. It's useful for initial unit provisioning but
not so on a fully functional unit where metadata points to an existing
copy on disk.NOTE: The setting of health-
check-disabled flag was introduced in r309 (MP:398100). Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/dont- disable- unit-on- failover- or-pause/ +merge/ 399254
Reviewed-by: Paul Collins <email address hidden> - 324. By Haw Loeung
-
Log overrall check result and URLs for errors
Reviewed-on: https:/
/code.launchpad .net/~hloeung/ ubuntu- repository- cache/health- check-logging- improvements/ +merge/ 399130
Reviewed-by: Colin Misare <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