Merge ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:rsync-max-processes-round-2 into ubuntu-mirror-charm:master

Proposed by Paul Collins
Status: Merged
Approved by: Haw Loeung
Approved revision: 1630e907dceba98c933777b3ca7190465be6b52d
Merged at revision: 8c059eedae3228dcbbcf8d255ddcc161d896572e
Proposed branch: ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:rsync-max-processes-round-2
Merge into: ubuntu-mirror-charm:master
Diff against target: 17 lines (+3/-3)
1 file modified
hooks/hooks.py (+3/-3)
Reviewer Review Type Date Requested Status
Haw Loeung +1 Approve
Canonical IS Reviewers Pending
Review via email: mp+389387@code.launchpad.net

Commit message

bump ceiling over max client connections to account for all roles syncing simultaneously

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Haw Loeung (hloeung) wrote :

LGTM

review: Approve (+1)
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 8c059eedae3228dcbbcf8d255ddcc161d896572e

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/hooks/hooks.py b/hooks/hooks.py
2index 375076c..894760f 100755
3--- a/hooks/hooks.py
4+++ b/hooks/hooks.py
5@@ -750,9 +750,9 @@ def configure_nrpe(conf, hostname): # noqa: C901
6 tmpl_data["use"] = "active-service"
7 tmpl_data["nagios_hostname"] = conf.nagios_hostname()
8 # One extra for the rsync daemon itself, another two
9- # for pulling from syncproxy, one more for luck.
10- tmpl_data["rsync_crit"] = int(conf.rsync_max_connections() + 4)
11- tmpl_data["rsync_warn"] = int(conf.rsync_max_connections() + 1) # all client slots used
12+ # per role for pulling from syncproxy, one more for luck.
13+ tmpl_data["rsync_crit"] = conf.rsync_max_connections() + 1 + len(roles[hostname]) * 2 + 1
14+ tmpl_data["rsync_warn"] = conf.rsync_max_connections() + 1 # all client slots used
15 tmpl_data["tracepath"] = os.path.join(mirror["path"], ".trace", mirror["base_role"] + "-" + hostname)
16
17 for check, check_details in role_checks.items():

Subscribers

People subscribed via source and target branches