Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Synopsis
proxy_pass http://cluster;
}

location /status {
location /hmstatus {
check_status;

access_log off;
Expand Down Expand Up @@ -163,18 +163,18 @@ Directives
You can specify the default display format. The formats can be `html`,
`csv` or `json`. The default type is `html`. It also supports to specify
the format by the request argument. Suppose your `check_status` location
is '/status', the argument of `format` can change the display page's
is '/hmstatus', the argument of `format` can change the display page's
format. You can do like this:

/status?format=html
/status?format=csv
/status?format=json
/hmstatus?format=html
/hmstatus?format=csv
/hmstatus?format=json

At present, you can fetch the list of servers with the same status by
the argument of `status`. For example:

/status?format=html&status=down
/status?format=csv&status=up
/hmstatus?format=html&status=down
/hmstatus?format=csv&status=up

Below it's the sample html page:

Expand Down
1 change: 0 additions & 1 deletion ngx_http_upstream_check_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,6 @@ ngx_http_upstream_check_begin_handler(ngx_event_t *event)

/* This process is processing this peer now. */
if ((peer->shm->owner == ngx_pid ||
(peer->pc.connection != NULL) ||
peer->check_timeout_ev.timer_set)) {
return;
}
Expand Down