Try to adopt tree service to get rid of object searches #4
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/restic#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See adoption of tree service in s3-gateway (see SDK Tree Pool) and try to adopt the same mechanism for restic. This should replace all Object.Search operations.
@realloc has some consideration about the usage of tree service in restic/rclone, let's discuss it first.
To integrate with rclone, restic, and similar services, I'd prefer not to rely on a Tree Service.
First of all, the Tree Service is not yet part of the main API, and we are planning a significant overhaul in the nearest future.
Secondly, we would like to utilize rclone for scenarios that involve uploading vast amounts of immutable data without a changing hierarchy. Examples include test reports, build results, package repositories, and so on. In these scenarios, the tree structure can become a bottleneck, also leading to unnecessary overhead.
Regarding restic, it would be ideal, if technically feasible, to structure everything in a way that allows direct access to objects by their addresses, bypassing the search and tree access stages. We are considering developing a mechanism to accomplish this without involving SEARCH in the future, which further supports the argument against relying on the Tree Service in this context.