View Single Post
  #3  
Old April 18th, 2010, 10:05 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Dom3Minions.com down

OUCH lesson learned.

I REALLY should have taken down some of those games and spread out the 24 hour timers. When the machine rebooted it restarted all the games at the same time. The next day about 50 games hosting at the same time on Dom3Minions.com drove my load overage thru the roof. It didnt crash but Im pleasantly surprised that it didnt.

For those interested...
I wish this sounded more impressive than it will. But for those on the same path I will lay this out.

Ive long ago scripted my games. Whenever anyone requests a game I copy a script from another game and edit it. Whenever I see some of the always open public games have been taken I run a script to create another to take its place. Many of those involved special variables unique to that game, or even randomly decided features. So restarting games was rather a pain.

Recently I had one of the head-slapping *DOH* moments. While the script creating the game is running have it record the settings. So now each script writes the long start command to the game directory into a script named restart.sh

So now, when the machine reboots, all that needs done is
for all gaym in savedgame/*
do
$gaym/restart.sh
done

But now that is TOO efficient and quick.
Im going to work on prioritizing the games and spread the restarts out abit.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote