# Canton Participant to Domain keep alive logic

**URL:** <https://forum.canton.network/t/canton-participant-to-domain-keep-alive-logic/5156>\
**Category:** App Development\
**Created:** [August 31, 2022, 2:06pm UTC](https://forum.canton.network/t/canton-participant-to-domain-keep-alive-logic/5156 "2022-08-31T14:06:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonid\_Rozenberg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/leonid_rozenberg/32/48_2.png) [@Leonid\_Rozenberg](https://forum.canton.network/u/Leonid_Rozenberg)\
**Post date:** [August 31, 2022, 2:06pm UTC](https://forum.canton.network/t/canton-participant-to-domain-keep-alive-logic/5156/1 "2022-08-31T14:06:16Z")

</div>

What mechanisms keeps the participant to domain connection alive or automatically reconnecting?

When the two servers are on remote computers the network connection might be severed, is the ping described [here](https://docs.daml.com/canton/usermanual/monitoring.html#health-check) the recommended way to make sure my participant is able to process commands that involve a given domain?

Thank you

---

<div class="post-metadata">

**Author:** ![Ratko\_Veprek](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ratko_veprek/32/206_2.png) [@Ratko\_Veprek](https://forum.canton.network/u/Ratko_Veprek)\
**Post date:** [September 2, 2022, 9:56am UTC](https://forum.canton.network/t/canton-participant-to-domain-keep-alive-logic/5156/2 "2022-09-02T09:56:15Z")

</div>

Generally, the participant will automatically keep on reconnecting until the domain connection comes back. If you type participant.health.status you should the domain connection as unhealthy if there is an outage.

The /health HTTP end-point is a bit too dumb at the moment and the only way to expose an issue with the domain on the /health endpoint is the ping check you are citing.

We are working on improving that /health endpoint to give much better signals and conditions, telling the admin what exactly is broken. But that’s not available yet.

---

<div class="post-metadata">

**Author:** ![Leonid\_Rozenberg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/leonid_rozenberg/32/48_2.png) [@Leonid\_Rozenberg](https://forum.canton.network/u/Leonid_Rozenberg)\
**Post date:** [September 2, 2022, 4:54pm UTC](https://forum.canton.network/t/canton-participant-to-domain-keep-alive-logic/5156/3 "2022-09-02T16:54:37Z")

</div>

@Ratko_Veprek Thanks for that! @Mate_Varga also pointed me to [this keep-alive documentation](https://docs.daml.com/canton/usermanual/static_conf.html#keep-alive) , so I should configure that for all my participant and domain nodes too?

---

<div class="post-metadata">

**Author:** ![Ratko\_Veprek](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ratko_veprek/32/206_2.png) [@Ratko\_Veprek](https://forum.canton.network/u/Ratko_Veprek)\
**Post date:** [September 5, 2022, 6:15am UTC](https://forum.canton.network/t/canton-participant-to-domain-keep-alive-logic/5156/4 "2022-09-05T06:15:09Z")

</div>

You don’t need to configure it. It’s enabled by default and I would recommend to not change the default settings unless you experience problems that can somehow be linked to it (I wouldn’t know what). The documentation is here simply for completeness.  
If you change the settings, please consult the GRPC manual beforehand so that you understand exactly what you do. If you configure it wrong, GRPC servers will shut your client connections …
