--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/2C906B7B-2745-477C-960B-1406E695316D%40redhat.com.
OK that makes sense. I wish we had some concrete examples even if we have to explain context.
IF the framework does not try and restart the connection tot he DB, the DB connection is a liveness thing but then that's an uncommon case compared to the framework retrying.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/05f112f4-d1eb-4d1c-995c-5a7f32bf808e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/77A346DA-641C-4A8C-8B77-6E7BD014F336%40redhat.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/05f112f4-d1eb-4d1c-995c-5a7f32bf808e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/05f112f4-d1eb-4d1c-995c-5a7f32bf808e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/fdc50751-320b-419b-b767-2726b706de39%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
Hello,While I agree that liveness probe should not depend on external system, I don't agree for readiness probe.Readiness probe should be OK only when your application can handle the request.If a database that is necessary to fulfill a request is down, your readiness probe should be DOWN.In the blog post your referring to, it messes liveness and readiness :> e.g. a stateful REST service with 10 pods which depends on a single Postgres database: when your probe depends on a working DB connection, all 10 pods will be "down" if the database/network has a hiccup --- this usually makes the impact worse than it shouldThis statement is not true, in case of a readiness probe, your pod will not restart, it will just don't receieve traffic that your POD is not able to handle.And I don't understand why it will make the impact worse, it is a kind of "circuit breaker", if your database is not able to handle request, it will not be used by your application, so your DB will have time to recover ...Moreover, network hiccup will not make a liveness/readiness probe taking down your POD as it takes several DOWN probe to actually restart (for liveness) or blacklist (for readiness) a POD.When we add health check to Quarkus, we discuss this extensively and was OK that providing readiness probes enabled by default for all datastore is a good thing.We decided to disabled it by default for Kafka Client as an application can still receive requests, without any issue when a Kafka cluster is down as the default client is capable of buffering the messages.I discuss this with my devops friends (some are certified Kubernetes Admin and Kubernetes trainers) and they agree with me ...So I think Quarkus is right with enabled by default readiness probe for all datastore that it supports.Each can be easily disabled so if some are not agree it's easy to change this ;)
Regards,Loïc--Le lun. 11 mai 2020 à 14:11, V. Sevel <vvs...@gmail.com> a écrit :in the "DON'T" it says "do not depend on external dependencies (like data stores) for your Readiness/Liveness checks as this might lead to cascading failures", with examples such as:--- dependency on db (not to be confused with db migration, which is a "DO")- dependency on other servicesit is my understanding that the quarkus behavior is to include extensions health checks (unless disabled) as readiness probes:I think it is a good thing that extensions providing integrations with external systems do provide custom health checks to help with diagnostic, but those health checks should not be part of the readiness probe, unless we are absolutely certain that the condition affects only the pod itself, and not the entire replica set.and in the vast majority of cases, failing on an external system is likely to be a problem on the server, rather on a dedicated client. if a pod cannot connect to a db, most likely the other pods won't be able to either. plus it is extremely difficult to assess from a given pod that a condition only occurs to that pod.so by default I would not add the extension health checks to the readiness probe for external systems (agroal, mongo, neo4j, vault, ...) except for flyway.and I would add some config params to add them to the readiness probe if I need to.
Le lundi 4 novembre 2019 17:41:30 UTC+1, Mattia Mascia a écrit :This discussion can be sum up with this blog:
https://srcco.de/posts/kubernetes-liveness-probes-are-dangerous.html
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/fdc50751-320b-419b-b767-2726b706de39%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJLxjVGqOGphb3%2BeMrdQBp%3Do0enmcVOm9uq-U5fc4gOYtCdLWA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CALeTM-%3DXcMG%3D8g6Jcp2ofE5aBBPDOLX7yGxqyr-yTL3KhnkKXA%40mail.gmail.com.
Regards,Loïc
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/fdc50751-320b-419b-b767-2726b706de39%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAJLxjVGqOGphb3%2BeMrdQBp%3Do0enmcVOm9uq-U5fc4gOYtCdLWA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quark...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/243d4a3c-592c-4c74-8987-1ebae17048f9%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/243d4a3c-592c-4c74-8987-1ebae17048f9%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/quarkus-dev/pj6L7kzbIno/unsubscribe.
To unsubscribe from this group and all its topics, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CALbocOkwVSjV%3D3fOsEriNBPAx3uXTo3y_OPHw7cWgt%3DcNETDKg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CADJ_gaTqtrV%3DqrFis9%3DBKBh9hzfxgTTHeLYmmFZOgBecTWs7eg%40mail.gmail.com.