Comments (5)
Or even at a minimum if it is possible to group at a parent level. So if I were
to "touch" a file at /var/www it would know that rsync -r would include the
files mentioned above.
Original comment by [email protected]
on 20 Jul 2010 at 10:07
from lsyncd.
I doubt calling rsyncd recursively on a parent directory is more efficent than
calling it in -d mode for the 2 subdirectories events happened. rsync also does
nothing magically different than working this 2 directories through after each
other AND then having to do look through even more subdirs, which isn't
necessary.
%r is for startup only when the whole directory tree is synced to the target.
Original comment by [email protected]
on 20 Jul 2010 at 10:55
- Added labels: Type-Other
- Removed labels: Type-Defect
from lsyncd.
I don't have any hard evidence that it is slower than a normal rsync with -r
but I would guess that it could send incremental changes in one fail swoop
instead of sending incremental changes per directory. Meaning, it's not asking
the client node for a difference list for every directory which has a change.
More is processed on each node before attempting to rsync.
I am working with many thousands of directories, something like 15400 are in
inotify's watch list.
On a side note is -d required in callopts?
I am using -lptgoD%r for callopts. Is it possible that the -t is what is
slowing things down?
Original comment by [email protected]
on 20 Jul 2010 at 11:06
from lsyncd.
I have to see evidence that asking for a difference list of hugh tree is in any
way more efficient than asking two times for a difference list for 2 specific
directories.
The man page explains options:
"%r will be replaced with 'r' when rsycnd is supposed to work recursive (on
startup of lsyncd) or 'd' on normal operations."
15400 seems to be on the lower end what people told me already they are using
it for ;-) There are limits due to the technologies used, it just takes a
while. If you can make it faster, please show me the code and the test cases
for it, if they are coded well I will gladly add them to the repository.
Original comment by [email protected]
on 20 Jul 2010 at 11:42
from lsyncd.
Original comment by [email protected]
on 21 Jul 2010 at 7:18
- Changed state: Done
from lsyncd.
Related Issues (20)
- lsyncd spinning 100% CPU, writing "Normal: waiting for 1 more child processes" indefinitely to the log HOT 5
- Why only -lts option as argument to rsync HOT 5
- rsyncOps in documentation should be rsyncOpts HOT 4
- lsyncd crashes when it gets a notification from kernel HOT 2
- maxDelays doesn't seem to work HOT 6
- initial sync is too agressive HOT 1
- Documentation HOT 6
- rsyncOpts should be able to override "--delete" too HOT 3
- Ubuntu installation ./configure finding lua HOT 1
- lsyncd on arm system not finding getConfig() HOT 2
- lsync dies after initial sync HOT 18
- Compilation Errors on Solaris 11 Express HOT 2
- lsyncd ignores "--filter" command in rsyncOpts for rsyncssh (and maybe rsync) HOT 3
- Thousands of log messages: "Normal: waiting for 1 more child processes." HOT 4
- User and Group ownership not preserved HOT 4
- Bi-directional sync (possibly with unison?) HOT 3
- ERROR: Connection to remote host failed. HOT 2
- Treat rsync exit code 13 as temporary problem HOT 1
- tried to implement the group permission example using octal notation instead of "g+rw", lsyncd status immediately becomes: lsyncd dead but pid file exists HOT 5
- Fails to make on FreeBSD 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsyncd.