swappiness to 1 for couchbase nodes

This commit is contained in:
Tommaso Piccioli 2016-12-27 14:26:21 +01:00
parent 844abcbeaa
commit 469b03b4a1
3 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,8 @@ couchbase_backup_dest_dir: /var/cache
couchbase_backup_command: /opt/couchbase/bin/cbbackup
couchbase_backup_type: full
couchbase_swappiness: 1
couchbase_ganglia_plugin_enabled: True
#couchbase_ganglia_url_username:
#couchbase_ganglia_url_password:

View File

@ -1,5 +1,6 @@
---
- include: couchbase.yml
- include: swappiness.yml
- include: ganglia-plugin.yml
when: ganglia_enabled

View File

@ -0,0 +1,6 @@
---
- name: couchbase swappiness
sysctl: name=vm.swappiness value={{ couchbase_swappiness }} state=present reload=yes
tags:
- couchbase_swap