Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable compression at haproxy layer #643

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

tedder
Copy link
Contributor

@tedder tedder commented Apr 23, 2020

This spins out of a discussion at OctoPrint#3529, where @flaviut did the math on how enabling http compression is really helpful, even on a little Pi. It'd be nice if we could get it enabled in Tornado, but this is easier and won't be invalidated by work on Tornado if that gets done.

haproxy attempts to compress every mime type, and it is a big win. You can go over to the other issue to see the comparisons. It doesn't seem to support setting a compression level, and it is cautious, so it should be fine.

Tested locally.

This spins out of a discussion at [OctoPrint#3529](OctoPrint/OctoPrint#3529), where @flaviut did the math on how enabling http compression is really helpful, even on a little Pi. It'd be nice if we could get it enabled in Tornado, but this is easier and won't be invalidated by work on Tornado if that gets done.

haproxy attempts to compress every mime type, and it is a big win. You can go over to the other issue to see the comparisons. It doesn't seem to support setting a compression level, and [it is cautious](https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#compression), so it should be fine.

Tested locally.
@guysoft guysoft merged commit f4a8de9 into guysoft:devel Apr 23, 2020
@guysoft
Copy link
Owner

guysoft commented Apr 23, 2020

Thanks for the contribution!

@guysoft guysoft mentioned this pull request Nov 4, 2020
@guysoft guysoft mentioned this pull request Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants