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

gearmand close connection with Connection timed out #386

Open
huamxu opened this issue Mar 8, 2024 · 6 comments
Open

gearmand close connection with Connection timed out #386

huamxu opened this issue Mar 8, 2024 · 6 comments

Comments

@huamxu
Copy link

huamxu commented Mar 8, 2024

We using gearmand 1.1.21.0 in a docker contianer which base on image docker.io/library/python:3.11.4

libev-libevent-dev/oldstable 1:4.33-1 all
libevent-2.1-7/oldstable,now 2.1.12-stable-1 amd64 [installed,automatic]
libevent-core-2.1-7/oldstable,now 2.1.12-stable-1 amd64 [installed,automatic]

Gearmand start with "gearmand -t 10 --job-retries 1 --verbose DEBUG -p 4730"

ERROR 2024-02-26 00:01:26.998647 [ 11 ] closing connection due to previous errno error(Connection timed out) -> libgearman-server/io.cc:221
ERROR 2024-02-26 00:14:33.430740 [ 13 ] closing connection due to previous errno error(Connection timed out) -> libgearman-server/io.cc:221
ERROR 2024-02-26 00:14:33.430775 [ 14 ] closing connection due to previous errno error(Connection timed out) -> libgearman-server/io.cc:221

Is any know good solutions about this issue

@esabol
Copy link
Member

esabol commented Mar 8, 2024

@huamxu wrote:

Is any know good solutions about this issue

Could you try the suggestion in the following comment?

#150 (comment)

You might have to do that both on the Docker host and inside the Docker container. (I'm not sure.)

If that doesn't solve the problem, try changing "-t 10" to "-t 0" in your gearmand arguments. It's not an ideal solution, but it worked for the person in #150 (comment).

You could also try removing "--job-retries 1" from your gearmand arguments.

@esabol
Copy link
Member

esabol commented Mar 8, 2024

Note: This is a duplicate of issue #150.

@huamxu
Copy link
Author

huamxu commented Mar 8, 2024

Thanks, I will have a try

@esabol
Copy link
Member

esabol commented Mar 26, 2024

@huamxu, it has been 3 weeks. Did either of my two suggestions address your problem? Just wondering!

@huamxu
Copy link
Author

huamxu commented Mar 26, 2024

@huamxu, it has been 3 weeks. Did either of my two suggestions address your problem? Just wondering!

Thanks for your kindly support @esabol
My issue was not resolved after diable multi-thread feature, but new findings in our production result to not sure the problem with gearmand configuration.

In our production, Jenkins gearman plugin works as gearman worker, each executor as a worker
but after the plugin disable/enable in Jenkins, there are some duplicated executor worker exist.
I will post here once have some conclusion,

@esabol
Copy link
Member

esabol commented May 27, 2024

Latest updates found in the other thread:

#150 (comment)

#150 (comment)

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

2 participants