Project

General

Profile

Bug #10365

Enable gzip compression on text resources

Added by Nicolas CHARLES 7 months ago. Updated 5 months ago.

Status:
Released
Priority:
N/A
Category:
Performance and scalability
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:
0

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

User story #10366: Add expiration on static resourcesRejectedBenoît PECCATTE

User story #10367: Enable deflate apache module in packagingReleasedBenoît PECCATTE

User story #10371: Apply 10365 in 4.1ReleasedBenoît PECCATTE

Bug #10375: Syntax error in parent ticketReleasedBenoît PECCATTE

Bug #10381: Remove gzipfilter from jetty to handle compression in Apache2ReleasedFrançois ARMAND

Bug #10416: Invalid apache config on 3.1ReleasedAlexis MOUSSET


Related issues

Related to Rudder - User story #4519: Add caching information to static JS/CSS resources Released

Associated revisions

Revision 60dfad2b
Added by Alexis MOUSSET 7 months ago

Fixes #10365: Enable gzip compression on text resources

History

#1 Updated by Alexis MOUSSET 7 months ago

  • Status changed from New to In progress

#2 Updated by Alexis MOUSSET 7 months ago

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

#3 Updated by Alexis MOUSSET 7 months ago

  • Status changed from New to In progress

#4 Updated by Alexis MOUSSET 7 months 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

#5 Updated by François ARMAND 7 months ago

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

#6 Updated by Alexis MOUSSET 7 months ago

  • Status changed from Pending technical review to Pending release

#7 Updated by Vincent MEMBRÉ 5 months 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.

Also available in: Atom PDF