GithubHelp home page GithubHelp logo

Comments (4)

brendanheywood avatar brendanheywood commented on May 27, 2024

If you call it from a cli, there is no consistent way you can know can know if you are being served correctly to the outside world. There could be multiple layers of caches eg varnish, load balancers etc or different front ends in the brew, and you may not even be able to curl to your self because of funky routing rules. This is designed to either be used as a front end test, or only as a test for the moodle services connections eg sitedata and db. So sorry but closing as wontfix.

from moodle-tool_heartbeat.

ndunand avatar ndunand commented on May 27, 2024

That's true, there's no way to account for everything. I would have thought that using something like curl $CFG->wwwroot.'/.../tool/heartbeat' would be a small step but it's your call of course.

from moodle-tool_heartbeat.

brendanheywood avatar brendanheywood commented on May 27, 2024

The curl method will fail or give false positives in lots or even most cases. If you curl and go back over the network you may end up back at a different front end behind a load balancer, so the node you are running the command on is failing but you get back an ok. And there a bunch of other similar crazy things we've had to deal with.

from moodle-tool_heartbeat.

ndunand avatar ndunand commented on May 27, 2024

Right, indeed better leave it if can't be addresses in a satisfying manner

from moodle-tool_heartbeat.

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.