Skip to content

Instantly share code, notes, and snippets.

@frell
Created March 19, 2010 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frell/5f0e6a950712d7f24a64 to your computer and use it in GitHub Desktop.
Save frell/5f0e6a950712d7f24a64 to your computer and use it in GitHub Desktop.
# RAID 1
# TRANSPORT-TYPE tcp
volume gluster2-1
type protocol/client
option transport-type tcp
option remote-host x.x.x.x
option transport.socket.nodelay on
option transport.remote-port 6996
option remote-subvolume www
end-volume
volume gluster1-1
type protocol/client
option transport-type tcp
option remote-host x.x.x.x
option transport.socket.nodelay on
option transport.remote-port 6996
option remote-subvolume www
end-volume
volume mirror-0
type cluster/replicate
option read-subvolume gluster2-1
subvolumes gluster2-1 gluster1-1
end-volume
volume writebehind
type performance/write-behind
option cache-size 4MB
subvolumes mirror-0
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 300MB
option cache-timeout 2
option priority *.php:100,*.html:99,*.css:98,.htaccess:97,*.ico:96,*.js:95,*.cfg:94,*.htc:93,*.htm:92,*.xml:50,*.jpg:30,*.png:30,*.gif:30,*.swf:20,*: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
#
# WWW
#
volume www-posix
type storage/posix
option directory /export/www
end-volume
volume www-locks
type features/locks
subvolumes www-posix
end-volume
volume www
type performance/io-threads
option thread-count 8
subvolumes www-locks
end-volume
#
# END WWW
#
#
# E-Mial Server
#
volume email-posix
type storage/posix
option directory /export/email-server
end-volume
volume email-locks
type features/locks
subvolumes email-posix
end-volume
volume email
type performance/io-threads
option thread-count 8
subvolumes email-locks
end-volume
#
# END E-Mial Server
#
volume server-tcp
type protocol/server
option transport-type tcp
#www
option auth.addr.www.allow x.x.x.x,x.x.x.x
#email
option auth.addr.email.allow x.x.x.x,x.x.x.x
option transport.socket.listen-port 6996
option transport.socket.nodelay on
subvolumes www email
end-volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment