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

您好,咨询个东西,这边走多核,但是发现,如果控制器中出现计算量大的处理(如死循环),会导致别的请求完全停止 #4615

Closed
caihaibin1991 opened this issue Feb 19, 2021 · 5 comments

Comments

@caihaibin1991
Copy link

场景重现:
单电脑
控制器:
一个死循环.
咨询个东西,这边走多核,但是发现,如果控制器中出现计算量大的处理(如死循环),会导致服务完全停止. 请问这边有没有办法怎么处理?如果走多核,一个执行中,是否可以走另一个?

@caihaibin1991 caihaibin1991 changed the title 咨询个东西,这边走多核,但是发现,如果控制器中出现计算量大的处理(如死循环),会导致别的请求完全停止 您好,咨询个东西,这边走多核,但是发现,如果控制器中出现计算量大的处理(如死循环),会导致别的请求完全停止 Feb 19, 2021
@caihaibin1991
Copy link
Author

测试下来,发现 --sticky 模式就会. 不走--sticky 就不会。但是这样又会导致程序数据乱了

@gemwuu
Copy link
Member

gemwuu commented Feb 20, 2021

请提供下最小复现代码仓库

@egg-bot
Copy link

egg-bot commented Feb 20, 2021

Hello @caihaibin1991. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@caihaibin1991,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

1 similar comment
@egg-bot
Copy link

egg-bot commented Feb 20, 2021

Hello @caihaibin1991. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@caihaibin1991,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@caihaibin1991
Copy link
Author

已解决,取消--sticky,缓存和相关集中到redis
socket.io改成egg-websocket-plugin 走redis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants