Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5182947690807296: Centralize stats processing, have the stats server pull in logs (Closed)

Created:
Dec. 20, 2013, 1:07 p.m. by Wladimir Palant
Modified:
Dec. 26, 2013, 2:55 p.m.
Reviewers:
Sebastian Noack
Visibility:
Public.

Description

Centralize stats processing, have the stats server pull in logs

Patch Set 1 #

Patch Set 2 : Fixed exception thrown on invalid IPs #

Total comments: 1

Patch Set 3 : Fixed various issues #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : Closing pool, added --revert option #

Total comments: 1

Patch Set 6 : Fixed comment and processing of non-Unicode keys #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -129 lines) Patch
M .sitescripts.example View 1 chunk +3 lines, -4 lines 0 comments Download
R sitescripts/stats/bin/datamerger.py View 1 chunk +0 lines, -97 lines 0 comments Download
M sitescripts/stats/bin/logprocessor.py View 1 2 3 4 5 4 chunks +149 lines, -26 lines 0 comments Download
M sitescripts/stats/bin/pagegenerator.py View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10
Wladimir Palant
Dec. 20, 2013, 1:07 p.m. (2013-12-20 13:07:58 UTC) #1
Wladimir Palant
Uploaded new patchset to fix two more issues: * We should use standard json rather ...
Dec. 20, 2013, 2:49 p.m. (2013-12-20 14:49:18 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/5182947690807296/diff/5685265389584384/sitescripts/stats/bin/logprocessor.py File sitescripts/stats/bin/logprocessor.py (right): http://codereview.adblockplus.org/5182947690807296/diff/5685265389584384/sitescripts/stats/bin/logprocessor.py#newcode44 sitescripts/stats/bin/logprocessor.py:44: match = re.search(r"^ssh://(\w+)@([^/:]+)(?::(\d+))?/([^/]+)", path) You can use urlparse (from ...
Dec. 20, 2013, 3:48 p.m. (2013-12-20 15:48:36 UTC) #3
Wladimir Palant
I fixed various issues in addition to the one mentioned in review: * We shouldn't ...
Dec. 22, 2013, 4:05 p.m. (2013-12-22 16:05:06 UTC) #4
Wladimir Palant
Finally fixed the remaining issue as well. JSON converts all dict keys to strings - ...
Dec. 22, 2013, 10:04 p.m. (2013-12-22 22:04:36 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5182947690807296/diff/6031560012726272/sitescripts/stats/bin/logprocessor.py File sitescripts/stats/bin/logprocessor.py (right): http://codereview.adblockplus.org/5182947690807296/diff/6031560012726272/sitescripts/stats/bin/logprocessor.py#newcode512 sitescripts/stats/bin/logprocessor.py:512: pool = multiprocessing.Pool() You should call pool.close(), when you ...
Dec. 23, 2013, 10:01 a.m. (2013-12-23 10:01:41 UTC) #6
Wladimir Palant
The new patch set is closing the pool after use now. It also adds an ...
Dec. 23, 2013, 9:43 p.m. (2013-12-23 21:43:37 UTC) #7
Sebastian Noack
http://codereview.adblockplus.org/5182947690807296/diff/5110435556622336/sitescripts/stats/bin/logprocessor.py File sitescripts/stats/bin/logprocessor.py (right): http://codereview.adblockplus.org/5182947690807296/diff/5110435556622336/sitescripts/stats/bin/logprocessor.py#newcode519 sitescripts/stats/bin/logprocessor.py:519: pool.close() You should put the code above into a ...
Dec. 24, 2013, 10:08 a.m. (2013-12-24 10:08:42 UTC) #8
Wladimir Palant
I fixed that review comment. I also fixed an issue we had with processing a ...
Dec. 26, 2013, 2:11 p.m. (2013-12-26 14:11:46 UTC) #9
Sebastian Noack
Dec. 26, 2013, 2:44 p.m. (2013-12-26 14:44:55 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld