Skip to content

Compress text-ish artifacts at storage time?

While many of our larger artifacts are not compressible, some are.

e.g. all our log artifacts should be compressible text.

Currently we compress these in nginx when we serve them, but we could compress them at creation time, and reap:

  1. less storage
  2. less bandwidth
  3. only need to compress the text once, not on every request

One way to do this would be to explicitly name these artifacts foo.gz, another would be to have an attribute on the artifactfile that states whether or not it is compressed (or maybe an enum naming the compression).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information