GlusterFS常用translators(中継)

7952 ワード

1.storage/posix
type storage/posix
    storage/posix             GlusterFS       。
        :
       volume posix-example
            type storage/posix
            option directory /sda4
        end-volume

 
2.protocol/server(サーバ)
type protocol/server
         (protocol/server)      GlusterFS       。
        :
       volume server-example
            type protocol/server
            option transport-type tcp
            subvolumes brick                #     
            option auth.addr.brick.allow *  #           ,*   ,        , 192.168.1.*
        end-volume

 
3.protocol/client(クライアント)
type protocol/client
         (protocol/server)             。
        :
       volume client-example
            type protocol/client
            option transport-type tcp
            option remote-host 192.168.1.13    #      
            option remote-subvolume brick      #        
        end-volume

 
4.cluster/replicate(コピー)
type cluster/replicate
        (cluster/replicate,   AFR) GlusterFS     RAID-1   。
    Replicate             subvolumes 。    (volume)      (subvolume),               。
    Replicate          ,              ,         。          ,              ,             。
        :
       volume replicate-example
            type cluster/replicate
            subvolumes brick3 brick4
        end-volume

 
5.cluster/distribute(分散)
type cluster/distribute
         (cluster/distribute,   unify) GlusterFS     RAID-0   。
    Distribute              ,          
        :
       volume distribute-example
            type cluster/distribute
            subvolumes repl1 repl2
        end-volume

 
6.features/locks(ロック)
type features/locks
       (features/locks)         posix    ,          (fcntl locking)   。
        :
      volume locks-example
            type features/locks
            subvolumes posix-example
        end-volume

 
7.performance/read-ahead(プリフェッチ)
type performance/read-ahead
        (performance/read-ahead)           ,             。
                。                 ,               ,             。
       ,             ,            ,               。
         page-size page-count   ,page-size   ,           ,page-count             
                         ,        。    IB-verbs 10G      。
        :
       volume readahead-example
            type performance/read-ahead
            option page-size  256         #            
            option page-count 4           #            
            option force-atime-update off #                    ,     ,          ,                                    。
            subvolumes 
        end-volume

 
8.performance/write-behind(書き込みバック)
type performance/write-behind
        (performance/read-ahead)           ,        ,      ,     。        。
                  。              ,            ,             。                        。              client ,          。
                 。  aggregate-size       ,                   ,              。               ,                         。
        :
        volume write-behind-example
            type performance/write-behind
            option cache-size 3MB    #     ,                 
            option flush-behind on   #       close()/flush()     ,           
            subvolumes 
        end-volume

 
9.performance/io-threads(IOスレッド)
type performance/io-threads
    IO    (performance/io-threads)           ,     IO     ,   IO  。
    IO                       I/O     。  GlusterFS       ,  IO              。               ,                 。
    IO                  。                      。
        :
       volume iothreads
            type performance/io-threads
            option thread-count 32 #        
            subvolumes 
        end-volume

 
10.performance/io-cache(IOキャッシュ)
type performance/io-cache
    IO    (performance/io-threads)           ,              ,   IO  。
    IO                 。                  ,                       (  ,IO         web     ,                    ,            )。
     IO              ,               。
    IO                               。            。
        :
       volume iothreads
            type performance/ io-cache
            option cache-size 32MB  #          
            option cache-timeout 1  #
            option priority   *:0   #              
            subvolumes 
        end-volume

 
11.その他の中継その他の中継は、
  • cluster/nufa(不均一ファイルアクセス)
  • cluster/stripe(大きなファイル用、ブロックはサーバなしで格納)
  • cluster/ha(クラスタ)
  • features/filter(フィルタ)
  • features/trash(ごみ箱)
  • path-converter
  • quota

  • 古いのはcluster/unify(distributeと、異なるスケジューラを定義し、異なる方法でデータを書き込むことができます)です.