Hints for WebStar ServerMasters

(Note: We are not running WebStar 5, so these hints don't apply.) WebStar 4.x should be the frontmost process for best server performance. We use PullProcess to pull WebSTAR to the front (just in case we forget to leave it there when we log off from Timbuktu). This allows WebSTAR to get a very high percentage of the processor's time. FileMaker Pro, especially with Web Companion enabled, is a processor hog. We've found that we can fine-tune processor time allocation by using Peek-a-Boo to give WebStar maximum processor time, leaving FileMaker at normal.
We have Rumpus set to be "well-behaved." Because we run a bunch of CGIs, we have WebStar's CGI/Server setting more toward CGI.

Following is Steve Crisp's list of recommendations for webmasters. His opinions are his own, but he has lots of good advice here, particularly if you're running WebStar & MGI. I'm pretty sure he won't mind my copying it here:

"This is long and it is late. I completely disclaim all spelling and grammar errors. Enjoy... Through years of experience with WebStar, I have found the following set up to be the most stable. I'm gonna go screen by screen in the WebStar admin and cover all applicable settings. Then I'm gonna have some fun.

Now, my plugins folder... Here is what is in that folder:

Now some OS settings...

Experiment. Get it down to the bare minimum so that the machine will still boot and serve properly. If you take out too much or the wrong thing, the machine will not boot or serve. If that happens, put it back in. If you use Software Update, watch out for the security oriented extensions; they have to be in there. Who needs the GL or sprockets stuff. Get ruthless.

How about backup strategy... Here's what I do: I have two internal drives, one is twice as big as the other. I used to use externals for this, but we have had problems with external fans where the drive overheats and blows up. Also use no more than 7200 RPM drives and try to use 5400 RPM drives. They run much cooler and last a lot longer. Never use a 10,000 RPM drive on a machine that never gets turned off. We have lost every single 10,000 RPM drive that has ever been hooked up to a server. You're not doing video production here; you don't need it. Drive one: Three partitions. Partition one- system software and other applications including that WebStar admin and log folder noted above. Partition two- WebStar root folder and aliases to client folders. Partition three- Client folders. Set the partition size to whatever is comfortable, but don't forget that under MGI2, the data files are stored in the WebStar root partition so give it a bunch of room to grow. We run 4 gig primary drives with the partitions set at 1024 megs for apps, 1024 megs for WebStar, and the balance for client files. That also gives plenty of room for the WebStar logs to grow. By the way, I recommend against archiving WebStar logs automatically. Some folks have had huge problems with doing so, though some folks have no problems at all. it is just as easy to turn off logging temporarily, rename and move the log, then turn back on logging which automatically recreates a log file. I usually pull any given log when it hits about 200 megs and move it over to the machine we have dedicated to stats. We currently have over four gigs of log files to process each month; your mileage may vary. Remember also that if your log file should fill up all the available space on the drive, WebStar will stop serving files even though the screen looks like it is serving files. Very bad. Give those logs lots of room to breath. Drive two: Six partitions in pairs equal in size to the partitions on drive one. And use HFS+ on your drives. It used to suck, but it has been fixed and works well with System 9.1. Occasionally the HSF+ wrapper will come unbound and you need to fix it with Apple Disk First Aid, though I have not seen that happen since we moved from OS 9 to OS 9.1 so I think they have fixed that issue. Keep the sector size at default unless you really know what you are doing. On backup day one, I slurp the entire contents of drive one to the first set of respective partitions on drive two. On backup day two, I slurp the entire contents of drive one to the second set of respective partitions on drive two. On backup day three, I blow out the first set of backup partitions and slurp the entire contents of drive one over to drive two. And so on. That way I always have two backup copies of the live files -- one completely current and the other several days old. We do not use RAID because there really is no good software RAID systems and a hardware RAID solution is simply too expensive. Plus, with RAID if you make a mistake on a live file, that error is immediately copied over to the backup. Kinda defeats the purpose of having a backup. The timing of the backups is subjective and depends on the overall FTP traffic that has occured since the last backup. For instance, I just backud up the entire system 4 Feb. Prior to that, I backed up 22 Jan since there was very little overall system changes between the two. Things have picked up some and I will do another backup probably this Saturday. During very heavy change seasons like at Christmas, I will back up every day or two. By the way, the entire process takes about four hours and I do everything manually to ensure that it is done absolutely properly. I do not trust automated backup systems at all. One glitch and the whole thing hoses. Many folks are comfortable with writing Apple Scripts to automate the process, though. It is up to you and your comfort level. Recovery is as follows: If the primary drive hoses, I boot off the latest backup drive and the machine is up and running in about three minutes. If the machine completely hoses, I remove the drives and place them in a backup machine that is completely ready to go except for the drives. Back up and running in about 15 minutes. We used to use completely external drives which could be simply unplugged if a machine exploded so you did not have to physically install the drives in the new machine, but again we have had problems with external cases overheating. Also, we have never actually lost a motherboard on a live server. Granted, there is not complete redundency in the event of failure, but doing it the way I do allows me to keep individual hosting account costs to a minimum. If I had full hot swap redundency as well as hardware RAID in place, a basic account would cost about $50 per month and a commerce account would be between $150 and $300 per month plus dramatically increased set up fees. Remember, ultimately the responsibility to back up your files (including database which is why we made it so easy to save as a tab delimited file in MGI 2) is yours. I can generally recover 100 percent of any loss quickly, but there will be times when certain things get lost. Fortunately in almost six years, we have yet to lose any data on a web server apart from one ignorant mistake which I really don't want to talk about. Keep in mind something else about databases in MGI 2 as well. When something gets written to a database, you can also write it to a text file. Under the most dire of circumstances, the integrity of a text file is better than that of a database file.

The machines themselves are all the same:

Steve Crisp's comments are not copyrighted by me, despite the claim in the footer below. ;)


Copyright 2002-2005, InterNetyx, All rights reserved
Hits Since 8/00