Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set S3 chuncked size? #398

Open
yangzhm opened this issue Jul 1, 2020 · 1 comment
Open

how to set S3 chuncked size? #398

yangzhm opened this issue Jul 1, 2020 · 1 comment

Comments

@yangzhm
Copy link

yangzhm commented Jul 1, 2020

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
Copy link
Author

yangzhm commented Jul 1, 2020

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);
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant