envoyproxy/envoy

EPOLLEXCLUSIVE support

Open

#14,718 opened on 2021年1月15日

GitHub で見る
 (10 comments) (0 reactions) (1 assignee)C++ (5,373 forks)batch import
area/listenerenhancementhelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (平均マージ 8d) (30d で 378 merged PRs)

説明

In current implementation of envoy (if no configuration for REUSEPORT), multiple working threads would share the same LISTENING fd (to do accept),

In this case, there is the thundering bird problems if EPOLLEXCLUSIVE is NOT set, like this listening fd would wake up many worker to do accept but only 1 worker would succeed.

I was just wondering why envoy haven't support EPOLLEXCLUSIVE flag, is that because libevent don't have EPOLLEXCLUSIVE support or it's actually not a performance problem?

Thanks.

コントリビューターガイド