Can you change the size of chunks on minio ? and how does minio chunk?

Viewed 214

I have found that minio's chunks are at least 5mb. Is there a way to change the part size ?

1 Answers

You can provide chunkSize to your minio client config:

import { Client } from 'minio'
import config from '../util/config'

export default new Client({
    endPoint: config.storage.host,
    port: config.storage.port,
    useSSL: config.storage.useSsl,
    accessKey: config.storage.accessKey,
    secretKey: config.storage.secretKey,
    partSize: 30 * 1024 * 1024,
})
Related