Code Monkey home page Code Monkey logo

Comments (8)

AlexeyOrlenko avatar AlexeyOrlenko commented on June 14, 2024

This problem also reproduced on the last version of Gearman (1.1.11)

from gearmanmanager.

AlexeyOrlenko avatar AlexeyOrlenko commented on June 14, 2024

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.

arm4b avatar arm4b commented on June 14, 2024

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.

 avatar commented on June 14, 2024

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.

simoncpu avatar simoncpu commented on June 14, 2024

I'm not using any timeouts, but my workers are now stuck. :-/

from gearmanmanager.

brianlmoon avatar brianlmoon commented on June 14, 2024

@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.

simoncpu avatar simoncpu commented on June 14, 2024

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.

fractalf avatar fractalf commented on June 14, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.