Skip to content

Adds limit to dynamic connection creation#44

Merged
Stringy merged 4 commits intomainfrom
giles/bounded-dynamic-sockets
Apr 10, 2025
Merged

Adds limit to dynamic connection creation#44
Stringy merged 4 commits intomainfrom
giles/bounded-dynamic-sockets

Conversation

@Stringy
Copy link
Contributor

@Stringy Stringy commented Apr 9, 2025

To better control the memory usage of the network workload, a limit has been added for dynamic connections.

If this limit is reached, either a random connection is closed before a new one is added, or the worker waits until a dynamic connection naturally ages off before adding more.

Parameter additions/changes:j

  • connection_dyn_max parameter controls max dynamic connections
  • preempt parameter controls eviction behavior
  • nconnections renamed to connections_static for clarity

Stringy added 4 commits April 10, 2025 08:56
- n_dyn_connections parameter controls max dynamic connections
- preempt parameter controls eviction behavior
- nconnections renamed to n_static_connections for clarity
@Stringy Stringy force-pushed the giles/bounded-dynamic-sockets branch from 61ca079 to 28833ce Compare April 10, 2025 07:58
@Stringy Stringy requested a review from Molter73 April 10, 2025 07:59
Copy link
Contributor

@Molter73 Molter73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Stringy Stringy merged commit d5dc0b3 into main Apr 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants