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