Posts

Showing posts from September, 2013

Monitoring Zookeeper

Option 1
yum -y install gitcdmkdir binmkdir toolscd toolsgit clone https://github.com/phunt/zktop.gitnice updatedblocate zoo.cfgjot this path down for step belowlet's call it "mypathtozoocfg"the name of your zk conf may vary, adjust if so cdcd binln -s /root/tools/zktop/zktop.py .make sure you put the '.' on the end of that command /root/bin/zktop.py --config /<mypathtozoocfg>/zoo.cfg Option 2, by hand
echo srvr | nc localhost 2181echo stat | nc localhost 2181echo cons | nc localhost 2181etc. Try: watch -d "echo stat | nc localhost 2181" on all zk nodes in separate terms Break-out
srvrversionlatenciesreceived client requestssent client responses and notificationsoutstanding requestszxid, cluster idmode in cluster, leader or followernode count (?)statsimilar to srvrbut has actual connections listed by IP near top Taken: http://phunt1.wordpress.com/2010/03/29/monitoring-zookeeper-3-3-even-more-cussin/

Set IPs on vagrant-lxc VMs

Cross-communication is always nice.

VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.define "web", primary: true do |web| web.vm.box = "quantal64" web.vm.provider :lxc do |lxc| lxc.customize 'network.ipv4', '10.0.3.100/32' end end config.vm.define "db" do |db| db.vm.box = "quantal64" db.vm.provider :lxc do |lxc| lxc.customize 'network.ipv4', '10.0.3.101/32' end end end

FYI, versioning info:

vagrant -v Vagrant 1.3.3 vagrant plugin list vagrant-lxc (0.6.0)