Browse Source

upstream check module supported midify on the fly

pull/622/head
yzprofile 10 years ago
parent
commit
9210e49b04
  1. 6
      src/http/ngx_http_upstream.h
  2. 723
      src/http/ngx_http_upstream_check_module.c

6
src/http/ngx_http_upstream.h

@ -1,4 +1,3 @@
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
@ -434,6 +433,11 @@ ngx_uint_t ngx_http_upstream_check_peer_down(ngx_uint_t index);
void ngx_http_upstream_check_get_peer(ngx_uint_t index);
void ngx_http_upstream_check_free_peer(ngx_uint_t index);
ngx_uint_t ngx_http_upstream_check_add_dynamic_peer(ngx_pool_t *pool,
ngx_http_upstream_srv_conf_t *us, ngx_addr_t *peer);
void ngx_http_upstream_check_delete_dynamic_peer(ngx_str_t *name,
ngx_addr_t *peer_addr);
#endif
extern ngx_module_t ngx_http_upstream_module;

723
src/http/ngx_http_upstream_check_module.c
File diff suppressed because it is too large
View File

Loading…
Cancel
Save