[Gluster-users] quick-read hang / lock up

Andre Felipe Machado andremachado at techforce.com.br
Tue Oct 13 18:37:09 UTC 2009


Hello,
The mail list server strips attachments, so the conf files are in line now.
I hope these help to find the problem.
Regards.
Andre Felipe Machado


glusterfs.vol client files at each node:

volume remote1
  type protocol/client
  option transport-type tcp
  option remote-host 10.200.113.170		# IP address of the remote brick
# option transport.socket.remote-port 6996	# default server port is 6996
  option ping-timeout 10			# seconds to wait for a reply
						# from server for each request
  option transport.socket.nodelay on		# undocumented option for speed
	# http://gluster.org/pipermail/gluster-users/2009-September/003158.html
  option remote-subvolume brick			# name of the remote volume
end-volume



volume remote2
  type protocol/client
  option transport-type tcp
  option remote-host 10.200.113.171		# IP address of the remote brick
# option transport.socket.remote-port 6996	# default server port is 6996
  option ping-timeout 10			# seconds to wait for a reply
						# from server for each request
  option transport.socket.nodelay on		# undocumented option for speed
         # http://gluster.org/pipermail/gluster-users/2009-September/003158.html
  option remote-subvolume brick			# name of the remote volume
end-volume


volume remote3
  type protocol/client
  option transport-type tcp
  option remote-host 10.200.113.172		# IP address of the remote brick
# option transport.socket.remote-port 6996	# default server port is 6996
  option ping-timeout 10			# seconds to wait for a reply
						# from server for each request
  option transport.socket.nodelay on		# undocumented option for speed
         # http://gluster.org/pipermail/gluster-users/2009-September/003158.html
  option remote-subvolume brick			# name of the remote volume
end-volume


volume remote4
  type protocol/client
  option transport-type tcp
  option remote-host 10.200.113.173		# IP address of the remote brick
# option transport.socket.remote-port 6996	# default server port is 6996
  option ping-timeout 10			# seconds to wait for a reply
						# from server for each request
  option transport.socket.nodelay on		# undocumented option for speed
         # http://gluster.org/pipermail/gluster-users/2009-September/003158.html
  option remote-subvolume brick			# name of the remote volume
end-volume



volume distributed
  type cluster/distribute
  option lookup-unhashed off		# off will reduce cpu usage, and network
#  option min-free-disk 20%
   subvolumes remote1 remote2 remote3 remote4
end-volume



### Performance translators below

### Add quick-read for small files
volume quickread
  type performance/quick-read
  option cache-timeout 1 		# default 1 second
  option max-file-size 256KB		# default 64Kb
  subvolumes distributed
end-volume

### Add IO-Cache feature
volume iocache
  type performance/io-cache
  option cache-size 1000MB		# default is 32MB
#  option priority *.h:3,*.html:2,*:1 	# default is '*:0'
  option cache-timeout 1             	# default is 1 second
  subvolumes quickread
end-volume

### Add writeback feature
volume writeback
  type performance/write-behind
#  option aggregate-size 2MB 	# deprecated option
  option cache-size 500MB 	# default is equal to aggregate-size
  option flush-behind off  	# default is 'off'
				# too aggressive and slow background flush!
				# do not enable for php sessions behaviour
  subvolumes iocache   
end-volume









glusterfsd.vol server configuration:




volume posix
  type storage/posix				# POSIX FS translator
  option directory /srv/export/php_sessions	# Export this directory
end-volume

volume locks
  type features/locks
  option mandatory-locks on
  subvolumes posix
end-volume

volume iothreads
  type performance/io-threads
  option thread-count 16 # default is 16
  subvolumes locks
end-volume

volume writebehind
  type performance/write-behind
  option cache-size 1000MB	# default is equal to aggregate-size
  option flush-behind off	# default is 'off'
				# too aggressive and slow background flush!
				# do not enable for php sessions behaviour
  subvolumes iothreads
end-volume

volume brick
  type performance/io-cache
  option cache-size 2000MB		# default is 32MB
#  option priority *.h:3,*.html:2,*:1	# default is '*:0'
  option cache-timeout 1		# default is 1 second
  subvolumes writebehind
end-volume

### Add network serving capability to above brick.
volume server
  type protocol/server
  option transport-type tcp
  option transport.socket.nodelay on	# undocumented option for speed
	# http://gluster.org/pipermail/gluster-users/2009-September/003158.html

  option auth.addr.brick.allow * # Allow access to "brick" volume
end-volume




More information about the Gluster-users mailing list