intel-cloud / cosbench

a benchmark tool for cloud object storage service
Other
574 stars 240 forks source link

how to set S3 chuncked size? #398

Open yangzhm opened 4 years ago

yangzhm commented 4 years ago

I want to write big files to S3 storage by cosbench. There is a "Chuncked" config ,but I cann't find the chuncked size. How can I set the chuncked size?

yangzhm commented 4 years ago

I have read the source code cosbench\dev\cosbench-s3\src\com\intel\cosbench\api\S3Stor\S3Storage.java. Not support mutipart for S3!

  public void createObject(String container, String object, InputStream data,
            long length, Config config) {
        super.createObject(container, object, data, length, config);
        try {
            ObjectMetadata metadata = new ObjectMetadata();
            metadata.setContentLength(length);
            metadata.setContentType("application/octet-stream");

            client.putObject(container, object, data, metadata);
        } catch (Exception e) {
            throw new StorageException(e);
        }
    }