1 Star 0 Fork 0

流动de云 / ngx_healthcheck_module

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ngx_stream_upstream_check_module.h 680 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
sixloop 提交于 2018-03-15 10:39 . first commit
#ifndef _NGX_STREAM_UPSTREAM_CHECK_MODELE_H_INCLUDED_
#define _NGX_STREAM_UPSTREAM_CHECK_MODELE_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>
//add a backend server to health checker system.
ngx_uint_t ngx_stream_upstream_check_add_peer(ngx_conf_t *cf,
ngx_stream_upstream_srv_conf_t *us, ngx_addr_t *peer);
//get status of one backend .
ngx_uint_t ngx_stream_upstream_check_peer_down(ngx_uint_t index);
//inc peer's busyness cnt
void ngx_stream_upstream_check_get_peer(ngx_uint_t index);
//dec peer's busyness cnt
void ngx_stream_upstream_check_free_peer(ngx_uint_t index);
#endif //_NGX_STREAM_UPSTREAM_CHECK_MODELE_H_INCLUDED_
1
https://gitee.com/hrq/ngx_healthcheck_module.git
git@gitee.com:hrq/ngx_healthcheck_module.git
hrq
ngx_healthcheck_module
ngx_healthcheck_module
master

搜索帮助