Public feed #599956

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-07-02 15:11 UTC
rendered paste body
------ server -------

volume brick
  type storage/posix                   # POSIX FS translator
  option directory /home/gluster-brick        # Export this directory
end-volume

volume brick-ns
  type storage/posix                   # POSIX FS translator
  option directory /home/gluster-brick-ns        # Export this directory
end-volume

volume iothreads
  type performance/io-threads
  option thread-count 16
  subvolumes brick
end-volume

volume iothreads-ns
  type performance/io-threads
  option thread-count 16
  subvolumes brick-ns
end-volume

### Add network serving capability to above brick.
volume server
  type protocol/server
  option transport-type tcp/server     # For TCP/IP transport
  subvolumes iothreads iothreads-ns
  option auth.ip.brick.allow 192.168.20.* # Allow access to "brick" volume
  option auth.ip.brick-ns.allow 192.168.20.* # Allow access to "brick" volume
end-volume
------ server -------

------ client -------
volume client1
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
  option remote-host 192.168.20.221         # IP address of the remote brick
  option transport-timeout 2           # seconds to wait for a reply
                                       # from server for each request
  option remote-subvolume brick        # name of the remote volume
end-volume

volume client2
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
  option remote-host 192.168.20.222         # IP address of the remote brick
  option transport-timeout 2           # seconds to wait for a reply
                                       # from server for each request
  option remote-subvolume brick        # name of the remote volume
end-volume

volume client3
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
  option remote-host 192.168.20.223         # IP address of the remote brick
  option transport-timeout 2           # seconds to wait for a reply
                                       # from server for each request
  option remote-subvolume brick        # name of the remote volume
end-volume

volume ns1
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
  option remote-host 192.168.20.221         # IP address of the remote brick
  option transport-timeout 2           # seconds to wait for a reply
  option remote-subvolume brick-ns        # name of the remote volume
end-volume

volume ns2
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
  option remote-host 192.168.20.222         # IP address of the remote brick
  option transport-timeout 2           # seconds to wait for a reply
  option remote-subvolume brick-ns        # name of the remote volume
end-volume

volume ns3
  type protocol/client
  option transport-type tcp/client     # for TCP/IP transport
  option remote-host 192.168.20.223         # IP address of the remote brick
  option transport-timeout 2           # seconds to wait for a reply
  option remote-subvolume brick-ns        # name of the remote volume
end-volume

volume afr
  type cluster/afr
  subvolumes ns1 ns2 ns3
  option replicate *:3
end-volume

volume bricks
    type cluster/unify
    option scheduler alu
    option alu.stat-refresh.interval 1sec
    option alu.order read-usage:write-usage:disk-usage:open-files-usage:disk-speed-usage
    subvolumes client1 client2 client3
    option namespace afr
    option readdir-force-success on
end-volume

volume writebehind
    type performance/write-behind
    option aggregate-size 262144
    subvolumes bricks
end-volume

volume readahead
    type performance/read-ahead
    option page-size 32768
    option page-count 8
    subvolumes writebehind
end-volume
------ client -------