### client defs, 3 distributed volumes, then replicated # TRANSPORT-TYPE tcp volume node01-1 type protocol/client option transport-type tcp option remote-host node01 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick1 end-volume volume node01-2 type protocol/client option transport-type tcp option remote-host node01 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick2 end-volume volume node01-3 type protocol/client option transport-type tcp option remote-host node01 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick3 end-volume volume node01-4 type protocol/client option transport-type tcp option remote-host node01 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick4 end-volume volume node02-1 type protocol/client option transport-type tcp option remote-host node02 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick1 end-volume volume node02-2 type protocol/client option transport-type tcp option remote-host node02 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick2 end-volume volume node02-3 type protocol/client option transport-type tcp option remote-host node02 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick3 end-volume volume node02-4 type protocol/client option transport-type tcp option remote-host node02 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick4 end-volume volume node03-1 type protocol/client option transport-type tcp option remote-host node03 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick1 end-volume volume node03-2 type protocol/client option transport-type tcp option remote-host node03 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick2 end-volume volume node03-3 type protocol/client option transport-type tcp option remote-host node03 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick3 end-volume volume node03-4 type protocol/client option transport-type tcp option remote-host node03 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick4 end-volume volume node04-1 type protocol/client option transport-type tcp option remote-host node04 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick1 end-volume volume node04-2 type protocol/client option transport-type tcp option remote-host node04 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick2 end-volume volume node04-3 type protocol/client option transport-type tcp option remote-host node04 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick3 end-volume volume node04-4 type protocol/client option transport-type tcp option remote-host node04 option transport.socket.nodelay on option transport.remote-port 6996 option remote-subvolume brick4 end-volume ### Our 3 replicas volume repstore1 type cluster/distribute #option local-volume-name `hostname`-1 `hostname`-4 # note the backquote, so 'hostname' output will be used as the option #option local-volume-name `hostname`-1 # note the backquote, so 'hostname' output will be used as the option subvolumes node01-1 node02-1 node03-1 node04-1 node04-4 end-volume volume repstore2 type cluster/distribute #option local-volume-name `hostname`-2 # note the backquote, so 'hostname' output will be used as the option subvolumes node01-2 node02-2 node03-2 node04-2 node02-2 end-volume volume repstore3 type cluster/distribute #option local-volume-name `hostname`-3 # note the backquote, so 'hostname' output will be used as the option subvolumes node01-3 node02-3 node03-3 node04-3 node03-3 end-volume volume replicate type cluster/replicate subvolumes repstore1 repstore2 repstore3 end-volume volume writebehind type performance/write-behind option cache-size 4MB subvolumes replicate end-volume volume readahead type performance/read-ahead option page-count 4 subvolumes writebehind 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-timeout 1 subvolumes readahead end-volume volume quickread type performance/quick-read option cache-timeout 1 option max-file-size 64kB subvolumes iocache end-volume volume statprefetch type performance/stat-prefetch subvolumes quickread end-volume