您好,欢迎光临本网站![请登录][注册会员]  
文件名称: ZooKeeper集群搭建
  所属分类: Hadoop
  开发工具:
  文件大小: 328kb
  下载次数: 0
  上传时间: 2019-07-02
  提 供 者: aba****
 详细说明:ZooKeeper集群搭建手动清理日志 /usr/lib/zookeeper/bin/zkCleanup sh dataLog Dir [snapDir]-n count DEE: /usr/lib/zookeeper/bin/zk Cleanup. sh/var/lib/zookeeper//var/lib/zookeeper/5 AB: /usr/lib/zookeeper/bin/zkCleanup. sh/data/disk01/zookeeper/zk_log/ /data/disko 1/zookeeperzk_data/5 自动清理见配置优化 ZooKeeper优化配置 ZooKeeper参数配置 http://my.oschina.net/w/128568/blog/194820 ZooKeeper自动清理日志 autopurge. purgeInterva这个参数指定了清理频率,单位是小时,需要填写一个1或更大的整数, 默认是0,表示不开启自己清理功能。 autopurge, snapRetain Count这个参数和上面的参数搭配使用,这个参数指定了需要保留的文件数 目。默认是保留3个。 Zookeeper常见管理和运维 http://nileader.blog.51cto.com/1381108/1032157 ZooKeeper测试 https:/github.com/phunt/zk-smoketest zk-smoketest 运行原理 1. create a root znode for the test, i. e.zk-smoketest 2.attach a zk session to each server in the ensemble (the -servers list) 3.each client will create ephemeral nodes and attach watches on nodes of the other clients 4.each client will then delete the the ephemeral znodes it owns, all clients verify watches are triggered properly 5. client then cleans up, removing /zk-smoketest znode 用法 Usage: zk-smoketest py [options Options: - h,--help show this help message and exit --servers=SERVERs comma separated list of host: port (default localhost: 2181) --config= CONFIGFILE zookeeper configuration file to lookup servers from timeout=TIMEOUT session timeout in milliseconds(default 5000) -V,--verbose verbose output, include more detail q, --quiet quiet output, basically just success/failure 使用命令: PYTHONPATH=lib. linux-X86 64-2.6/ LD LIBRARY PATH=lib. linux-x86 64-2.6/.zk- smoketest. py --servers="bigdata 101: 2181, bigdata 102: 2181, bigdata103: 2181-V zk-latencies 运行原理 This tool uses the ZooKeeper python binding to test various operation latencies. 1. create a root znode for the test, i.e/zk-latencies 2. attach a zk session to each server in the ensemble(the -servers list) 3. run various(create/get/set/delete) operations against each server, note the latencies of operations 4. client then cleans up, removing /zk-latencies znode By default asynchronous operations are run specify the -synchronous"flag if you want synchronous operations to be used. Typically the difference between the two will give you insight into your network latency 用法 Usage: Zk-latencies py [options] Options -h,--help show this help message and exit --servers-SERVERs comma separated list of host: port(default localhost: 2181) -cluster=CLUSTER comma separated list of host: port, test as a cluster alternative to --servers --config=CONFIG FILE zookeeper configuration file to lookup servers from timeout=TIMEOUT session timeout in milliseconds(default 5000) -root znode=ROOT ZNODE root for the test, will be created as part of test (default/zk-latencies) -znode size=ZNODE SIZE data size when creating/setting nodes(default 25) znode count=ZNODE COUNT the number of nodes to operate on in each performance section (default 10000) watch_multiple=WATCH_MULTIPLE number of watches to put on each znode(default 1) -force force the test to run even if root znode exists WARNING! don't run this on a real znode or you'll lose it!!! --synchronous by default asynchronous ZK api is used, this forces synchronous calls -V,--verbose verbose output, include more detail q, --quiet quiet output, basically just success/failure 使用示例 PYTHONPATH=lib. linux-X86 64-2.6/LD LIBRARY PATH=lib. linux-X86 64-2.6//zk latencies. py --servers="bigdata101: 2181, bigdata102: 2181, bigdata103: 2181 znode size=100--znode_count=101--watch_multiple=102 创建101个 znode,每个 znode的数据大小为100,每个 znode有102个 watch
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: ZooKeeper集群搭建
 输入关键字,在本站1000多万海量源码库中尽情搜索: