mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-20 22:27:04 +00:00
fix(s3/lifecycle): parallelize shell shard sweeps
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -162,6 +162,11 @@ func (c *commandS3LifecycleRunShard) Do(args []string, env *CommandEnv, writer i
|
||||
Client: client,
|
||||
Persister: &dailyrun.FilerCursorPersister{Store: dispatcher.NewFilerStoreClient(filerClient)},
|
||||
Lister: dispatcher.NewFilerSiblingLister(filerClient, bucketsPath),
|
||||
// The shell command is used for bounded one-shot sweeps in
|
||||
// integration tests and CI. Fan out across the selected shards
|
||||
// so recovery walks do not serialize 16 shard scans into a 10s
|
||||
// timeout budget.
|
||||
Workers: len(shards),
|
||||
Walker: walker,
|
||||
EventBudget: *eventBudget,
|
||||
ClientName: fmt.Sprintf("shell-lifecycle-%s", formatShardLabel(shards)),
|
||||
|
||||
Reference in New Issue
Block a user