{"action":"created","issue":{"url":"https://api.github.com/repos/trapexit/mergerfs/issues/186","labels_url":"https://api.github.com/repos/trapexit/mergerfs/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/trapexit/mergerfs/issues/186/comments","events_url":"https://api.github.com/repos/trapexit/mergerfs/issues/186/events","html_url":"https://github.com/trapexit/mergerfs/issues/186","id":125625316,"number":186,"title":"FR: Extra policies for use with files that exist on multiple source drives","user":{"login":"meersjo","id":1178044,"avatar_url":"https://avatars.githubusercontent.com/u/1178044?v=3","gravatar_id":"","url":"https://api.github.com/users/meersjo","html_url":"https://github.com/meersjo","followers_url":"https://api.github.com/users/meersjo/followers","following_url":"https://api.github.com/users/meersjo/following{/other_user}","gists_url":"https://api.github.com/users/meersjo/gists{/gist_id}","starred_url":"https://api.github.com/users/meersjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meersjo/subscriptions","organizations_url":"https://api.github.com/users/meersjo/orgs","repos_url":"https://api.github.com/users/meersjo/repos","events_url":"https://api.github.com/users/meersjo/events{/privacy}","received_events_url":"https://api.github.com/users/meersjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T14:48:09Z","updated_at":"2016-01-08T16:25:58Z","closed_at":null,"body":"I would like to propose the following extra policies:\r\n* rr (round robin): if a file exists on multiple source points, rotate through them on every access.\r\n* loc (lowest open count): pick the file instance that has the lowest open file descriptors on it. This might benefit from a sub-policy to specify behaviour when multiple instances have the lowest count.\r\n\r\nI realise that both of these have quite a few potential problems, and understand that they might get refused or put on the long track :-)\r\n\r\nMy intended usecase is a (read-only) mount of multiple identical source drives, in order to optimally balance read throughput of the same files.\r\n\r\nIn more detail; I use the linux davfs implementation; but that is unfortunately limited to a single operation at a time. Being able to stick multiple instances of the same mount under a MergerFS instance would greatly increase usability, as wel as throughput on networks with connection-based throttling."},"comment":{"url":"https://api.github.com/repos/trapexit/mergerfs/issues/comments/170046993","html_url":"https://github.com/trapexit/mergerfs/issues/186#issuecomment-170046993","issue_url":"https://api.github.com/repos/trapexit/mergerfs/issues/186","id":170046993,"user":{"login":"meersjo","id":1178044,"avatar_url":"https://avatars.githubusercontent.com/u/1178044?v=3","gravatar_id":"","url":"https://api.github.com/users/meersjo","html_url":"https://github.com/meersjo","followers_url":"https://api.github.com/users/meersjo/followers","following_url":"https://api.github.com/users/meersjo/following{/other_user}","gists_url":"https://api.github.com/users/meersjo/gists{/gist_id}","starred_url":"https://api.github.com/users/meersjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meersjo/subscriptions","organizations_url":"https://api.github.com/users/meersjo/orgs","repos_url":"https://api.github.com/users/meersjo/repos","events_url":"https://api.github.com/users/meersjo/events{/privacy}","received_events_url":"https://api.github.com/users/meersjo/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T16:25:58Z","updated_at":"2016-01-08T16:25:58Z","body":"The latter, yes - that's what I'm doing now, but simply starting two jobs at once, on on each mount point. With a single mount point I could take advantage of parallelism in the applications themselves, greatly simplyfying configuration and management.\r\n\r\nAs I said, I realize this is a considerable edge case; I'm merely hoping that there'll be enough overlap with other handling of duplicate files to make it interesting :-p\r\n\r\n"}}