app/vminsert/clusternative: explain why lower-level vminsert doesnt compress responses to upper-level vminsert

This commit is contained in:
Aliaksandr Valialkin 2024-01-23 18:14:19 +02:00
parent 3199558da9
commit be320c81bc
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -23,6 +23,8 @@ var (
// InsertHandler processes data from vminsert nodes.
func InsertHandler(c net.Conn) error {
// There is no need in response compression, since
// lower-level vminsert sends only small packets to upper-level vminsert.
bc, err := handshake.VMInsertServer(c, 0)
if err != nil {
if errors.Is(err, handshake.ErrIgnoreHealthcheck) {