Skip to content

Commit 5797cc0

Browse files
committed
docs: update NGINX health_check command usage
1 parent be77057 commit 5797cc0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/architecture/lb/nginx.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,18 @@ stream {
211211
server <SC4S_IP_2>:514;
212212
}
213213
214+
match server_ok {
215+
send "GET /health HTTP/1.0\r\n\r\n";
216+
expect ~* '"healthy"';
217+
}
218+
214219
# Define connections to each of your upstreams.
215220
# Include `proxy_bind` and `health_check`.
216221
server {
217222
listen 514 udp;
218223
proxy_pass stream_syslog_514;
219-
220-
proxy_bind $remote_addr:$remote_port transparent;
221-
222-
health_check udp;
224+
proxy_bind $remote_addr transparent;
225+
health_check interval=1 match=server_ok port=8080;
223226
}
224227
}
225228
```

0 commit comments

Comments
 (0)