博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
zookeeper(2)——zookeeper服务器集群监控ZK UI
阅读量:5355 次
发布时间:2019-06-15

本文共 2929 字,大约阅读时间需要 9 分钟。

ZK UI监控ZooKeeper集群服务的可视化界面

Authorxusy

Zookeeper 节点的可视化界面有很多种,在这里我才用的是zkui,比较直观,而且可以导入文件。

对应的GIT下载地址: (官网)

使用:

1、gitlubclone代码到ideamaven clean install jar,运行 zkui-2.0-SNAPSHOT-jar-with-dependencies.jar

2、编辑文件config.cfg

#Server Port

serverPort=9090
#Comma seperated list of all the zookeeper servers
#zkServer=localhost:2181,localhost:2181
#zkServer=192.168.56.100:2181,192.168.56.101:2181,192.168.56.102:2181
zkServer=10.28.37.57:10075,10.28.37.76:10075,10.28.37.77:10075
#Http path of the repository. Ignore if you dont intent to upload files from repository.
scmRepo=http://myserver.com/@rev1=
#Path appended to the repo url. Ignore if you dont intent to upload files from repository.
scmRepoPath=//appconfig.txt
#if set to true then userSet is used for authentication, else ldap authentication is used.
ldapAuth=false
ldapDomain=mycompany,mydomain
#ldap authentication url. Ignore if using file based authentication.
ldapUrl=ldap://<ldap_host>:<ldap_port>/dc=mycom,dc=com
#Specific roles for ldap authenticated users. Ignore if using file based authentication.
ldapRoleSet={"users": [{ "username":"domain\\user1" , "role": "ADMIN" }]}
userSet = {"users": [{ "username":"admin" , "password":"manager","role": "ADMIN" },{ "username":"appconfig" , "password":"appconfig","role": "USER" }]}
#Set to prod in production and dev in local. Setting to dev will clear history each time.
env=prod
jdbcClass=org.h2.Driver
jdbcUrl=jdbc:h2:zkui
jdbcUser=root
jdbcPwd=manager
#If you want to use mysql db to store history then comment the h2 db section.
#jdbcClass=com.mysql.jdbc.Driver
#jdbcUrl=jdbc:mysql://localhost:3306/zkui
#jdbcUser=root
#jdbcPwd=manager
loginMessage=Please login using admin/manager or appconfig/appconfig.
#session timeout 5 mins/300 secs.
sessionTimeout=300
#Default 5 seconds to keep short lived zk sessions. If you have large data then the read will take more than 30 seconds so increase this accordingly.
#A bigger zkSessionTimeout means the connection will be held longer and resource consumption will be high.
zkSessionTimeout=20
#Block PWD exposure over rest call.
blockPwdOverRest=false
#ignore rest of the props below if https=false.
https=false
keystoreFile=/home/user/keystore.jks
keystorePwd=password
keystoreManagerPwd=password
# The default ACL to use for all creation of nodes. If left blank, then all nodes will be universally accessible
# Permissions are based on single character flags: c (Create), r (read), w (write), d (delete), a (admin), * (all)
# For example defaultAcl={"acls": [{"scheme":"ip", "id":"192.168.1.192", "perms":"*"}, {"scheme":"ip", id":"192.168.1.0/24", "perms":"r"}]
defaultAcl=
# Set X-Forwarded-For to true if zkui is behind a proxy
X-Forwarded-For=false

 

本地环境:

 

 

 

Linux 部署服务包:

 

 

启动服务命令:

nohup java -jar zkui-2.0-SNAPSHOT-jar-with-dependencies.jar ./config.cfg >nohup.out &

 

 

Web端访问:http://10.28.37.57:9090

 

 

监控对应服务的运行状态:

 

转载于:https://www.cnblogs.com/xushuyi/articles/7200258.html

你可能感兴趣的文章
[BZOJ 4361]isn
查看>>
mybatis 执行SQL的过程
查看>>
【数据结构】之二叉树的java实现
查看>>
[iOS] UIImage和CGImageRef
查看>>
用一条sql取得第10到第20条的记录
查看>>
前端流行的技术
查看>>
HDU 1010 Tempter of the Bone
查看>>
HDU 1846 Brave Game
查看>>
BZOJ 1202 [HNOI2005]狡猾的商人(并查集)
查看>>
POJ 2778 DNA Sequence(AC自动机+矩阵)
查看>>
微信开发 access_token 数量限制问题
查看>>
关于ajax提交表单
查看>>
你知道C#中的Lambda表达式的演化过程吗?
查看>>
WCF 无法生成 client
查看>>
Locality Sensitive Hashing
查看>>
Azure cache 的配置与应用
查看>>
无重复字符的最长子串
查看>>
关于sys.dm_exec_requests
查看>>
比较详细的Python正则表达式(转)
查看>>
root用户ssh可以登录,xftp通过sftp不能登录链接CentOS解决办法
查看>>