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

Hostname detection, timestamp preservation and nanosecond timestamp added #36

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

erlandl4g
Copy link

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

@erlandl4g
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants