-
Notifications
You must be signed in to change notification settings - Fork 40
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
Hostname detection, timestamp preservation and nanosecond timestamp added #36
Open
erlandl4g
wants to merge
17
commits into
LINBIT:master
Choose a base branch
from
Shotaos:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixed timestamp and ownership transfer on folders. TODO: Make folder transfers atomic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hostname detection bug fixed where host was having several hostnames
-a switch ensures that file attributes and file copying is done in TMP before it is moved into final destination
Permissions and ownership are now transferred correctly no no more root.root ownership added for all.
Timestamp has nanosecond resolution now.
Logging to file added wit -O switch
_p flag added as a first attempt to make parallel runs of csync2 (several threads on one host targeting several other nodes). Do not use as Sqlite currently locks database for the first thread and others cannot continue. It may need a shift to posgresql as It supports more granular row level locking so parallel processes should not compete for the db access.
For production use -
csync2 -xa
as command to run.
I am also attaching installation and config instructions as there is no such guide available anywhere making it hard for people to install it. There were 4 people involved (on paid contracts) in making the fixes, config guide and testing to make it easier for the community. I hope my efforts will not go to waste.
This Csync2 version is currently running under heavy use between 4 nodes syncing 317,000 files. It takes about 14 seconds to sync to one node and about 40 seconds to sync all 4 in all directions. There are about 30 file changes every 10 seconds.
My aim is to slash this time at least by half, possibly even make it 4 times faster in the next round.
Csync2 cluster_instructions.pdf