Hostname detection, timestamp preservation and nanosecond timestamp added #36
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