Closed Bug 900919 Opened 11 years ago Closed 11 years ago

TBPL should use gzip compression for all compressible responses

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(2 files)

Currently none of the tbpl.mozilla.org requested are served gzipped. Both the static assets and the fairly hefty getRevisionBuilds.php responses (the latter being at least 10 calls of 50-200 KB each) would benefit significantly.
Attached patch Patch v1 (deleted) — Splinter Review
Enable gzip compression for everything other than images. Not fussed about older clients. Shyam, is the in-tree .htaccess the preferred way of doing this? :-)
Attachment #784938 - Flags: review?(shyam)
Attached image Screenshot post patch (deleted) —
Some sizeable gains, eg: * UserInterface.js... 57KB -> 15KB * getRevisionBuilds.php... 191KB -> 16KB
I've landed this because TBPL is unusable in it's current state for at least three of the sheriffs (and whilst this isn't the cause, it will at least counteract some of the slowdown): https://hg.mozilla.org/webtools/tbpl/rev/6b43f97d7d01 Shyam, I'd still be interested in your feedback as to whether this is the right approach - thank you :-)
Depends on: 901647
In production, but leaving bug open to confirm this is the preferred implementation.
(In reply to Ed Morley [:edmorley UTC+1] from comment #5) > In production, but leaving bug open to confirm this is the preferred > implementation. I'd defer to webops. I think Zeus does gzip too.
(In reply to Shyam Mani [:fox2mike] from comment #6) > (In reply to Ed Morley [:edmorley UTC+1] from comment #5) > > In production, but leaving bug open to confirm this is the preferred > > implementation. > > I'd defer to webops. I think Zeus does gzip too. Brandon, not sure who to ask from webops - are you the right person/do you know who might be? :-)
Flags: needinfo?(bburton)
(In reply to Ed Morley [:edmorley UTC+1] from comment #7) > (In reply to Shyam Mani [:fox2mike] from comment #6) > > (In reply to Ed Morley [:edmorley UTC+1] from comment #5) > > > In production, but leaving bug open to confirm this is the preferred > > > implementation. > > > > I'd defer to webops. I think Zeus does gzip too. > > Brandon, not sure who to ask from webops - are you the right person/do you > know who might be? :-) File a bug in https://bugzilla.mozilla.org/enter_bug.cgi?product=Infrastructure%20%26%20Operations&component=WebOps%3A%20IT-Managed%20Tools and one of the folks managing that component can see what can be implemented in Zeus, as having Zeus do it will be faster We should also rope in OpSec to make sure that this is enabled in a way that doesn't expose a http://breachattack.com/ type vulnerability
Flags: needinfo?(bburton)
Comment on attachment 784938 [details] [diff] [review] Patch v1 Review of attachment 784938 [details] [diff] [review]: ----------------------------------------------------------------- r- only because I'm not sure we should be doing this on the server itself. I'm a fan of off-loading this stuff to Zeus. Also, deferring to webops to figure out the correct solution here.
Attachment #784938 - Flags: review?(shyam) → review-
Depends on: 920563
(In reply to Brandon Burton [:solarce] from comment #8) > File a bug in > https://bugzilla.mozilla.org/enter_bug. > cgi?product=Infrastructure%20%26%20Operations&component=WebOps%3A%20IT- > Managed%20Tools and one of the folks managing that component can see what > can be implemented in Zeus, as having Zeus do it will be faster Filed bug 920563. > We should also rope in OpSec to make sure that this is enabled in a way that > doesn't expose a http://breachattack.com/ type vulnerability Other than toggling visibility of jobs (which uses a hardcoded fixed password, currently stored in the whiteboard of bug 322423; for which malicious access will only be 'mildly irritating' rather than anything more), there are no other session tokens or secrets used by TBPL, so I don't believe this is an issue. Closing the bug since this is already in production (see comment 3 for why), bug 920563 can undo the work here once we've switched to Zeus. Thank you for the Zeus idea :-)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Backed out now that Zeus is hopefully handling gzip compression via bug 920563: https://hg.mozilla.org/webtools/tbpl/rev/f31bfe7d347d Will test on tbpl-dev and close this WONTFIX if all is working as expected.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Is looking fine :-)
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → WONTFIX
Depends on: 931759
Product: Webtools → Tree Management
Version: 5.0 → unspecified
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: