概述
1.自动向zookeeper注册本机信息,同步负载状态
2.自动从zookeeper同步上游服务器信息
3.获取本机系统信息,cpu使用率,内存使用率,nginx连接数同步到zookeeper
csdn:http://blog.csdn.net/rushroom
github:https://github.com/jasonsalex/nginx_zookeeper
Creator by:Jason's.Alex
Data:2015-12-18
Nginx Zookeeper Module
----https://github.com/jasonsalex/nginx_zookeeper
e-mail:531401335@qq.com
Add zookeeper support for Nginx Server.
Requirements
====
* Zookeeper C Client
Install
====
export LIBZOOKEEPER_PREFIX=/path/to/libzookeeper
$ ./configure --add-module=/path/to/nginx-zookeeper
$ make
# make install
Configuration
====
* zookeeper_host
CSV list of host:port values.
* zookeeper_path
Which path will module create when Nginx server starts.
* zookeeper_workload_update
system workload update time..
* zookeeper_upstream_workload_path
get upstream servsers workload data
Examples
====
zookeeper_host "192.168.0.2:2181,192.168.0.3:2181"
zookeeper_path "/nginx/foo"
zookeeper_workload_update 1s;
zookeeper_upstream_workload_path 500 "/service/min";
下载地址:http://download.csdn.net/detail/rushroom/9367125
最后
以上就是舒服樱桃为你收集整理的nginx与zookeeper交互,同步数据,发送系统负载信息。的全部内容,希望文章能够帮你解决nginx与zookeeper交互,同步数据,发送系统负载信息。所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复