geerlingguy / raspberry-pi-dramble

DEPRECATED - Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
http://www.pidramble.com/
MIT License
1.67k stars 260 forks source link

Investigate whether enabling Nginx gzip is worth the effort #26

Closed geerlingguy closed 9 years ago

geerlingguy commented 9 years ago

Currently my configurations don't use gzip, and I've been pushing through around 1500 cached req/s, or 10MB/sec in bandwidth. I wonder if we can eke out a little more than that with gzip enabled.

geerlingguy commented 9 years ago

It looks like no. The extra (small, but significant) load on the CPU seems to take away from the Pi's ability to send bits over the LAN. With gzip enabled, throughput went down from 1.5k req/s / 10 MB/s to about 1.3k req/s / 8.6 MB/s (averaged over three test runs).

Individual page response times went up a couple ms as well.

geerlingguy commented 9 years ago

I've re-enabled gzip compression, as it seems like it might offer a little benefit at least. I'm now maxing out the onboard LAN's throughput, so further testing will need to be done with a GigE adapter. See: https://github.com/geerlingguy/raspberry-pi-dramble/issues/13#issuecomment-76211640