8000 Feature/put many objects by koba-e964 · Pull Request #224 · frugalos/frugalos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature/put many objects #224

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

Merged
merged 9 commits into from
Nov 19, 2019
Merged

Feature/put many objects #224

merged 9 commits into from
Nov 19, 2019

Conversation

koba-e964
Copy link
Contributor
@koba-e964 koba-e964 commented Nov 14, 2019

Types of changes

Please check one of the following:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • New release (merge to both master and develop!)

Description of changes

Behavior

例えば以下のようにすると、random-1mib.dat というファイルのデータが many-1mib0 から many-1mib19999 まで PUT される。PUT が完了するまでレスポンスは返ってこない。

$ time curl -XPUT --data-binary @random-1mib.dat 'frugalos:3000/v1/buckets/b0000/many_objects/many-1mib?start=0&count=20000'

また、concurrency パラメータで、何並列で PUT するかを指定できる。デフォルトは 10 である。

Purpose

frugalos に多数のオブジェクトを PUT する機能があると、デバッグ時に便利であるため。

Checklists

  • Run cargo fmt --all.
  • Run cargo clippy --all --all-targets.

brly
brly previously approved these changes Nov 18, 2019
src/server.rs Outdated
n,
req.url()
);
if count != 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既存の PUT で巨大なサイズのオブジェクトに対する対応をしている箇所は過去の調査用のためなのでいらないです。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3ccd1d1 で直しました

shinnya
shinnya previously approved these changes Nov 19, 2019
@koba-e964 koba-e964 merged commit 828cfe0 into develop Nov 19, 2019
@koba-e964 koba-e964 deleted the feature/put-many-objects branch November 19, 2019 10:01
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

Successfully merging this pull request may close these issues.

3 participants
0