• File transfer for fastness

    From t.sathyanarayanan@gmail.com@21:1/5 to All on Sun Jun 14 06:43:31 2020
    Hi,

    Im trying to find best solution for parallel file transfer, which is event driven
    after the file written to a directory with extension like .done, means the file is ready for file transfer.


    1. Monitoring the directory for .done is cpu cycle time waster
    2. running a cron on particular interval to transfer files will not help fasteness to the data.



    what are other options existing for file transfer.



    Thanks,
    Sathya

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jorgen Grahn@21:1/5 to t.sathyanarayanan@gmail.com on Sun Jun 14 14:39:22 2020
    On Sun, 2020-06-14, t.sathyanarayanan@gmail.com wrote:
    Hi,

    Im trying to find best solution for parallel file transfer, which is
    event driven after the file written to a directory with extension
    like .done, means the file is ready for file transfer.

    1. Monitoring the directory for .done is cpu cycle time waster
    2. running a cron on particular interval to transfer files will
    not help fasteness to the data.

    I cannot understand what you want to do, or how you want to do it;
    you would have to explain better.

    what are other options existing for file transfer.

    Personally I always use rsync over ssh. Unless I download files over
    http, then I use firefox or curl. Bittorrent is another option.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Edwards@21:1/5 to t.sathyanarayanan@gmail.com on Mon Jun 15 01:31:12 2020
    On 2020-06-14, t.sathyanarayanan@gmail.com <t.sathyanarayanan@gmail.com> wrote:

    Im trying to find best solution for parallel file transfer, which is
    event driven after the file written to a directory with extension
    like .done, means the file is ready for file transfer.

    1. Monitoring the directory for .done is cpu cycle time waster

    2. running a cron on particular interval to transfer files will not
    help fasteness to the data.

    https://man7.org/linux/man-pages/man7/inotify.7.html https://en.wikipedia.org/wiki/Inotify

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jorgen Grahn@21:1/5 to Grant Edwards on Mon Jun 15 08:41:59 2020
    On Mon, 2020-06-15, Grant Edwards wrote:
    On 2020-06-14, t.sathyanarayanan@gmail.com <t.sathyanarayanan@gmail.com> wrote:

    Im trying to find best solution for parallel file transfer, which is
    event driven after the file written to a directory with extension
    like .done, means the file is ready for file transfer.

    1. Monitoring the directory for .done is cpu cycle time waster

    2. running a cron on particular interval to transfer files will not
    help fasteness to the data.

    https://man7.org/linux/man-pages/man7/inotify.7.html https://en.wikipedia.org/wiki/Inotify

    Yeah, but best is to avoid, if possible, having to detect changes to
    the file system. I'd still like to understand what the OP is trying
    to do ...

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sathya Narayanan Thangavelu@21:1/5 to Jorgen Grahn on Mon Jun 15 02:14:15 2020
    On Sunday, 14 June 2020 20:09:24 UTC+5:30, Jorgen Grahn wrote:
    On Sun, 2020-06-14, t.sathyanarayanan@gmail.com wrote:
    Hi,

    Im trying to find best solution for parallel file transfer, which is
    event driven after the file written to a directory with extension
    like .done, means the file is ready for file transfer.

    1. Monitoring the directory for .done is cpu cycle time waster
    2. running a cron on particular interval to transfer files will
    not help fasteness to the data.

    I cannot understand what you want to do, or how you want to do it;
    you would have to explain better.

    what are other options existing for file transfer.

    Personally I always use rsync over ssh. Unless I download files over
    http, then I use firefox or curl. Bittorrent is another option.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .




    Thanks for your help.


    we have a distrubuted systems which collects peta bytes of data and deliver the data to netstorage, the problem we have is transmission of files at faster rate, the one problem we sees as soon as the file comes in, we are not delivering the data, we
    have to wait for cron to run and pick those files and to deliver netstorage, the problem in cron is we schedule a time to run but practically this will lead to big data backlog, my question here is there any event based for monitoring file system to
    initiate the job as soons as files that comes into the directory, like (epoll mechanism)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jorgen Grahn@21:1/5 to Sathya Narayanan Thangavelu on Mon Jun 15 11:42:30 2020
    On Mon, 2020-06-15, Sathya Narayanan Thangavelu wrote:
    On Sunday, 14 June 2020 20:09:24 UTC+5:30, Jorgen Grahn wrote:
    On Sun, 2020-06-14, t.sathyanarayanan@gmail.com wrote:
    Hi,

    Im trying to find best solution for parallel file transfer, which is
    event driven after the file written to a directory with extension
    like .done, means the file is ready for file transfer.

    1. Monitoring the directory for .done is cpu cycle time waster
    2. running a cron on particular interval to transfer files will
    not help fasteness to the data.

    I cannot understand what you want to do, or how you want to do it;
    you would have to explain better.

    what are other options existing for file transfer.

    Personally I always use rsync over ssh. Unless I download files over
    http, then I use firefox or curl. Bittorrent is another option.
    ...

    we have a distrubuted systems which collects peta bytes of data and
    deliver the data to netstorage, the problem we have is transmission
    of files at faster rate, the one problem we sees as soon as the file
    comes in, we are not delivering the data, we have to wait for cron
    to run and pick those files and to deliver netstorage, the problem
    in cron is we schedule a time to run but practically this will lead
    to big data backlog, my question here is there any event based for
    monitoring file system to initiate the job as soons as files that
    comes into the directory, like (epoll mechanism)

    I think I see. Yes, that's the Inotify mechanism someone else wrote
    about.

    I think it would be better to avoid that (files appearing in a
    directory as an IPC mechanism) but I can see how design decisions can
    make it unavoidable.

    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)