Permalink
Browse files

log rebalance count

  • Loading branch information...
ronniedada committed Aug 27, 2013
1 parent 94e9f58 commit 09ffc9a37eb7f1923b6c1760f29d671d06517a94
Showing with 3 additions and 1 deletion.
  1. +3 −1 cookbooks/couchbase/recipes/setup-2.1.1.rb
@@ -170,7 +170,7 @@
rebalance_count = node[:db_couchbase][:cluster][:rebalance_count]
num_nodes = known_hosts.split("\n").length + 1
if num_nodes >= rebalance_count.to_i
log("rebalancing: (rebalance_count = #{rebalance_count}) > (num_nodes = #{num_nodes}")
log("rebalancing: (num_nodes = #{num_nodes}) >= (rebalance_count = #{rebalance_count})")
log("/opt/couchbase/bin/couchbase-cli rebalance" +
" -u #{node[:db_couchbase][:cluster][:username]}" +
" -p #{node[:db_couchbase][:cluster][:password]}" +
@@ -210,6 +210,8 @@
rescue Exception => e
log e
end
else
log("rebalancing: (num_nodes = #{num_nodes}) < (rebalance_count = #{rebalance_count})")
end
rightscale_marker :end

0 comments on commit 09ffc9a

Please sign in to comment.