Update health check frequency
By default, Cloudflare servers send health checks to each GRE, CNI, or IPsec tunnel endpoint you configure to receive traffic from Magic Transit and Magic WAN. You can configure this frequency via the dashboard or the API to suit your use case. For example, if you are connecting a lower-traffic site for which you do not need immediate failover and would rather receive a lower volume of health check traffic, you should set the frequency to low
. On the other hand, if you are connecting a site that is extremely sensitive to any issues, and you want a more proactive failover at the earliest sign of a potential problem, you should set this to high
.
Available options are low
, mid
, and high
.
- Refer to Add tunnels to learn how to create or edit your tunnel.
- Change the Health check rate to your desired rate. For example, Low.
- Save your changes.
You can adjust the health check frequency by updating your GRE, IPsec, or CNI tunnels.
Below is an example of how to adjust tunnel health check frequency to low
. Note that this command applies to GRE, IPsec and CNI tunnels:
curl --request PUT \https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/gre_tunnels/{tunnel_id} \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{ "health_check": {"rate":"low"}}'