Skip to content
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

请教 fastsocket and reuseport #29

Open
awssteve opened this issue Jan 21, 2015 · 3 comments
Open

请教 fastsocket and reuseport #29

awssteve opened this issue Jan 21, 2015 · 3 comments

Comments

@awssteve
Copy link

请问下fastsocket内核,应用层我能否跑带reuseport功能的程序?我这边有台机器带reuseport功能的程序启动不大正常,本来是要启动16个进程,只起来3-4个。

@breezewoods
Copy link
Member

Fastsocket的listen-spawn特性,是对reuseport的进一步增强,在CPU核心数目较多的服务器上性能对reuseport有明显提升。

所以Fastsocket在设计时,没有考虑对reuseport兼容。是否会出现兼容性问题,并不是很确定。个人建议,关闭reuseport使用性能更好Fastsocket的listen-spawn,或者继续使用reuseport并disable listen-spawn特性。

@pengqiuyuan
Copy link

image

@gfreewind
Copy link
Contributor

你有什么需求一定需要用reuse port?很可能fastsocket本身已经解决了这个需求

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

No branches or pull requests

4 participants