summaryrefslogtreecommitdiffstats
path: root/doc/examples/io-cache.vol
blob: 5f3eca4c527f1a24ce0b2091d57c9189f73897c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
volume client
  type protocol/client
  option transport-type tcp     # for TCP/IP transport
  option remote-host 192.168.1.10      # IP address of the remote brick
  option remote-subvolume brick        # name of the remote volume
end-volume

## In normal clustered storage type, any of the cluster translators can come here.
#
# Definition of other clients
# 
# Definition of cluster translator (may be unify, replicate, or unify over replicate)
# 

### 'IO-Cache' translator is best used on client side when a filesystem has file which are not modified frequently but read several times. For example, while compiling a kernel, *.h files are read while compiling every *.c file, in these case, io-cache translator comes very handy, as it keeps the whole file content in the cache, and serves from the cache.
# One can provide the priority of the cache too.

volume ioc
  type performance/io-cache
  subvolumes client         # In this example it is 'client' you may have to change it according to your spec file.
  option page-size 1MB      # 128KB is default
  option cache-size 64MB    # 32MB is default
  option force-revalidate-timeout 5 # 1second is default 
  option priority *.html:2,*:1 # default is *:0
end-volume