Log in

View Full Version : Dom3Minions.com down


Gandalf Parker
April 17th, 2010, 02:39 PM
Sorry. We had a power blink here. First time in a couple of years. And hopefully the only one for a coupe more (knock on virtual wood).

On the other hand, the server came right back up and sent a text message to my cell phone saying it had rebooted. A couple of dozen domains, 100's of email accounts, 2 online worlds, and 70 dominions games were back up and running at the most between 10 and 15 minutes after the power blinked. (altho Im still waiting for my cable tv to come back :(


Gandalf Parker
--
I used them, they used me
now I am an ISP.
With a knick-knack paddy-whack
debian linux clone
I am now my /root at /home

llamabeast
April 18th, 2010, 03:31 PM
Nice work, that restart behaviour sounds extremely pleasing. :)

Gandalf Parker
April 18th, 2010, 10:05 PM
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.