~hloeung/ubuntu-repository-cache/no-apache2-mpm-MaxConnectionsPerChild

  • Committer: mergebot at canonical
  • Author(s): "Haw Loeung"
  • Date: 2021-02-17 21:18:07 UTC
  • mfrom: (308.1.8 ubuntu-repository-cache-charm)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20210217211807-q3mg90b4wvf3j1k4
Handle when newly provisioned unit

Newly provisioned units set the charm's failover feature. This sets up proxying of all requests to the last u-r-c unit. This means that the health-check will succeed as it's checking on the previous unit.

We want to fix this by not proxying the health-check endpoint URL (/_health-check/health-check.py). We also want to set the health-check's 'disabled for maintenance' flag when the charm's failover feature is activated.

Finally, update the health-check to ensure ubuntu_active is present. It's not present on initial metadata sync.

Reviewed-on: https://code.launchpad.net/~hloeung/ubuntu-repository-cache/health-check-handle-initial-sync/+merge/398100
Reviewed-by: Nick Moffitt <nick.moffitt@canonical.com>
Reviewed-by: Tom Haddon <tom.haddon@canonical.com>
Reviewed-by: Laurent Sesques <laurent.sesques@canonical.com>
Filename Latest Rev Last Changed Committer Comment Size
..
files 166 9 years ago Robert Jennings Add nrpe support Diff
hooks 1 9 years ago Robert Jennings First post: just a charm skeleton Diff
lib 1 9 years ago Robert Jennings First post: just a charm skeleton Diff
reactive 269.2.1 4 years ago Haw Loeung Convert to reactive framework Diff
templates 3 9 years ago Robert Jennings Partial port of squid-rp-mirror to python This is Diff
tests 1 9 years ago Robert Jennings First post: just a charm skeleton Diff
.bzrignore 269.2.1 4 years ago Haw Loeung Convert to reactive framework 125 bytes Diff Download File
config.yaml 304 3 years ago Haw Loeung Enable health-check endpoint by default 6.4 KB Diff Download File
copyright 20 9 years ago Robert Jennings Updates to documentation and added missing copyrig 756 bytes Diff Download File
DESIGN.md 141 9 years ago Robert Jennings Spelling fixes 4 KB Diff Download File
icon.svg 3 9 years ago Robert Jennings Partial port of squid-rp-mirror to python This is 14.5 KB Diff Download File
layer.yaml 269.2.4 3 years ago Haw Loeung Revert and make update-unit-apt-sources default to 317 bytes Diff Download File
LICENSE.md 237 7 years ago Christopher Glass Added LICENSE. 34.3 KB Diff Download File
Makefile 280.1.2 3 years ago Haw Loeung Switch to pytest and fix unit tests 1.2 KB Diff Download File
metadata.yaml 278 3 years ago Haw Loeung Add focal support 1 KB Diff Download File
pytest.ini 280.1.2 3 years ago Haw Loeung Switch to pytest and fix unit tests 620 bytes Diff Download File
README.md 249 5 years ago Ryan Finnie [r=rcj] Add expanded configuration options for arc 9.2 KB Diff Download File
RELEASING.md 239 6 years ago Christopher Glass More documentation changes. 1.3 KB Diff Download File
requirements.txt 280.1.2 3 years ago Haw Loeung Switch to pytest and fix unit tests Empty Diff Download File
revision 1 9 years ago Robert Jennings First post: just a charm skeleton 2 bytes Diff Download File
TESTING.md 234.2.1 7 years ago Francis Ginther Add 'mirror-series' option to reduce the amount of 1 KB Diff Download File
tox.ini 308.1.7 3 years ago Haw Loeung Add unit tests 655 bytes Diff Download File
wheelhouse.txt 269.3.2 4 years ago Haw Loeung backoff be gone, have wheelhouse install it 50 bytes Diff Download File