All pastes #593465 Raw Edit

Someone

public text v1 · immutable
#593465 ·published 2007-06-28 10:30 UTC
rendered paste body
### Add client feature and attach to remote subvolume of server1
volume client1
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
# option transport-type ib-sdp/client  # for Infiniband transport
  option remote-host 192.168.1.105      # IP address of the remote brick
  option remote-port 6996              # default server port is 6996
  option remote-subvolume brick1        # name of the remote volume
end-volume

### Add client feature and attach to remote subvolume of server2
volume client2
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
# option transport-type ib-sdp/client  # for Infiniband transport
  option remote-host 192.168.1.104      # IP address of the remote brick
  option remote-port 6997              # default server port is 6996
  option remote-subvolume brick1        # name of the remote volume
end-volume


#volume client-ns
#  type protocol/client
#  option transport-type tcp/client     # for TCP/IP transport
#  option transport-type ib-sdp/client  # for Infiniband transport
#  option remote-host 192.168.1.104         # IP address of the remote brick
#  option remote-port 6999              # default server port is 6996
#  option remote-subvolume brick-ns     # name of the remote volume
#end-volume

### Add unify feature to cluster the servers. Associate an
### appropriate scheduler that matches your I/O demand.
volume bricks
  type cluster/unify
  option namespace client-ns # this will not be storage child of unify.
  subvolumes client1 client2 
### ** ALU Scheduler Option **
  option scheduler alu
  option lock-node client2             # first child will be lock-node by default
  option alu.limits.min-free-disk  5 #%
  option alu.limits.max-open-files 10000
  option alu.order disk-usage:read-usage:write-usage:open-files-usage:disk-speed-usage
  option alu.disk-usage.entry-threshold 2GB
  option alu.disk-usage.exit-threshold  128MB
  option alu.open-files-usage.entry-threshold 1024
  option alu.open-files-usage.exit-threshold 32
  option alu.read-usage.entry-threshold 20 #%
  option alu.read-usage.exit-threshold 4 #%
  option alu.write-usage.entry-threshold 20 #%
  option alu.write-usage.exit-threshold 4 #%
  option alu.disk-speed-usage.entry-threshold 0 # DO NOT SET IT. SPEED IS CONSTANT!!!.
  option alu.disk-speed-usage.exit-threshold 0 # DO NOT SET IT. SPEED IS CONSTANT!!!.
  option alu.stat-refresh.interval 10sec
  option alu.stat-refresh.num-file-create 10
### ** Random Scheduler **
# option scheduler random
### ** NUFA Scheduler **
# option scheduler nufa
# option nufa.local-volume-name posix1
### ** Round Robin (RR) Scheduler **
# option scheduler rr
# option rr.limits.min-free-disk 5 #%
end-volume