- Proposed GlusterFS 1.3.12 configuration with 3 node replication via AFR.
- Server: Brick --> TCP
- Client: Bricks --> AFR --> io-thread --> write-behind --> io-cache --> read-ahead
- ## /etc/glusterfs-server.vol ##BEGIN##
- volume brick01
- type storage/posix
- option directory /media/sda5/brick
- end-volume
- volume server
- type protocol/server
- option transport-type tcp/server
- option auth.ip.brick01.allow 127.0.0.1,192.168.*
- subvolumes brick01 brick02 brick03
- end-volume
- ## /etc/glusterfs-server.vol ##END##
- posix/brick --> tcp
- ## /etc/glusterfs-clientr.vol ##BEGIN##
- volume farm01.brick01
- type protocol/client
- option transport-type tcp/client
- option remote-host 192.168.201.101
- option remote-subvolume brick01
- end-volume
- volume farm02.brick01
- type protocol/client
- option transport-type tcp/client
- option remote-host 192.168.201.102
- option remote-subvolume brick01
- end-volume
- volume farm03.brick01
- type protocol/client
- option transport-type tcp/client
- option remote-host 192.168.201.103
- option remote-subvolume brick01
- end-volume
- volume afr0
- type cluster/afr
- option read-subvolume farm01.brick01
- subvolumes farm01.brick01 farm02.brick01 farm03.brick01
- end-volume
- volume iot_afr0
- type performance/io-threads
- subvolumes afr0
- option thread-count 4
- option cache-size 96MB
- end-volume
- ## Add writeback feature
- volume write-behind_afr0
- type performance/write-behind
- option aggregate-size 1MB
- # option flush-behind off
- # subvolumes iot_afr0
- subvolumes afr0
- end-volume
- ### Add IO-Cache feature
- volume iocache_afr0
- type performance/io-cache
- #option page-size 256KB
- #option page-count 2
- option cache-size 64MB # default is 32MB
- option page-size 1MB #128KB is default option
- # option priority *.h:3,*.html:2,*:1 # default is '*:0'
- option force-revalidate-timeout 2 # default is 1
- subvolumes write-behind_afr0
- end-volume
- ### Add readahead feature
- volume readahead_afr0
- type performance/read-ahead
- option page-size 256kb # unit in bytes
- option page-count 4 # cache per file = (page-count x page-size)
- subvolumes iocache_afr0
- end-volume
- ## /etc/glusterfs-clientr.vol ##END##