So I get a reply to my request for more information and here was DreamHost’s reply:
Well, each shell/ftp user has their own resource quota…so basically, all of your sites are sharing a quota at this point, as well as your shell user…so if your nano session happened to be the one process that crossed the threshold, then it would be the one killed. One thing you might try is creating another shell/ftp user, and setting the site to run under the new user. This would give the entire site it’s own resource quota, and probably help to prevent these errors in the future.
As far as the process watcher, the threshold is reasonable, and it’s a VERY simple program…just a couple of IF statements. IF overall server load is above a certain level, enforce the rules. IF a user reaches a certain CPU/Memory level, kill the offending process. Not much to go wrong…
Let me know if you have any other questions.
Thanks!
Jeffrey
So I’ve decided to split my blog and gallery into 2 users and then I’d get twice as much CPU power (if what he says is true). Turns out I can actually create upto 75 user accounts.
Unfortunately there’s no way to set users to share directories, so I ended up creating a new subdomain and copying stuff over. When you visit the old gallery link:
http://www.krunk4ever.com/gallery/,
You’ll automatically be redirected to:
http://gallery.krunk4ever.com/.
I originally was hoping to put it in the 1st level, but gallery was giving me some problems if I didn’t place it inside /gallery, since it was originally inside gallery.
I somewhat got the 1st level thing working by fixing my .htaccess file and in config.php, set a baseUri:
$gallery->setConfig(‘baseUri’, ‘/main.php’);
The process was actually less painful than I originally thought. I had imagined hacking the database and having to do a bunch of random fixes.
The only thing I had to do was copy over 2 directories:
/gallery (where the website code was located)
/g2data (where the images and data were actually stored)
In config.php, I had to update data directory:
$gallery->setConfig(‘data.gallery.base’, ‘/home/krunk_gallery2/g2data/’);
When I loaded gallery, it asked me to run through the update wizard.
The initial setup failed because the web user didn’t have write access to the g2data directory. It suggested that I had chmod 777 the g2data directory. After I did that, that error went away.
The last thing I did was update my .htaccess to do all my redirection by adding this line:
Redirect permanent /gallery/ http://gallery.krunk4ever.com/gallery/
Afterwards, everything just worked. If you hit into any problems with the gallery or my blog, please let me know.