Ask nginx to configure health_check

nginx/1.13.12

-sharp kube.conf
upstream kubeapi {
        least_conn;
        zone kube_api_zone 64k;
        server 192.168.8.228:6443 max_fails=1 fail_timeout=30s;
        server 10.10.10.227:6443 max_fails=1 fail_timeout=30s;
        server 192.168.8.229:6443 max_fails=1 fail_timeout=30s;
}
server {
        listen        127.0.0.1:6443;
        proxy_pass    kubeapi;
        proxy_timeout 10m;
        proxy_connect_timeout 1s;
        health_check;
}

prompt health_check unknown directive "health_check" in / etc/nginx/conf/sites_stream/kube.conf:13

refer to this Module ngx_stream_upstream_hc_module

-sharpdocker-compose.yaml
version: "2.1"
services:
  tcp-proxy:
    image: spanda/proxy:tcp
    container_name: tcp-proxy
    volumes:
      - /tmp/nginx/sites_stream:/etc/nginx/conf/sites_stream
      - /tmp/nginx/sites_http:/etc/nginx/conf/sites_http
      - /tmp/nginx/ssl:/etc/nginx/conf/ssl
    logging:
      driver: "json-file"
      options:
        max-size: "50m"
        max-file: "3"
    network_mode: "host"

is it only supported by the commercial version?


this module does not require a commercial version, but it is not included in a standard distribution and needs to be compiled separately before it can be installed.
refer to the official documentation below.

https://www.nginx.com/resourc.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e423b3-4cd37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e423b3-4cd37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?