BCDevOps / developer-experience

This repository is used to track all work for the BCGov Platform Services Team (This includes work for: 1. Platform Experience, 2. Developer Experience 3. Platform Operations/OCP 3)
Apache License 2.0
8 stars 17 forks source link

OCP 4.10 Test enabling HTTP Compression in CLAB #3002

Closed StevenBarre closed 2 years ago

StevenBarre commented 2 years ago

Describe the issue In OCP 4.10 we can enable compression in HAProxy of select MIMETypes.

https://docs.openshift.com/container-platform/4.10/release_notes/ocp-4-10-release-notes.html#ocp-4-10-ne-router-compression

Ingress Controller router compression This enhancement adds the ability to configure global HTTP traffic compression on the HAProxy Ingress Controller for specific MIME types. This update enables gzip-compression of your ingress workloads when there are large amounts of compressible routed traffic.

For more information, see Using router compression.

There's a list of mimetypes that should be compressed at https://letstalkaboutwebperf.com/en/gzip-brotli-server-config/ - tried using the full list but Openshift wouldn't accept some of the mimetypes. Those have been removed.

What is the Value/Impact? This will improve the performance of web pages for apps that haven't configured compression themselves.

What is the plan? How will this get completed?

Identify any dependencies Need feedback from Matt before moving it to PROD

Definition of done

tbaker1313 commented 2 years ago

Added this list of mime types and enabled compression in CLAB: spec: httpCompression: mimeTypes:

tbaker1313 commented 2 years ago

This is implemented, instructions have been added to the upgrade docs.

tbaker1313 commented 2 years ago

Closing this as testing was successful in CLAB and will create new RFCs and tickets for implementing in PROD.