-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔥 Add OnPrefork Hooks so you can get the PID of the child process. #1974
🔥 Add OnPrefork Hooks so you can get the PID of the child process. #1974
Conversation
Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
fa0496a
to
2310639
Compare
The commit above is for triggering GitHub Actions again. |
Some timeout tests are buggy. |
Thank you very much. It would be helpful if you could approve Workflow. |
|
Sorry for the late reaction. I've added documentation and submitted a PR. |
Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
Add Hooks that can get the PID of a child process forked from the master process.
Currently, in the Prefork mode of fiber, the PID of the child process forked from the master process cannot be obtained, so CPU Affinity cannot be set automatically using commands such as taskset.
To maximize performance in Prefork mode, each child process should be pinned to a specific CPU core.
To make this possible, I will add a new Hooks.
Usage
output