Code Monkey home page Code Monkey logo

Comments (7)

chrispage1 avatar chrispage1 commented on August 10, 2024

I'm getting the same - makes it a little useless when PHP-FPM stops responding

from php-fpm-healthcheck.

chrispage1 avatar chrispage1 commented on August 10, 2024

Just to update with this one for anyone else searching, I managed to resolve using BusyBox timeout command in my Kubernetes liveness probe...

livenessProbe:
  exec:
    command:
     - timeout
     - "1"
     - php-fpm-healthcheck
     - --listen-queue=15 # fails if there are more than 10 processes waiting in the fpm queue

This means that if php-fpm-healthcheck doesn't return success within 1 second it'll assume its dead.

from php-fpm-healthcheck.

xriser avatar xriser commented on August 10, 2024

Just to update with this one for anyone else searching, I managed to resolve using BusyBox timeout command in my Kubernetes liveness probe...

livenessProbe:
  exec:
    command:
     - timeout
     - "1"
     - php-fpm-healthcheck
     - --listen-queue=15 # fails if there are more than 10 processes waiting in the fpm queue

This means that if php-fpm-healthcheck doesn't return success within 1 second it'll assume its dead.

Did the same before. It works
livenessProbe: exec: command: - /usr/bin/timeout - "3" - /usr/local/bin/php-fpm-healthcheck - --listen-queue=100 initialDelaySeconds: 300

from php-fpm-healthcheck.

chrispage1 avatar chrispage1 commented on August 10, 2024

@xriser do you find PHP-FPM becomes unresponsive often? I'm having problems where the node will restart about 10 times a day due to PHP-FPM not responding

from php-fpm-healthcheck.

xriser avatar xriser commented on August 10, 2024

@xriser do you find PHP-FPM becomes unresponsive often? I'm having problems where the node will restart about 10 times a day due to PHP-FPM not responding

no, it depends on the application. If the app doesn't free php child they start to grow and running out of active child limits.

from php-fpm-healthcheck.

wandersonwhcr avatar wandersonwhcr commented on August 10, 2024

If we implement a --timeout feature, we can also close #28 .

from php-fpm-healthcheck.

wandersonwhcr avatar wandersonwhcr commented on August 10, 2024

Is this doc relevant?

https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes

But yes, I think we must implement a --timeout feature, too.

image

from php-fpm-healthcheck.

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.