Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: randomising file order returned by File::Find

by BrowserUk (Pope)
on Mar 01, 2011 at 22:23 UTC ( #890848=note: print w/ replies, xml ) Need Help??


in reply to Re^2: randomising file order returned by File::Find
in thread randomising file order returned by File::Find

The downside of that mechanism is control. If, as the OP says later, the need to suspend or terminate the processing early arises, then you're stuck with starting the whole process over from scratch. Same thing if the number of workers varies up or down.

With server/clients approach, pause and restart the clients, or knock out half the clients--or double them--and the processing continues without duplication and automatically redistributes to accommodate the changes.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: randomising file order returned by File::Find
Re^4: randomising file order returned by File::Find
by jeffa (Chancellor) on Mar 01, 2011 at 22:27 UTC

    "... then you're stuck with starting the whole process over from scratch."

    True ... but Hadoop scales linearly, meaning what used to take multiple hours or days to run now only takes a few hours, maybe even a few minutes. Such termination becomes trivial. I do not know how familiar you are with Hadoop/cloud computing.

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    
      True ... but Hadoop scales linearly, meaning what used to take multiple hours or days to run now only takes a few hours, maybe even a few minutes.

      So does the server/clients scheme. The difference is in the level of control.

      Such termination becomes trivial.

      For some types of processing. For other types, the cost of throwing away the results of a job when it is 99% complete and starting over can be very high.

      I do not know how familiar you are with Hadoop/cloud computing.

      Not so much. But it isn't so different with stuff I was doing 15 years ago on a server farm.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        "So does the server/clients scheme. The difference is in the level of control."

        Right, with Hadoop, all that hard work is done for you. Why roll another wheel?

        "Not so much. But it isn't so different with stuff I was doing 15 years ago on a server farm."

        Except that now the hardware can (realistically) support the volumes of data being processed. You should check it out.

        jeffa

        L-LL-L--L-LL-L--L-LL-L--
        -R--R-RR-R--R-RR-R--R-RR
        B--B--B--B--B--B--B--B--
        H---H---H---H---H---H---
        (the triplet paradiddle with high-hat)
        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2014-10-21 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (95 votes), past polls