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 668aa6a..ffd059e 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
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]

Reply via email to