{"action":"created","issue":{"url":"https://api.github.com/repos/axkibe/lsyncd/issues/415","repository_url":"https://api.github.com/repos/axkibe/lsyncd","labels_url":"https://api.github.com/repos/axkibe/lsyncd/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/axkibe/lsyncd/issues/415/comments","events_url":"https://api.github.com/repos/axkibe/lsyncd/issues/415/events","html_url":"https://github.com/axkibe/lsyncd/issues/415","id":197979269,"number":415,"title":"[QUESTION] Abot rsync processes opened by lsyncd","user":{"login":"Episodio1","id":4375891,"avatar_url":"https://avatars.githubusercontent.com/u/4375891?v=3","gravatar_id":"","url":"https://api.github.com/users/Episodio1","html_url":"https://github.com/Episodio1","followers_url":"https://api.github.com/users/Episodio1/followers","following_url":"https://api.github.com/users/Episodio1/following{/other_user}","gists_url":"https://api.github.com/users/Episodio1/gists{/gist_id}","starred_url":"https://api.github.com/users/Episodio1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Episodio1/subscriptions","organizations_url":"https://api.github.com/users/Episodio1/orgs","repos_url":"https://api.github.com/users/Episodio1/repos","events_url":"https://api.github.com/users/Episodio1/events{/privacy}","received_events_url":"https://api.github.com/users/Episodio1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-29T09:37:34Z","updated_at":"2016-12-29T12:44:25Z","closed_at":null,"body":"Hi!\r\n\r\nWith this configuration:\r\n\r\n```\r\nsettings {\r\n        logfile = \"/var/log/lsyncd/lsyncd.log\",\r\n        statusFile = \"/var/log/lsyncd/lsyncd.status\",\r\n        inotifyMode = \"CloseWrite\",\r\n        maxProcesses = 3,\r\n        insist = true\r\n}\r\nsync{\r\n        default.rsync,\r\n        source=\"/home/admin/xxx/xxx\",\r\n        target=\"192.168.X.X:/home/admin/xxx/xxx\",\r\n        delay = 5,\r\n        delete = false,\r\n        exclude={ '*.wav' , '.*' },\r\n        rsync  = {\r\n                archive  = true,\r\n                update   = true\r\n        }\r\n}\r\n```\r\n\r\nI am getting one rsync processes reading hard drive at maximum (5 MB/s) for a long time (There are millions of files in source folder). When that process  finishes (2-3 hours) lsyncd transfers the new files (around 3000 files which has been delayed), and then starts the same long-running process again.\r\nWhen I run `ps aux |grep rsync` :\r\n```\r\nroot      7190  6.3  0.0  12720   708 ?        D    06:17   0:25 /usr/bin/rsync -gsoputlD -r --force --from0 --include-from=- --exclude=* /home/admin/xxx/xxx/ 192.168.X.X:/home/admin/xxx/xxx/\r\nroot      7191  0.0  0.1  41444  1212 ?        S    06:17   0:00 ssh 192.168.X.X rsync --server -sulogDtpre.iLsf\r\nroot      7222  0.0  0.0  12300   424 ?        Ss   06:17   0:00 rsync --server -sulogDtpre.iLsf\r\n```\r\n\r\nIs the 1st process running a full scan of my folder?? \r\n\r\nShould I tweak \"MaxProcesses\" or \"MaxDelays\"?\r\n\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/axkibe/lsyncd/issues/comments/269625439","html_url":"https://github.com/axkibe/lsyncd/issues/415#issuecomment-269625439","issue_url":"https://api.github.com/repos/axkibe/lsyncd/issues/415","id":269625439,"user":{"login":"axkibe","id":495407,"avatar_url":"https://avatars.githubusercontent.com/u/495407?v=3","gravatar_id":"","url":"https://api.github.com/users/axkibe","html_url":"https://github.com/axkibe","followers_url":"https://api.github.com/users/axkibe/followers","following_url":"https://api.github.com/users/axkibe/following{/other_user}","gists_url":"https://api.github.com/users/axkibe/gists{/gist_id}","starred_url":"https://api.github.com/users/axkibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axkibe/subscriptions","organizations_url":"https://api.github.com/users/axkibe/orgs","repos_url":"https://api.github.com/users/axkibe/repos","events_url":"https://api.github.com/users/axkibe/events{/privacy}","received_events_url":"https://api.github.com/users/axkibe/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T12:44:25Z","updated_at":"2016-12-29T12:44:25Z","body":"No, you need update, otherwise you have loop, thats why I asked.\r\n\r\nHaving multiple \"finished a list\", message is normal, since you have increased maxProcesses aboth the default 1, so you have two rsyncs running in parallel.\r\n\r\nFor me everything looks as designed and working.\r\n\r\nOtherwise try turning on \"Delay\" messaging to see why Lsyncd gives said file lists to rsync and there is something happening the way you didn't want to."}}
{"actor":{"display_login":"axkibe"}}