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

update nginx, add health check #715

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public static String addServer(String config, String name, List<String> serversT
});

List<String> checkList = StringUtils.isNotEmpty(checkUrl)
? Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 type=http", String.format("check_http_send \"HEAD %s HTTP/1.0\\r\\n\\r\\n\"", checkUrl))
: Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 type=tcp");
? Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 default_down=false type=http", String.format("check_http_send \"HEAD %s HTTP/1.0\\r\\n\\r\\n\"", checkUrl))
: Lists.newArrayList("check interval=3000 rise=2 fall=3 timeout=1000 default_down=false type=tcp");
checkList.stream().forEach(p -> {
NgxParam param = new NgxParam();
param.addValue(p);
Expand Down