Merge ~hloeung/content-cache-charm:sites-persistent-ports-kv into content-cache-charm:master
Proposed by
Haw Loeung
Status: | Merged |
---|---|
Approved by: | Haw Loeung |
Approved revision: | ef84acfe55e6ff83dc1ef2fa0d6915b60fc837c6 |
Merged at revision: | c3721b36276e5b48cc656cd547961bc38bc00cf3 |
Proposed branch: | ~hloeung/content-cache-charm:sites-persistent-ports-kv |
Merge into: | content-cache-charm:master |
Diff against target: |
387 lines (+311/-9) 3 files modified
reactive/content_cache.py (+78/-9) tests/unit/files/config_test_sites_map.txt (+127/-0) tests/unit/test_content_cache.py (+106/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Content Cache Charmers | Pending | ||
Review via email: mp+380871@code.launchpad.net |
Commit message
Don't shuffling sites and port-pair mappings - LP:1865945
When sites are added or removed, site to port-pair mappings are reshuffled and re-allocated sequentially. This can cause issues if either HAProxy or Nginx fails to reload where sites end up talking to incorrect backends. Instead, we want to keep sites to port-pair mappings persistent.
To post a comment you must log in.
Quick pass, few comments, but general approach seems fine.