-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Healthcheck
Oliver Eilhard edited this page Feb 28, 2015
·
3 revisions
A health check is a procedure run periodically in every client. The purpose of a health check is to identify dead nodes/connections or bring them back to life after downtime.
By default, health checks are run every 60 seconds. However, you can set a different interval via elastic.SetHealthcheckInterval(...)
when creating a new client.
client, err := elastic.NewClient(elastic.SetHealthcheckInterval(5 * time.Second))
You can also disable health checks altogether, although this might not be a good idea in production.
client, err := elastic.NewClient(elastic.SetHealthcheck(false))