MinIO 服务器配置(存储类)

MinIO 默认情况下,具有标准存储类的对象的奇偶校验设置为 N/2,具有减少冗余存储类对象的对象的奇偶校验设置为 2。

KEY:
storage_class  define object level redundancy
               定义对象级冗余

ARGS:
standard  (string)    set the parity count for default standard storage class e.g. "EC:4" 
                      设置默认标准存储类的奇偶校验计数
rrs       (string)    set the parity count for reduced redundancy storage class e.g. "EC:2" 
                      为减少的冗余存储类设置奇偶校验计数
comment   (sentence)  optionally add a comment to this setting

通过修改 .minio.sys/config/config.json 文件来实现,如下:

{
    //...
    "storage_class": {
        "_": [{
            "key": "rrs",
            "value": "EC:2"
        },{
           "key": "standard",
            "value": "EC:4" 
        }]
    },
    //...
}

当然,也可以通过环境变量进行控制。如下:

KEY:
storage_class  define object level redundancy
               定义对象级冗余

ARGS:
MINIO_STORAGE_CLASS_STANDARD  (string)    set the parity count for default standard storage class e.g. "EC:4"
MINIO_STORAGE_CLASS_RRS       (string)    set the parity count for reduced redundancy storage class e.g. "EC:2"
MINIO_STORAGE_CLASS_COMMENT   (sentence)  optionally add a comment to this setting
说说我的看法
全部评论(
没有评论
关于
本网站属于个人的非赢利性网站,转载的文章遵循原作者的版权声明,如果原文没有版权声明,请来信告知:hxstrive@outlook.com
公众号