Project

General

Custom queries

Profile

Actions

Feature #37964

closed

Increase foreman.socket's Backlog option to INT_MAX

Added by Ewoud Kohl van Wijngaarden 5 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
Packaging
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Ever since 3e38815694272ef06d11efd63ffa29e9c1834c62 we've shipped with Backlog=1024. That value was taken somewhere from the internet and it sort of made sense. The default back then was 128, which was often a bottleneck. Why 1024, that's a good question.

Taking a step back, I wrote a long analysis in https://issues.redhat.com/browse/SAT-6776#comment-25982829 of where we are. It can be summarized as:

systemd < 254 uses SOMAXCONN as a default for Backlog=, which is a constant defined by libc. glibc < 2.31 defaults to 128 while >= 2.31 uses 4096 to match the Linux kernel's net.core.somaxconn. systemd >= 254 defaults to INT_MAX (4294967295) for Backlog= and will be capped by the kernel's net.core.somaxconn value.

Linux < 5.4 defaults to 128 for net.core.somaxconn while >= 5.4 defaults to 4096.

EL 9 ships with Linux 5.14, glibc 2.34 and systemd 252. That makes me think it defaults to 4096 for Backlog=, but is also hard capped. Setting it to INT_MAX (like systemd 254+) should solely leave it to the kernel's net.core.somaxconn, making it easier for users to tune their system.

Actions #1

Updated by Ewoud Kohl van Wijngaarden 5 months ago

  • Description updated (diff)
Actions #2

Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ewoud Kohl van Wijngaarden
  • Pull request https://github.com/theforeman/foreman/pull/10362 added
Actions #3

Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 3.14.0 added
Actions #4

Updated by Ewoud Kohl van Wijngaarden 5 months ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Ewoud Kohl van Wijngaarden about 2 months ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF