Posted by Steve on 04/12/07 18:01
"bleen" <bleen67@gmail.com> wrote in message
news:1176393365.880214.123040@y80g2000hsf.googlegroups.com...
| can someone point me in the right direction here..
|
| I have a script (essentially a giant for loop) that takes about 20
| mins to run on my server. I want "split" this process onto a second
| server by doing something like this:
|
| system("/srv1/path/to/php /path/to/script.php ".$arg1." ".$arg2." > /
| dev/null &");
| system("/srv2/path/to/php srv1/path/to/script.php ".$arg1." ".$arg2."
| > /dev/null &");
|
| ideas? thoughts? questions? comments? concerns? jokes?
depends on what you're doing, don't it?
i'm sure you've already tried to split the work load on the SAME server
already...assuming the nasty thing you're wanting to avoid here is the 20
minute wait time. if not, try that...let your os optimize the processing.
other than that, what are you doing that takes 20 minutes...a foreach on a
1mb array on a 100mz i386 w/ 4mb of ram?
Navigation:
[Reply to this message]
|