-
Notifications
You must be signed in to change notification settings - Fork 150
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(auto-balance): disk in pressure #1003
feat(auto-balance): disk in pressure #1003
Conversation
cli.BoolFlag{ | ||
Name: "sync-local", | ||
Required: false, | ||
Usage: "sync local replica", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Do we need this if we won't implement local sync for this debug cmdline?
proto/ptypes/syncagent.proto
Outdated
@@ -65,6 +65,12 @@ message FilesSyncRequest { | |||
repeated SyncFileInfo sync_file_info_list = 3; | |||
bool fast_sync = 4; | |||
int32 file_sync_http_client_timeout = 5; | |||
FileLocalSync local_sync = 6; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: I am thinking we can reuse the existing fields from_address
and to_host
for local sync. But a boolean field is required instead. I am fine with the current implementation anyway.
Need to wait #1015. cc @FrankYang0529 |
This pull request is now in conflict. Could you fix it @c3y1huang? 🙏 |
1 similar comment
This pull request is now in conflict. Could you fix it @c3y1huang? 🙏 |
285c0e1
to
e22874a
Compare
This pull request is now in conflict. Could you fix it @c3y1huang? 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The flow LGTM. However, we need to implement the sparse file copy rather than use io.Copy
. The doc might be helpful.
e22874a
to
e540686
Compare
1e3e0d9
to
e93dd8d
Compare
f5ee325
to
b482101
Compare
@c3y1huang Is it ready? |
longhorn/longhorn-4105 Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
b482101
to
a7dc671
Compare
@derekbit , this is ready for review. |
a7dc671
to
1c150ab
Compare
1c150ab
to
e3ec778
Compare
longhorn/longhorn-4105 Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
longhorn/longhorn-4105 Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
e3ec778
to
828da65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Which issue(s) this PR fixes:
Issue longhorn/longhorn#4105
What this PR does / why we need it:
Introduce file local sync to copy the file when there is another running replica on the same node so the data transfer doesn't need to go through TCP.
Special notes for your reviewer:
None
Additional documentation or context
None