diff --git a/couchbase/defaults/main.yml b/couchbase/defaults/main.yml index df48ead..c781d42 100644 --- a/couchbase/defaults/main.yml +++ b/couchbase/defaults/main.yml @@ -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: diff --git a/couchbase/tasks/main.yml b/couchbase/tasks/main.yml index c2c927e..8de0d4f 100644 --- a/couchbase/tasks/main.yml +++ b/couchbase/tasks/main.yml @@ -1,5 +1,6 @@ --- - include: couchbase.yml +- include: swappiness.yml - include: ganglia-plugin.yml when: ganglia_enabled diff --git a/couchbase/tasks/swappiness.yml b/couchbase/tasks/swappiness.yml new file mode 100644 index 0000000..a4b0490 --- /dev/null +++ b/couchbase/tasks/swappiness.yml @@ -0,0 +1,6 @@ +--- + +- name: couchbase swappiness + sysctl: name=vm.swappiness value={{ couchbase_swappiness }} state=present reload=yes + tags: + - couchbase_swap