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