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-3.2.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-3.2.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-3.2.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-3.1.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-3.0.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-3.0.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.16.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.15.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.15.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.15.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.14.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.13.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.13.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.12.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.12.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.12.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.11.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.10.2 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.10.1 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg
rubber-2.10.0 templates/zookeeper/config/rubber/role/zookeeper/zoo.cfg