KubeSail Gateway can occasionally buffer too much memory in TCP sockets to packet-lossy or mis-behaving connected agents.
A real fix would be to update gateway handleSocket() to keep a highwaterMark for buffered packets (or rather, to track it), and pause the incoming socket when the destination socket is queuing.
Until then, a temporary fix is to dramatically increase the TCP buffer size in the linux kernel of Gateway servers:
KubeSail Gateway can occasionally buffer too much memory in TCP sockets to packet-lossy or mis-behaving connected agents.
A real fix would be to update gateway handleSocket() to keep a highwaterMark for buffered packets (or rather, to track it), and pause the incoming socket when the destination socket is queuing.
Until then, a temporary fix is to dramatically increase the TCP buffer size in the linux kernel of Gateway servers:
Note that kubesail-agent users don't need to worry about any of this!