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

Mongo连接问题 #13

Open
Slairmy opened this issue Aug 25, 2021 · 1 comment
Open

Mongo连接问题 #13

Slairmy opened this issue Aug 25, 2021 · 1 comment

Comments

@Slairmy
Copy link

Slairmy commented Aug 25, 2021

想问下通过边车进程的连接有连接池的概念吗,我在循环写入(1w左右)mongo集合的时候回碰到这种错误,好像大概率是因为连接数的问题导致的。

RemoteGoTask::__call failed, because error 'error while executing mongo command: connection(xxx-ip) incomplete read of message header: EOF' on 'Hyperf\GoTask\Relay\CoroutineSocketRelay'

Spiral\Goridge\Exceptions\ServiceException : error 'error while executing mongo command: server selection error: server selection timeout, current topology: { Type: ReplicaSetNoPrimary, Servers: [{ Addr: xxx, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp xxx: connect: connection refused }, { Addr: xxx, Type: RSSecondary, State: Connected, Average RTT: 14362421 }, ] }' on 'Hyperf\GoTask\Relay\CoroutineSocketRelay'

@medeirosinacio
Copy link

related: #2

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

2 participants