Comments (8)
This problem also reproduced on the last version of Gearman (1.1.11)
from gearmanmanager.
Hello
We have found the reason of this problem.
It is appeared when we set timeouts in config.ini
this timeout is used in worker->addFunction
When we remove this parameter the problem was solved.
So I think it is the problem in Gearman or pecl but not in GearmanManager
from gearmanmanager.
We experiencing the same problem with gearman server. Sometimes it just stucks.
But we thought it's gearman-server or pecl-gearman issue.
Will try to delete timeouts from config.ini
Thanks for sharing info, such problems are really hard to inspect.
from gearmanmanager.
Also experiencing the same problem and using gear manager. I was using a timeout of 12 hours, and then recently changed to 2 hours (hoping to eleviate the problem) but it actually made it worse. So your explanation of the timeouts causing the problem would make sense. I have removed the timeouts today and am hoping it will solve the problems. Thanks for sharing the info!
from gearmanmanager.
I'm not using any timeouts, but my workers are now stuck. :-/
from gearmanmanager.
@simoncpu The others are talking about gearmand getting stuck, not workers I believe. What do you mean by your workers are now stuck?
From what I can tell, the pecl-gearman library does not have good timeout support for detecting connection/read/write timeouts to the gearmand. I have some better timeout detection in NetGearman that I need to push to Github that works much better.
from gearmanmanager.
Hi @brianlmoon! I can no longer experience the problem. I modified my code to be more robust, and I set a timeout of 30sec in the config. My previous code was hacky and used funky exec() calls. I think it caused the PHP workers to timeout (it often creates zombies, if run without gearman, but the OS just reaps them eventually). I'm sorry, but I can no longer provide any details. GearmanManager is now working smoothly on our setup. =)
from gearmanmanager.
@AlexeyOrlenko
Thank you very much! I've been debugging this for a looong time now and it seems to work better (so far) after commenting out the "timeout" setting in config.ini.
@brianlmoon
I would strongly recommend that you put this in a comment in config.ini, as it will certainly save some other poor soul 2-3 days of wasted debugging
from gearmanmanager.
Related Issues (20)
- worker Child xxx died unexpectedly with exit code 255 HOT 1
- gearmand will stuck when client add multi server to request background job? HOT 1
- Website is unavailable HOT 1
- Usage example
- Undefined variable: child
- Errors with "pcntl_fork()" with PHP 7 HOT 2
- How to restart when GearmanManager run in the background HOT 1
- Add/Remove functions in Workers dir without restart HOT 1
- Seems to be missing install script on version >= 2 HOT 3
- How GearmanManager distributed tasks? HOT 1
- Kill child process HOT 1
- programmcode is not updated after detection of filechange HOT 2
- Question about -vvv Logs information about workers and the work they are doing HOT 1
- Where is the v1 branch? HOT 1
- Odd solution to workers not wanting to stop with SIGTERM HOT 9
- Hacky code HOT 2
- Missing composer check for Gearman Extension HOT 3
- Helper child exited with non-zero exit code 65280 HOT 3
- timeout is milliseconds in gearmand 1.1.19 HOT 1
- Timeout parameter seem deprecated for PHP 8.1 version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gearmanmanager.