Showing posts from September, 2013

Monitoring Zookeeper

Option 1
yum -y install gitcdmkdir binmkdir toolscd toolsgit clone 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/ .make sure you put the '.' on the end of that command /root/bin/ --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:

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| = "quantal64" web.vm.provider :lxc do |lxc| lxc.customize 'network.ipv4', '' end end config.vm.define "db" do |db| = "quantal64" db.vm.provider :lxc do |lxc| lxc.customize 'network.ipv4', '' end end end

FYI, versioning info:

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