-
Notifications
You must be signed in to change notification settings - Fork 478
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
feat(writer): configurable buffer size of unsized write #2143
Conversation
I don't like current API:
For my current understanding, there are at least the following buffer related sizes:
I'm also seeking for better names. Any ideas? Seems we do need to add value in config, the best value cloud be different for services. |
I think it is ok to specify the buffer size for each write, since one writer is constructed per-write operation. Then maybe this write pattern could be a field in OpWrite like enum Buffersize {
AtLeast(usize),
Exact(usize),
AtMost(usize),
} |
No, too much. And they could be set at the same time, for example, at least 4MiB, at most 16 MiB. |
Why not just |
Seem that different services need different semantics, but maybe maintaining three related items is a little redundant. Waiting for an exact solution(naming scheme). |
Any suggestion? |
I think this need some further discussion before we implement this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks a lot!
Mostly LGTM, the only thing left is to resolve the conflicts. |
* config buffer size for gcs * config buffer size for oss s3 * refactor * refactor buffer size limitation * resolve comments * minor * minor * resolve comments * rebase main and resolve conflict * minor * typo
Currently only support configurable write buffer size for s3, gcs, and oss.
close #2087