Sha256: 187b0c6e4dca83a46053ea8211f122a336cede03cb5f2baf1fccabc14511ddb2

Contents?: true

Size: 799 Bytes

Versions: 29

Compression:

Stored size: 799 Bytes

Contents

<%
  @path = '/etc/monit/monit.d/monit-cassandra.conf'

  flush_command = "#{rubber_env.cassandra_dir}/bin/nodetool --host localhost --port #{rubber_env.cassandra_jmx_port} flush"
%>
check process cassandra with pidfile <%= rubber_env.cassandra_pid_file %>
  group cassandra-<%= Rubber.env %>
  start program = "<%= rubber_env.cassandra_dir %>/bin/cassandra -p <%= rubber_env.cassandra_pid_file %>"
  stop program = "/bin/bash -l -c 'kill `cat <%= rubber_env.cassandra_pid_file %>`'"
  #if failed host <%= rubber_env.host %> port <%= rubber_env.cassandra_rpc_port %> with timeout 10 seconds for 10 cycles then restart

<% if Rubber.env == 'production' %>
check filesystem commitlog_lv with path /mnt/cassandra/commitlog
  if space usage > 75% for 5 cycles then exec "<%= flush_command %>"
<% end %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rubber-2.6.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.6.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.5.5 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.5.4 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.5.3 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.5.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.5.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.5.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.4.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.4.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.4.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.3.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.3.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.2.4 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.2.3 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.2.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.2.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.2.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.1.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.1.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf