Project

General

Profile

Actions

Bug #10365

closed

Enable gzip compression on text resources

Added by Nicolas CHARLES over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
Performance and scalability
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

When we load rule details for with a lot of nodes, it is super slow to display, as all data are loaded at once (I get more than 5 MB of data for compliance over 1000 nodes)
Downloading these MB take several second (on slow connection, I have 17s), which is terribly slow

Gzipping the output makes it much faster, 2,5s for only 194KB of data

This is really something we should consider

For the record, here is the change in /opt/rudder/etc/rudder-apache-common.conf

<LocationMatch "/rudder">
  Header add X-Chrome-Exponential-Throttling "disable" 
  AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</LocationMatch>

3.1 with large installation would benefit from it


Subtasks 6 (0 open6 closed)

User story #10366: Add expiration on static resourcesRejectedBenoît PECCATTEActions
User story #10367: Enable deflate apache module in packagingReleasedBenoît PECCATTEActions
User story #10371: Apply 10365 in 4.1ReleasedBenoît PECCATTEActions
Bug #10375: Syntax error in parent ticketReleasedBenoît PECCATTEActions
Bug #10381: Remove gzipfilter from jetty to handle compression in Apache2ReleasedFrançois ARMANDActions
Bug #10416: Invalid apache config on 3.1ReleasedAlexis MoussetActions

Related issues 2 (0 open2 closed)

Related to Rudder - User story #4519: Add caching information to static JS/CSS resourcesReleasedVincent MEMBRÉActions
Related to Rudder - Bug #22749: resources sent to the browser are not compressed when using a custom cetificateReleasedNicolas CHARLESActions
Actions #1

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to In progress
Actions #2

Updated by Alexis Mousset over 7 years ago

  • Subject changed from Super slow loading of Rule details to Enable gzip compression on text resources
  • Status changed from In progress to New
Actions #3

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to In progress
Actions #4

Updated by Alexis Mousset over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder/pull/1564
Actions #5

Updated by François ARMAND over 7 years ago

  • Related to User story #4519: Add caching information to static JS/CSS resources added
Actions #6

Updated by Alexis Mousset over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending release to Released
  • Priority set to 0

This bug has been fixed in Rudder 3.1.19, 4.0.4 and 4.1.1 which were released today.

Actions #8

Updated by Nicolas CHARLES over 1 year ago

  • Related to Bug #22749: resources sent to the browser are not compressed when using a custom cetificate added
Actions

Also available in: Atom PDF