Services running inside k8s -- want to have a healthcheck that will mark the service as unhealthy if communication with nats is down, but I don't see a ping() call -- what would be a good approach?
--
You received this message because you are subscribed to the Google Groups "nats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to natsio+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/natsio/773d8838-1f51-4533-a5de-03c2714b6c7b%40googlegroups.com.
Need a bit more information. NATS will automatically find a receiver, and for services like this we recommend using queue subscribers such that you can run as many or as little service responders as you like. NATS will automatically reconnect if it gets disconnected from a NATS server. It understands all topology changes even after the application has been started, so it will find all new servers as well. If it can not connect at all it will report that the connection is closed and the app can exit and have k8s restart if needed.
On Thu, Apr 9, 2020 at 12:22 PM Shmuel C <scohen...@gmail.com> wrote:
Services running inside k8s -- want to have a healthcheck that will mark the service as unhealthy if communication with nats is down, but I don't see a ping() call -- what would be a good approach?--
You received this message because you are subscribed to the Google Groups "nats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nat...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to natsio+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/natsio/30e78d18-7605-490f-a24b-d66437323c95%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/natsio/CAGMFj-MoRxXkKW8%3DJOjzWBnR-b9OvsXappbH88hu3Rqm0ZnPDQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/natsio/de5360a7-f400-48e9-b59c-35920756d9df%40www.fastmail.com.