brianpuccio.net

it's dot com

Benchmarking Drupal On Amazon's EC2

Tuesday, April 15, 2008, 7:10pm
Drupal, Amazon, virtualization, xen, cloud computing

amazon's elastic compute cloud, "ec2", provides a flexible and scalable hosting option for applications. while ec2 is not inherently suited for running application stacks with relational databases such as lamp, it does provide many advantages over traditional hosting solutions.

in this article we get a sense of lamp performance on ec2 by running a series of benchmarks on the drupal cms system. these benchmarks establish read throughput numbers for logged-in and logged-out users, for each of amazon's hardware classes.

...

amazon uses xen based virtualization technology to implement ec2. the cloud makes provisioning a machine as easy as executing a simple script command. when you are through with the machine, you simply terminate it and pay only for the hours that you've used.

Automated Patch Testing With Drupal

Thursday, April 10, 2008, 5:46pm
Drupal, linux, virtualization, simpletest module

The script checks out Drupal, sets up a database and settings.php, adds a single record for the admin user with a preset password (admin/potrzebie) and generates some content using Jeff Eaton's patched generate-content.php for devel.module.

The script must be edited for a couple of important values before being run. A future version will probably be smart and check.

Anyway, execute it from the command line as php -e install-drupal.php

http://turmoil.logrus.com/files/test-installer.tar.gz

Next steps:
Installing a patch file.
Installing simpletest.
Running a very simple test.
Extracting patches from project issues.
Auto posting followups to project module.

After that:
Xen! If Boris says it, I'm Right There.

There's also some talk of virtualization in there. I think it is a great idea.

I'm doing something similar locally because I want to get into the swing of participating in the Drupal community after spending so many years on the sidelines. I'm sick of OS X and have a virtualized Linux instance and now I'm looking to automate by way of a shell script that installs Drupal (with the option of specifying versions), installs whatever modules are needed (in case I want to work on a contrib patch), applies the patch and generates some content. After that, I'd play with the site, make sure it worked as it should and then I'd be done. In the event I had to modify anything, a second script to generate an updated patch would be called. Afterwhich, I'd run another script to run a cleanup.

I should even throw in the simpletest things that are mentioned above.

Giving Up On A MAMP Stack

Thursday, April 10, 2008, 5:35pm
Ruby, OS X, linux, image module, virtualization, fusion, apt

I've given up on trying to get a MAMP stack on my local Mac Pro. As beefy as machine as it is, it's not Linux. First, apache didn't work out of the box on OS X. Then, while working on image module, I found out that OS X's PHP doesn't come with GD. (I won't even mention my issues with ruby.)

So I'm going to spend more money on proprietary software (VirtualBox didn't work), most likely VMWare's Fusion so I can run a virtualized instance (or three) of Linux locally. It will take less time, behave the way I expect it to and be a breeze to update, thanks to apt.

Out Of The Box Apache On OS X

Thursday, February 28, 2008, 9:15pm
apache, OS X, linux, virtualization

I figured since I was using OS X and it touts being UNIX compliant that for a local web development sandbox, I'd just use a local install of apache instead of a virtualized Linux install. I thought all I had to do was go to System Preferences, go to Sharing, then tick the checkbox next to Web Sharing and I'd be good to go. This is OS X after all, not some complicated Linux install that requires some arcane knowledge to administer.

Didn't work. Got an access denied when I tried to view my localhost. Fan-fail-tastic.

I went to check the access logs, which I assumed were in /var/log/apache2/error.log but there wasn't even a /var/log/apache2 directory to look in. OK, check out /var/log/system.log. Hmm, this stands out:

No such file or directory: httpd: could not open error log file /usr/logs/error_log

A quick search yields the solution, you need to do a sudo mkdir -p /var/log/apache2 first and make sure the error log is set to log there. (I'm not sure why so many paths are prefixed with /private

While the config file isn't how I'm used to seeing things and the entire a2ensite and a2dissite thing doesn't work this way, it does work. Though I find it really interesting that in the modern Linux distros that I've used, apache worked out of the box, but under OS X, it doesn't.

Onward.

Parallels Or Fusion

Thursday, January 31, 2008, 2:25pm
virtualization, parallels, fusion

Question:
Which do you prefer to use on your Intel Mac?

Seems that VMWare's Fusion is vastly favored.

Virtualization Software

Wednesday, November 28, 2007, 11:50am
Ubuntu, Debian, Apple, OS X, open source, linux, open data formats, mysql, virtualization

It's articles like this that make me look into buying virtualization software. I'm very not used to having a MAMP stack because managing a LAMP stack, as I have been for years, is worlds easier. Sure Apple has Software Update for the OS and various other software offerings of theres, but how much longer until an all encompassing solution like Debian's (and Ubuntu's) apt software and deb file format?

Syndicate

Syndicate content

User login