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

Enhance the sync functionality or add a pipeline-like feature #5672

Open
umialpha opened this issue Feb 18, 2025 · 3 comments
Open

Enhance the sync functionality or add a pipeline-like feature #5672

umialpha opened this issue Feb 18, 2025 · 3 comments
Labels
kind/feature New feature or request priority/wishlist The lowest priority

Comments

@umialpha
Copy link

umialpha commented Feb 18, 2025

What would you like to be added:
**Enhance the sync functionality or add a pipeline-like feature? **

the usage of juicefs sync is soooo good! It can essentially replace many cloud data synchronization tools. The performance is excellent.
Sometimes, while synchronizing data, we need to perform some processing on the data. The most common tasks are zipping/unzipping or additional processing, such as checking whether images are corrupted.

For example, I added a Pipeline interface in the config in my personal branch. I defined a interface

type Pipeline interface {
Filtered(obj object.Object) bool
Do(src, dst object.ObjectStorage, obj object.Object, config *Config) error
}

My current implementation is quite hacky, so I'd like to ask if the community is interested in this idea.

@umialpha umialpha added the kind/feature New feature or request label Feb 18, 2025
@umialpha
Copy link
Author

Another idea is to treat sync as a type of pipeline as well, so that pipelines can be chained together.

@jiefenghuang
Copy link
Contributor

Sounds good, but seems it require a plugin mechanism? @zhijian-pro

@zhijian-pro
Copy link
Contributor

The plugin mechanism conflicts with static compilation and is not a good solution

@jiefenghuang jiefenghuang added the priority/wishlist The lowest priority label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request priority/wishlist The lowest priority
Projects
None yet
Development

No branches or pull requests

3 participants