AV-Looks
Watching and Wondering

Managing dispatch.fcgi processes

Posted by Andrew Thu, 15 Jun 2006 23:55:00 GMT

Rails committer Jamis Buck recently explained in this post why it is important not to use static FastCGI processes on shared webservers. AVLUX took Jamis’ helpful guidance and used it as a starting point to enable all its Rails hosting customers to manage their own FastCGI processes

At the end of this post Jamis writes:

“Note, however, that a reboot of the machine hosting your account will require you to run the spawn scripts for your applications again… I’m sure there’s a handy solution for that floating around somewhere, but I don’t know it offhand.”

At AVLUX this is how we facilitate our Rails developers managing their own dispatch.fcgi processes, and ensuring that they all run at startup:

Read more...

Posted in , ,  | Tags , , , ,  | no comments | no trackbacks

Backing up MySQL

Posted by Andrew Sat, 15 Apr 2006 05:30:00 GMT

Back in the day of MyISAM, restoring a MySQL database was as simple as copying files from your backup. No more is this the case with InnoDB. Therefore it is imperative that a good backup strategy includes doing MySQL dumps, comme ca:
# Dump Mysql DBs before backups
user=admin
pass=adminpass
destdir=/var/lib/mysql_dumps

ls -1 /var/lib/mysql | while read db;
do
 /bin/nice -n 19 mysqldump -u admin --password=$pass $db > $destdir/$db.sql;
done 

This is script is incorporated into AVLUX daily backups.

Posted in ,  | Tags , , , ,  | no comments | no trackbacks

Keeping up on the Typo Trunk

Posted by Andrew Fri, 14 Apr 2006 23:49:00 GMT

What is this blog running? Check here

As of 4/14/2006 AV-looks was running Typo trunk revision 1021 on Rails 1.1.2. We applied this patch for fixing default comments.

We have a test version of this blog running in development mode, where we test new Typo trunk revs.

Read more...

Posted in ,  | Tags , , ,  | 1 comment

Running Instiki - Best practices

Posted by Andrew Thu, 16 Feb 2006 00:47:00 GMT

Best practices for running Instiki

Initial setup – prerequisites

  1. Download and install Ruby 1.8.2. In all our experience, later versions of Ruby break Instiki. You can download the source from ruby-lang.org . We recommend building from source (tar zxvf, cd to dir, ./configure, make, make install), though you can certainly install ruby with any of the various package managers out there.
  2. Download and install rubygems . tar zxvf the file, cd into the dir, and run `ruby setup.rb`
  3. run `gem install instiki—include-dependencies`. Besides Ruby 1.8.2, the current Instiki (0.10.2) needs Rails 0.13.1, not higher. A very nice thing about gem is that you can have multiple versions of packages, e.g. Rails 1.0.0 and 0.13.1 installed, and different ruby gems and apps just seem to know what they need.
Read more...

Posted in ,  | Tags , , , ,  | no comments | no trackbacks

Optimizing Rails

Posted by Andrew Wed, 01 Feb 2006 00:47:00 GMT

For web hosts and developers, this is a big issue. If Rails is not managed well, it can become a huge drain on system resources.

Here are some excellent guidelines to review. We welcome comments!

Read more...

Posted in ,  | Tags , ,  | 2 comments