Git Product home page Git Product logo

Comments (6)

lucaslorentz avatar lucaslorentz commented on June 12, 2024 1

If the running process exits, the supervisor starts it again after 10 seconds, based on the setting restart_policy:

  • never: never restart the process after it exits, regardless it's exit code
  • on_failure: restart the process if the exit code is different than 0 (failure)
  • always: always restart the process after it finishes

If after restarting the process, it exits again in less than 10 minutes, supervisor considers it unstable and increase it's restart delay to 20 seconds, if it fails again it increases to 40, and so forth. Whenever it runs for 10 minutes, the restart delay is reset to 10 seconds.

from caddy-supervisor.

lucaslorentz avatar lucaslorentz commented on June 12, 2024

No.
It can heal the processes it launches and supervise.
But if caddy itself crashes, it doesn't heal itself.

Maybe if you install caddy as a service you can setup it to be restarted after crash. Check the caddy service plugin, maybe it supports that: https://github.com/hacdias/caddy-service

Does that answer your question? If no, please, give me more details.

from caddy-supervisor.

ShalokShalom avatar ShalokShalom commented on June 12, 2024

Partly. How does it heal the processes it launches? Automatically?

from caddy-supervisor.

ShalokShalom avatar ShalokShalom commented on June 12, 2024

So every software that I put on Caddy can provide the same self healing capabilities as Erlang's VM?

from caddy-supervisor.

lucaslorentz avatar lucaslorentz commented on June 12, 2024

Sorry, but I don't know how Erlang's VM healing works, so I can't compare.

from caddy-supervisor.

ShalokShalom avatar ShalokShalom commented on June 12, 2024

I see, thanks a lot.

I think this feature is worth mentioning in your README anyways.

Good job :D

from caddy-supervisor.

Related Issues (6)

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.