zoukankan      html  css  js  c++  java
  • gluster 卷的类型及创建方法

    基本卷:

    • 分布式卷

    文件随机分布在brick中,提升读写性能

    不提供数据冗余,最大化利用磁盘空间

     

    # gluster volume create test-volume server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4
    • 复制卷

    文件复制到多个brick中,写入性能下降,提升读取性

    提供数据冗余,副本越多数据相对越安全,磁盘空间利用率低

    # gluster volume create test-volume replica 2 transport tcp server1:/exp1 server2:/exp2
    • 条带卷

    文件以轮询调度算法分别在brick,提升大文件读写性能

    brick的数量是条带数的等数

    # gluster volume create test-volume stripe 2 transport tcp server1:/exp1 server2:/exp2

     复合卷:

    • 分布式条带卷

    提升超高并发访问大文件的性能

    brick的数量是条带数的倍数

    # gluster volume create test-volume stripe 4 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 server5:/exp5 server6:/exp6 server7:/exp7 server8:/exp8
    • 分布式复制卷

    提供数据高可靠,大大提升读取速度

    brick数量是副本数的倍数

    # gluster volume create test-volume replica 2 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4
    •  条带复制卷

    提供数据高可靠,并提升超高并发访问大文件的性能

    brick数量是副本数条带数的倍数

    # gluster volume create test-volume stripe 2 replica 2 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4
  • 相关阅读:
    回答自己之前的提问!
    阅读《构建之法》第13-17章
    阅读《构建之发》10-12章
    阅读《构建之法 》8,9,10章
    Practise 5.2测试与封装(黑白盒
    Practice5.1 测试与封装5.1
    Practice4 阅读《构建之法》6-7章
    Practice3 阅读《构建之法》1-5章
    “做汉堡”之评价我的队友
    Practice2 结对子之“小学四则运算”
  • 原文地址:https://www.cnblogs.com/37yan/p/9907827.html
Copyright © 2011-2022 走看看