The tcp-connect probe performs a simple socket connect health check on component instances. It attempts to open a socket on the component's service network (the same network used to consume that service).
The tcp-connect probe supports the following actions:
service_up (default) - try to open a socket and keep retrying until success or the action times outThis action supports the following arguments:
port - port number (default 80)timeout - operation timeout per service instance, in seconds (default 30). This is how long to keep retrying to open the socket (success).GitHub repository: https://github.com/opsani/probe-tcp-connect
Here are a few examples in the form of quality gates specified in a Skopos TED file (target environment descriptor). Quality gates associate probe executions to one or more component images. During application deployment Skopos executes the specified probes to assess components deployed with matching images.
vars:
elastic_port: "9300"
fluentd_port: "24224"
quality_gates:
elastic:
images:
- elasticsearch:*
steps:
# check elasticsearch TCP transport on port 9300
- probe:
image: opsani/probe-tcp-connect
label: "tcp-connect port ${elastic_port}"
arguments: { port: "${elastic_port}" }
fluent:
images:
- fluent/fluentd:*
steps:
# check Fluentd forward protocol listen port 24224
- probe:
image: opsani/probe-tcp-connect
label: "tcp-connect port ${fluentd_port}"
arguments: { port: "${fluentd_port}" }
Content type
Image
Digest
Size
21.1 MB
Last updated
about 9 years ago
docker pull opsani/probe-tcp-connect