############################################## ### GlusterFS Client Volume Specification ## ############################################## #### CONFIG FILE RULES: ### "#" is comment character. ### - Config file is case sensitive ### - Options within a volume block can be in any order. ### - Spaces or tabs are used as delimitter within a line. ### - Each option should end within a line. ### - Missing or commented fields will assume default values. ### - Blank/commented lines are allowed. ### - Sub-volumes should already be defined above before referring. ### Add client feature and attach to remote subvolume volume server1 type protocol/client option transport-type tcp/client # for TCP/IP transport option remote-host 192.168.10.48 # IP address of the remote brick option remote-subvolume cmt # name of the remote volume end-volume volume server2 type protocol/client option transport-type tcp/client # for TCP/IP transport option remote-host 192.168.10.54 option remote-subvolume cmt # name of the remote volume end-volume volume server1-cmt-nsamespace type protocol/client option transport-type tcp/client # for TCP/IP transport option remote-host 192.168.10.48 # IP address of the remote brick option remote-subvolume cmt-ns # name of the remote volume end-volume volume server2-cmt-nsamespace type protocol/client option transport-type tcp/client # for TCP/IP transport option remote-host 192.168.10.54 # IP address of the remote brick option remote-subvolume cmt-ns # name of the remote volume end-volume volume afr-cmt type cluster/afr subvolumes server1 server2 option replicate *:2 end-volume volume afr-cmt-ns type cluster/afr subvolumes server1-cmt-nsamespace server2-cmt-nsamespace option replicate *:2 end-volume volume unify type cluster/unify subvolumes afr-cmt option namespace afr-cmt-ns option scheduler rr ### ** ALU Scheduler Option ** # option scheduler alu # option alu.limits.min-free-disk 5% #% # option alu.limits.max-open-files 10000 # option alu.order disk-usage:read-usage:write-usage:open-files-usage:disk-speed-usage # option alu.disk-usage.entry-threshold 2GB # option alu.disk-usage.exit-threshold 128MB # option alu.open-files-usage.entry-threshold 1024 # option alu.open-files-usage.exit-threshold 32 # option alu.read-usage.entry-threshold 20 #% # option alu.read-usage.exit-threshold 4 #% # option alu.write-usage.entry-threshold 20 #% # option alu.write-usage.exit-threshold 4 #% # option alu.disk-speed-usage.entry-threshold 0 # DO NOT SET IT. SPEED IS CONSTANT!!!. # option alu.disk-speed-usage.exit-threshold 0 # DO NOT SET IT. SPEED IS CONSTANT!!!. # option alu.stat-refresh.interval 10sec # option alu.stat-refresh.num-file-create 10 end-volume ### Add IO-Cache feature volume iocache type performance/io-cache #option page-size 256KB #option page-count 2 option page-size 1MB # 128KB is default option cache-size 300MB # 32MB is default option force-revalidate-timeout 5 # 1second is default subvolumes unify end-volume ### Add readahead feature volume readahead type performance/read-ahead option page-size 1MB # unit in bytes option page-count 2 # cache per file = (page-count x page-size) subvolumes iocache end-volume ### Add writeback feature volume writeback type performance/write-behind option aggregate-size 1MB option flush-behind off subvolumes readahead end-volume