From e09dc582a3d10583f1b0ed9b9daccece759604e2 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 5 Aug 2016 14:59:30 +0200 Subject: [PATCH] Replace non working option by a jinja2 snippet Asking to gluster devs, they were surprised this would be working in the first place. --- roles/gluster/client/templates/client.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/gluster/client/templates/client.config b/roles/gluster/client/templates/client.config index 668aa6aea2..ffd059e6e3 100644 --- a/roles/gluster/client/templates/client.config +++ b/roles/gluster/client/templates/client.config @@ -38,7 +38,7 @@ end-volume volume iocache type performance/io-cache - option cache-size `grep 'MemTotal' /proc/meminfo | awk '{print $2 * 0.2 / 1024}' | cut -f1 -d.`MB + option cache-size {{ (ansible_memtotal_mb / 5) |round |int }}MB option cache-timeout 30 subvolumes iothreads end-volume