mirror of https://github.com/hashicorp/consul
b023904298
Adds the ability to simply check whether a TCP socket accepts connections to determine if it is healthy. This is a light-weight - though less comprehensive than scripting - method of checking network service health. The check parameter `tcp` should be set to the `address:port` combination for the service to be tested. Supports both IPv6 and IPv4, in the case of a hostname that resolves to both, connections will be attempted via both protocol versions, with the first successful connection returning a successful check result. Example check: ```json { "check": { "id": "ssh", "name": "SSH (TCP)", "tcp": "example.com:22", "interval": "10s" } } ``` |
||
---|---|---|
.. | ||
agent | ||
configtest.go | ||
configtest_test.go | ||
event.go | ||
event_test.go | ||
exec.go | ||
exec_test.go | ||
force_leave.go | ||
force_leave_test.go | ||
info.go | ||
info_test.go | ||
join.go | ||
join_test.go | ||
keygen.go | ||
keygen_test.go | ||
keyring.go | ||
keyring_test.go | ||
leave.go | ||
leave_test.go | ||
lock.go | ||
lock_test.go | ||
maint.go | ||
maint_test.go | ||
members.go | ||
members_test.go | ||
monitor.go | ||
reload.go | ||
reload_test.go | ||
rpc.go | ||
rpc_test.go | ||
util_test.go | ||
util_unix.go | ||
util_windows.go | ||
version.go | ||
version_test.go | ||
watch.go | ||
watch_test.go |