Sha256: bda08b0ea2c8751b5a98047b4f058a49cf8ff4051ff54253af180c57478f885a

Contents?: true

Size: 972 Bytes

Versions: 57

Compression:

Stored size: 972 Bytes

Contents

<%
  @path = "#{rubber_env.zookeeper_install_dir}/conf/zoo.cfg"
  @post = "mkdir -p #{rubber_env.zookeeper_data_dir}"
  require 'zlib'
%>
# Docs at http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_advancedConfiguration

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=<%= rubber_env.zookeeper_data_dir %>
# the port at which the clients will connect
clientPort=<%= rubber_env.zookeeper_client_port %>
# limit to # of connections from a client (IP), default 10, 0 for unlimited
maxClientCnxns=0

<%
  zookeeper_hosts = rubber_instances.for_role("zookeeper")
  if zookeeper_hosts.size > 1
    zookeeper_hosts.each do |ic|
%>
server.<%= Zlib.crc32(ic.name) %>=<%= ic.name %>:2888:3888
<%
    end
  end
%>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
rubber-2.5.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.4.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.4.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.4.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.3.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.3.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.2.4 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.2.3 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.2.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.2.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.2.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.1.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.1.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.1.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.0.8 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.0.7 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.0.6 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg