Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить возможность проактивных проверок Upstreams #37

Open
chudinanton opened this issue Aug 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@chudinanton
Copy link

Просьба добавить возможность проактивных проверок Upstreams, как это реализовано в Nginx Plus и Tengine от Alibaba
"Proactive health checks of upstream servers can be performed."
https://github.com/alibaba/tengine

	upstream cluster1 {
		# simple round-robin
		server 192.168.0.1:80;
		server 192.168.0.2:80;

		check interval=3000 rise=2 fall=5 timeout=1000 type=http;
		check_http_send "HEAD / HTTP/1.0\r\n\r\n";
		check_http_expect_alive http_2xx http_3xx;
	}

	upstream cluster2 {
		# simple round-robin
		server 192.168.0.3:80;
		server 192.168.0.4:80;

		check interval=3000 rise=2 fall=5 timeout=1000 type=http;
		check_keepalive_requests 100;
		check_http_send "HEAD / HTTP/1.1\r\nConnection: keep-alive\r\nHost: foo.bar.com\r\n\r\n";
		check_http_expect_alive http_2xx http_3xx;
	}

Документация к модулю:
https://github.com/alibaba/tengine/blob/master/docs/modules/ngx_http_upstream_check_module.md

@VBart VBart added the enhancement New feature or request label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants