Created
December 17, 2018 04:09
-
-
Save isRuslan/f7aa6013bc013f386eb51e1c90f3fbe0 to your computer and use it in GitHub Desktop.
Nginx active check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream zen_zen-front_production_splitter { | |
keepalive 2; | |
server [2a02:06b8:0c00:3b10:0000:1452:7fb3:1e24]:80 max_fails=0 fail_timeout=60 weight=1; | |
server [2a02:06b8:0c08:f427:0000:1452:005d:5634]:80 max_fails=0 fail_timeout=60 weight=1; | |
check interval=5000 rise=2 fall=3 timeout=2000 default_down=false type=http; | |
check_http_send "GET /ok.html HTTP/1.0\r\n\r\n"; | |
check_http_expect_alive http_2xx; | |
} | |
match statusok { | |
# Used for /test.php health check | |
status 200; | |
header Content-Type = text/html; | |
body ~ "Server[0-9]+ is alive"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment