Skip to content

[feat] make min_reserved_fds runtime-configurable - #447

Open
qiongtubao wants to merge 1 commit into
mainfrom
feature/min_reserved_fds
Open

[feat] make min_reserved_fds runtime-configurable#447
qiongtubao wants to merge 1 commit into
mainfrom
feature/min_reserved_fds

Conversation

@qiongtubao

Copy link
Copy Markdown
  • add 'min-reserved-fds' config option (default 32, MODIFIABLE)
  • replace hardcoded CONFIG_MIN_RESERVED_FDS with server.min_reserved_fds in event loop sizing, OOM score adj and adjustOpenFilesLimit
  • add tryResizeSetAeSize helper to resize aeSet on value change
  • update swapBatchTest to size aeSet consistently

- add 'min-reserved-fds' config option (default 32, MODIFIABLE)
- replace hardcoded CONFIG_MIN_RESERVED_FDS with server.min_reserved_fds
  in event loop sizing, OOM score adj and adjustOpenFilesLimit
- add tryResizeSetAeSize helper to resize aeSet on value change
- update swapBatchTest to size aeSet consistently
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.

1 participant