Files
fedora-infra_ansible/roles/gluster/client/templates/client.config
Michael Scherer e09dc582a3 Replace non working option by a jinja2 snippet
Asking to gluster devs, they were surprised this would be
working in the first place.
2016-08-08 16:32:25 +00:00

56 lines
1.3 KiB
Plaintext

# Config for {{ name }}
# Generated by ansible
{% for server in servers %}
volume vol-{{ servers.index(server) }}
type protocol/client
option transport-type tcp
option remote-host {{ server }}
option transport.socket.nodelay on
option remote-port 6996
option remote-subvolume iothreads
option username {{ username }}
option password {{ password }}
end-volume
{% endfor %}
volume mirror-0
type cluster/replicate
subvolumes {% for server in servers %}vol-{{loop.index - 1}} {% endfor %}
{% if servers.index(inventory_hostname) %}
option read-subvolume vol-{{ servers.index(inventory_hostname)}}{% endif %}
end-volume
volume writebehind
type performance/write-behind
option cache-size 4MB
# option flush-behind on # olecam: increasing the performance of handling lots of small files
subvolumes mirror-0
end-volume
volume iothreads
type performance/io-threads
option thread-count 16 # default is 16
subvolumes writebehind
end-volume
volume iocache
type performance/io-cache
option cache-size {{ (ansible_memtotal_mb / 5) |round |int }}MB
option cache-timeout 30
subvolumes iothreads
end-volume
volume statprefetch
type performance/stat-prefetch
subvolumes iocache
end-volume
#volume nfs-server
# type nfs/server
# option nfs.dynamic-volumes on
# subvolumes mirror-0
#end-volume