Closed
Bug 689645
Opened 14 years ago
Closed 14 years ago
[webby] cron job db-intensive?
Categories
(Webtools Graveyard :: Elmo, defect, P3)
Webtools Graveyard
Elmo
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Pike, Assigned: peterbe)
Details
Looking at https://ganglia.mozilla.org/sjc1/?c=Localization&h=l10n-db1.shared.sjc1.mozilla.com&m=load_one&r=hour&s=descending&hc=4&mc=2, there's spike on the db every 10 minutes, which looks like it could just be the webby cron job. Is there something expensive db-wise in the webby cron job?
Comment 1•14 years ago
|
||
yeah, we connect to Verbatim to pool for new locales/projects. Not sure if it's needed now or if Webby is used now....
Stas?
Comment 2•14 years ago
|
||
It is used. But why would it do any db operations?
Updated•14 years ago
|
Assignee: nobody → laura
Target Milestone: --- → 1.4
| Assignee | ||
Updated•14 years ago
|
Assignee: laura → peterbe
| Assignee | ||
Updated•14 years ago
|
Priority: -- → P3
Target Milestone: 1.4 → ---
| Assignee | ||
Comment 3•14 years ago
|
||
Hmm... the update_webby crontab is commented out. It **used to** run every 10 minutes but not any more. Unfortunately it's impossible to tell when it was commented out since it's just a crontab file.
What *is* running every 10 minutes is a /home/dashboard/bin/stats which does this::
tail -n 30 /home/dashboard/site/master-ball/twistd.log /home/dashboard/site/master-ball/l10n-master/twistd.log /home/dashboard/site/slave-ball/slave/twistd.log > /home/dashboard/site/elmo/collected/static/logs.txt
Doing that tail and writing it to logs.txt only writes a 14Kb file and I doubt it takes much more than a couple of milliseconds and I doubt it'd be CPU intensive.
Is webby even used? Clicking around it appears to be out of touch with reality. For example, it lists 6 projects here https://l10n-stage-sj.mozilla.org/webby/ but here https://localize.mozilla.org/ I can see well over 10 projects.
Gandalf? Axel? Shall we axe it?
| Assignee | ||
Comment 4•14 years ago
|
||
As a side-note, the update_webby management command uses 1,772 SQL queries to run one update. That definitely spikes up the CPU but like I said above, it appears that it's not being run.
| Assignee | ||
Comment 5•14 years ago
|
||
The cron job is commented out. The update_webby script is CPU intensive and could do with some refactoring or optimization if anybody cared about webby. But they don't at the moment.
From discussion we have agreed to not shut down webby until we have something better to replace it with.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•