From ae7392b064cb84a263f219ddc810d277ddfa3a76 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Fri, 22 Apr 2022 16:41:11 -0600 Subject: [PATCH] add information about recommended minimum response size for gzip, closes influxdata/DAR#284 (#3973) --- .../influxdb/v2.2/query-data/execute-queries/influx-api.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/influxdb/v2.2/query-data/execute-queries/influx-api.md b/content/influxdb/v2.2/query-data/execute-queries/influx-api.md index 5220634ba..dbeaa8d1a 100644 --- a/content/influxdb/v2.2/query-data/execute-queries/influx-api.md +++ b/content/influxdb/v2.2/query-data/execute-queries/influx-api.md @@ -28,6 +28,12 @@ In your request, set the following: To compress the query response, set the `Accept-Encoding` header to `gzip`. This saves network bandwidth, but increases server-side load. + +We recommend only using gzip compression on responses that are larger than 1.4 KB. +If the response is smaller than 1.4 KB, gzip encoding will always return a 1.4 KB +response, despite the uncompressed response size. +1500 bytes (~1.4 KB) is the maximum transmission unit (MTU) size for the public +network and is the largest packet size allowed at the network layer. {{% /note %}} #### Flux - Example query request