ZooKeeper四字命令
来源:互联网 发布:chrome 知乎 编辑:程序博客网 时间:2024/04/30 03:14
ZooKeeper responds to a small set of commands. Each command is composed of four letters. You issue the commands to ZooKeeper via telnet or nc, at the client port.
Three of the more interesting commands: "stat" gives some general information about the server and connected clients, while "srvr" and "cons" give extended details on server and connections respectively.
- conf
New in 3.3.0: Print details about serving configuration.
- cons
New in 3.3.0: List full connection/session details for all clients connected to this server. Includes information on numbers of packets received/sent, session id, operation latencies, last operation performed, etc...
- crst
New in 3.3.0: Reset connection/session statistics for all connections.
- dump
Lists the outstanding sessions and ephemeral nodes. This only works on the leader.
- envi
Print details about serving environment
- ruok
Tests if server is running in a non-error state. The server will respond with imok if it is running. Otherwise it will not respond at all.
A response of "imok" does not necessarily indicate that the server has joined the quorum, just that the server process is active and bound to the specified client port. Use "stat" for details on state wrt quorum and client connection information.
- srst
Reset server statistics.
- srvr
New in 3.3.0: Lists full details for the server.
- stat
Lists brief details for the server and connected clients.
- wchs
New in 3.3.0: Lists brief information on watches for the server.
- wchc
New in 3.3.0: Lists detailed information on watches for the server, by session. This outputs a list of sessions(connections) with associated watches (paths). Note, depending on the number of watches this operation may be expensive (ie impact server performance), use it carefully.
- wchp
New in 3.3.0: Lists detailed information on watches for the server, by path. This outputs a list of paths (znodes) with associated sessions. Note, depending on the number of watches this operation may be expensive (ie impact server performance), use it carefully.
- mntr
New in 3.4.0: Outputs a list of variables that could be used for monitoring the health of the cluster.
例子:按照这种格式即可:echo 四字命令 | nc ipaddress port
$ echo mntr | nc localhost 2185zk_version 3.4.0zk_avg_latency 0zk_max_latency 0zk_min_latency 0zk_packets_received 70zk_packets_sent 69zk_outstanding_requests 0zk_server_state leaderzk_znode_count 4zk_watch_count 0zk_ephemerals_count 0zk_approximate_data_size 27zk_followers 4 - only exposed by the Leaderzk_synced_followers 4 - only exposed by the Leaderzk_pending_syncs 0 - only exposed by the Leaderzk_open_file_descriptor_count 23 - only available on Unix platformszk_max_file_descriptor_count 1024 - only available on Unix platforms
- ZooKeeper四字命令
- ZooKeeper 四字命令
- ZooKeeper四字命令
- ZooKeeper 四字命令
- zookeeper四字命令
- ZooKeeper四字命令
- Zookeeper四字命令
- zookeeper之四字命令
- ZooKeeper 常用四字命令
- Zookeeper的四字命令
- Zookeeper(二)四字命令
- zookeeper(二)四字命令
- 【Zookeeper】常用监控“四字命令”
- 分布式服务框架ZooKeeper:四字命令
- Zookeeper运维常用四字命令
- ZooKeeper系列之六:ZooKeeper四字命令
- ZooKeeper系列之六:ZooKeeper四字命令
- ZooKeeper系列之六:ZooKeeper四字命令
- redis 指令集(适用于telnet)
- 判断窗口是否是活动窗口
- memcache telnet 使用命令
- Android 加速度传感器(G-Sensor)
- 安装遇到INSTALL_FAILED_DEXOPT
- ZooKeeper四字命令
- RTSP流媒体播放器实现
- 【Project Euler】【Problem 9】Special Pythagorean triplet
- 全面解读WM_NOTIFY & 消息反射
- SIP中的DNS过程
- apache2.4配置虚拟主机
- JS添加删除DIV
- 在一个机构、部门或者职场里要学习的……
- coldfusion 利用技巧