Sha256: 456ba1745269c955791a1714f65200ef08d89923dd075ae6aa863bce4ef3f6c9

Contents?: true

Size: 801 Bytes

Versions: 33

Compression:

Stored size: 801 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

33 entries across 33 versions & 1 rubygems

Version Path
rubber-3.2.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-3.2.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-3.2.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-3.1.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-3.0.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-3.0.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.16.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.15.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.15.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.15.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.14.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.13.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.13.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.12.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.12.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.12.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.11.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.10.2 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.10.1 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
rubber-2.10.0 templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf