Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26114

Zabbix Agent 2: poor server/proxy connection accept rate on high RTT

XMLWordPrintable

    • 6

      In main serverlistener loop too much time wasted on TLS handshake + request reading
      between Accept() connection and start of goroutine handleCheck() in processConnection().

      On high RTT links new connections accumulates, in "ss -np | grep 10050" on agent host
      you can see a lot of ESTAB connections with 328 bytes in Recv-Q (client hello packet)
      and without attached file descriptor in zabbix_agent2 on it.

      It leads to timeout on server side, errors in logs and items queue growth.

      Moving of TLS handshake and request reading into a separate goroutine fixed this behavior.

        1. serverlistener.accept.patch
          1 kB
        2. zabbix_agent2.log.zip
          36 kB
        3. zabbix_agent2.ssnp.txt
          5 kB
        4. zbx.pcap.zip
          173 kB

            sjurgensons Stanislavs Jurgensons
            bios Mikhail Okhotin
            Team INT
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: