Welcome! Log In Create A New Profile

Advanced

Re: [QUIC] When old worker listen fd detach ebpf reuseport group when reload

Vladimir Homutov
March 10, 2021 02:02AM
10.03.2021 06:17, Gao,Yan(ACG VCP) пишет:
> Hello Vladimir Homutov,
>
>>I'm not sure I understand what you are trying to do.
>
>>Do you have some issues with existing quic implementations in nginx?
>
> I just want to know how nginx handle old and new quic connections when
> reload.
>
> Nginx keep quic connections open when reload to complete old connections.
>
> But new connections can still be handled by old workers.
>
> Can the listening fd detach from reuseport group with keeping open, as
> kernel says, ebpf only look up an unconnected socket for a packet (UDP)
>
> Gao,Yan(ACG VCP)
>

Each worker process has it's own socket, identified by SO_COOKIE.
Such sockets belong to same reuseport group. BPF is used to route
packets with the same key (injected into DCID when connection is
established) to the same socket.

The reload part is not yet complete. New connections may reach old
workers. Since worker knows it is terminating, it will not accept
such connection. Client will retry, and next time it will probably
reach new worker (or the old one again).

You cannot touch old socket, since it is needed to work with existing
connections in old worker (and it needs to be in reuseport group, so
that packets could reach proper worker).

As I said, there still work to do in regard to reloads and upgrades.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Re: [QUIC] When old worker listen fd detach ebpf reuseport group when reload

gaoyan09 407 March 09, 2021 10:18PM

Re: [QUIC] When old worker listen fd detach ebpf reuseport group when reload

gaoyan09 234 March 10, 2021 01:12AM

Re: [QUIC] When old worker listen fd detach ebpf reuseport group when reload

Vladimir Homutov 410 March 10, 2021 02:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready