Git Product home page Git Product logo

Comments (4)

ruckus avatar ruckus commented on August 12, 2024

Good question. I'm looking at the source and its not clear if PWK will wait until a request finishes or it restarts it mid-flight. It appears that a request is killed mid-flight.

But I'd love someone more knowledgeable to chime in. Thank you!

from puma_worker_killer.

schneems avatar schneems commented on August 12, 2024

PWK sends TERM immediately, it's up to puma to do the right thing and clean up correctly

from puma_worker_killer.

julik avatar julik commented on August 12, 2024

That I do understand. The behavior after is defined by the somewhat-underdocumented worker_shutdown_timeout in Puma proper (and afaik once a TERM is received the worker won't be receiving new requests). However, if that timeout is set to a pretty large value, will PWK try a KILL too soon, or will it overreact and attempt more TERMs if the worker does not go away in a timely manner?

from puma_worker_killer.

schneems avatar schneems commented on August 12, 2024

Everything we send will go through the puma interface. Right now we use term from Puma and it goes through it's paces. If we send the command multiple times to my knowledge puma doesn't have any kind of a counter or keep track of all of those "terms" and do something special if they hit some threshold.

from puma_worker_killer.

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.