Reply to Re: splitting a script over two servers

Your name:

Reply:


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?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация