high load in script server for lp_publish jobs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Unassigned |
Bug Description
Our internal server that run lp_publish jobs has been experiencing a highload "seasons" usually 1~2 per week, which doesn't directly correlate to specific cron entries.
I'd suggested "shaping" the likelihood of scripts being run from cron based on current loadavg, as e.g.
load==10 -> P=1.0 down to load==21 -> P=0.0, by prefixing them with:
L=$(awk '{ printf ("%0.0f\n",$2) }' /proc/loadavg);test $((RANDOM % 10 > (20-L))) -eq 0 && ...
, but ~lifeless pointed out that he had observed places for improvement in the scripts being run:
- * * * * * ... launchpad/
- */5 * * * * ... launchpad/
- */20 * * * * ... launchpad/
- 3,33 * * * * ... launchpad/
- 59 05 * * 0 ... launchpad/
tags: | added: canonical-losa-lp |
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in launchpad: | |
status: | Triaged → Fix Released |
(Not a regression / escalated at this point)