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

feat(app): concurrent mode for parallel deletion of multiple buckets #288

Merged
merged 69 commits into from
Feb 3, 2025

Conversation

go-to-k
Copy link
Owner

@go-to-k go-to-k commented Jan 22, 2025

Concurrent Deletion of Multiple Buckets

The -c | --concurrentMode option allows you to delete multiple buckets in parallel. By default, when this option is specified, all buckets will be deleted in parallel.

If you want to limit the number of parallel deletions, you can specify the -n | --concurrencyNumber option. For example, -c -n 5 will delete buckets with a maximum of 5 parallel operations.

Too many parallel deletions may cause S3 API errors. If it fails, please run it again.

This option is not available in the Table Buckets Mode (-t) because the throttling threshold for S3 Tables is very low.

  • -c, --concurrentMode: optional
    • Delete multiple buckets in parallel.
    • If you want to limit the number of parallel deletions, specify the -n option.
    • Too many parallel deletions may cause S3 API errors. If it fails, please run it again.
    • This option is not available in the Table Buckets Mode (-t) because the throttling threshold for S3 Tables is very low.
  • -n, --concurrencyNumber: optional
    • Specify the number of parallel deletions.
    • To specify this option, the -c option must be specified.
    • The default is to delete all buckets in parallel if only the -c option is specified.

@go-to-k go-to-k force-pushed the parallel-mode branch 9 times, most recently from 6529ac5 to 23069cf Compare February 2, 2025 10:47
refactor

refactor

refactor

process

refactor

unit tests

tests

io mock

refactor

app test

fix

add test

add test

comment

tests
@go-to-k go-to-k force-pushed the parallel-mode branch 3 times, most recently from 9c685c2 to a29495c Compare February 2, 2025 16:55
wip

wip

wip

wip

WIP: writer

rev

rev
@go-to-k go-to-k force-pushed the parallel-mode branch 7 times, most recently from 9364c3c to dfe3755 Compare February 3, 2025 08:06
display o

NewWriter

display buckets only that have started

mock

output conc num

err handle

go mod

log number buckets

space

writer rm unnecessary methods
@go-to-k go-to-k merged commit f514c99 into main Feb 3, 2025
6 checks passed
@go-to-k go-to-k deleted the parallel-mode branch February 3, 2025 09:15
@github-actions github-actions bot mentioned this pull request Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant