forked from ISTI-ansible-roles/ansible-roles
library/roles/ganglia: Mess with the kernel rmem values when a huge UDP buffer is needed.
library/roles/couchbase/tasks/ganglia-plugin.yml: Big UDP buffer to store the internal couchdb data.
This commit is contained in:
parent
e3f897d903
commit
12f1e0a30d
|
@ -29,3 +29,4 @@
|
||||||
when: not couchbase_ganglia_plugin_enabled
|
when: not couchbase_ganglia_plugin_enabled
|
||||||
notify: Restart ganglia monitor
|
notify: Restart ganglia monitor
|
||||||
tags: [ 'ganglia', 'couchbase' ]
|
tags: [ 'ganglia', 'couchbase' ]
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
#ganglia_gmond_cluster_port: 8649
|
#ganglia_gmond_cluster_port: 8649
|
||||||
#ganglia_gmond_mcast_addr: 239.2.11.71
|
#ganglia_gmond_mcast_addr: 239.2.11.71
|
||||||
#ganglia_gmetad_host: ganglia-gmetad
|
#ganglia_gmetad_host: ganglia-gmetad
|
||||||
ganglia_gmond_send_metadata_interval: 30
|
ganglia_gmond_send_metadata_interval: 600
|
||||||
|
# Set it to yes if you need a buffer bigger than the default
|
||||||
|
ganglia_set_rmem: False
|
||||||
|
ganglia_udp_recv_buffer: 131070
|
||||||
# Needed to build the correct firewall rules when jmxtrans is in use
|
# Needed to build the correct firewall rules when jmxtrans is in use
|
||||||
ganglia_gmond_use_jmxtrans: False
|
ganglia_gmond_use_jmxtrans: False
|
||||||
# Used by other roles to install specific ganglia iptables rules or some specific ganglia plugins. Or not.
|
# Used by other roles to install specific ganglia iptables rules or some specific ganglia plugins. Or not.
|
||||||
|
|
|
@ -79,3 +79,9 @@
|
||||||
notify: Restart ganglia monitor
|
notify: Restart ganglia monitor
|
||||||
when: is_precise
|
when: is_precise
|
||||||
tags: [ 'monitoring', 'ganglia' ]
|
tags: [ 'monitoring', 'ganglia' ]
|
||||||
|
|
||||||
|
- name: Set the kernel UDP buffer limits (net.core.rmem_max) to a value that is double of the ganglia udp buffer
|
||||||
|
sysctl: name=net.core.rmem_max value={{ ganglia_udp_recv_buffer *2 }} reload=yes state=present
|
||||||
|
when: ganglia_set_rmem
|
||||||
|
tags: [ 'monitoring', 'ganglia' ]
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,8 @@ udp_send_channel {
|
||||||
/* You can specify as many udp_recv_channels as you like as well. */
|
/* You can specify as many udp_recv_channels as you like as well. */
|
||||||
udp_recv_channel {
|
udp_recv_channel {
|
||||||
mcast_join = {{ ganglia_gmond_mcast_addr }}
|
mcast_join = {{ ganglia_gmond_mcast_addr }}
|
||||||
port = {{ ganglia_gmond_cluster_port }}
|
port = {{ ganglia_gmond_cluster_port }}
|
||||||
|
buffer = {{ ganglia_udp_recv_buffer }}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -183,7 +184,7 @@ collection_group {
|
||||||
set significantly higher to reduce unneccessary network chatter. */
|
set significantly higher to reduce unneccessary network chatter. */
|
||||||
collection_group {
|
collection_group {
|
||||||
collect_every = 20
|
collect_every = 20
|
||||||
time_threshold = 180
|
time_threshold = 360
|
||||||
/* CPU status */
|
/* CPU status */
|
||||||
metric {
|
metric {
|
||||||
name = "cpu_user"
|
name = "cpu_user"
|
||||||
|
|
Loading…
Reference in New Issue