Posted by drupalninja99 on May 16, 2010 at 12:39am
I am trying out the mercury/pantheon install script on linode.com which is really cool because it sets everything up for you. Anyone else tried this? I was wondering what other's experiences were. The pantheon script is one of the most deployed scripts so a lot of people must be using this.
My question regarding converting an existing site to pantheon is are there tutorials/blogs on doing this? From the drupal side is it just a matter of installing/configuring some additional modules or is there something magical that the mercury install profile does that can't be easily retroactively done on an existing site?

Comments
got it converted but having problems...
I think it's environment-based, maybe I just got greedy. Running $30/mo linode with 540mb, I know the min to run mercury/pantheon is 512mb, maybe that's too close for comfort. keep getting 'cannot connect' errors
Follow me on twitter: @drupalninja
I have had excellent success
I have had excellent success using the StackScripts to install Pantheon on Linode. Make sure you copy all your modules and themes from your current server over to your new Linode server and compare the settings.php in the default pressflow installation with your settings.php for your site. The varnish and memcache settings are near the bottom the file.
ya i got it to work
I just copied over pressflow and the modules that came with mercury and compared the settings file like you said. So far everything is working great, I'm thrilled bc all the server stuff was handled for me. I also installed boost and authcache and so I've got a lot of caching going on. It's only on a $30/mo 540mb plan, here was my only issue:
The /etc/mercury/config_mem.sh script has some logic for determining how much RAM you have on the server and will adjust the various caching settings based on RAM. That's great except I found out after my server kept crashing that the RAM was being hardcoded to like 1.6 GB or something like that. So once I found out that this script a) existed and b) the hardcoded line I took that out and now it's working great bc the mercury settings reflect the actual amount of RAM I have.
I am extremely pleased with this who linode stackscript thing, I'm surprised the same sort of thing is available other places, like rackspace.
Follow me on twitter: @drupalninja
what did you change?
What did you change in config_mem.sh for your Linode 540?
there was a line that
there was a line that hardcoded the RAM, I don't know where it came from, I just commented it out, it was probably added by the guy who set up the script? Don't know how/why it got there.
Follow me on twitter: @drupalninja
Well, I'm the author of the
Well, I'm the author of the script, and I didn't put it there :)
That setting is supposed to be determined automagically by bcfg2, so if that's not working right, I'll file a bug against it.
then you're my hero
Here is the line:
Get RAM size:
RAM=$(grep MemTotal /proc/meminfo | sed 's/[^0-9]*//g')
RAM=16753487
For some reason, I don't know where it got hardcoded, but as you can see I commented it out and now it's being automatically detected as it should be.
Follow me on twitter: @drupalninja
Did you craft the script from
Did you craft the script from scratch or did you port it from somewhere? I have looked around for another mercury script that could be used on like rackspace, I haven't found one yet. Seems like someone could convert your script to a bash script to be used on rackspace/slicehost
Follow me on twitter: @drupalninja
I created it from scratch
From scratch, but, it already is a bash script: http://www.linode.com/stackscripts/view/?StackScriptID=353
Linode just runs it on first boot as root, and that makes it a "StackScript". It also borrows some functions from a library, but that's a bash script as well.
so if i have a clean ubuntu
so if i have a clean ubuntu install on rackspace and i want to run this script, do i have to make any modifications for it to work?
Follow me on twitter: @drupalninja
re: so if i have a clean ubuntu
Good question - I don;t know how well the stakscript would work on non-linode.
I do know you can use the instructions at http://groups.drupal.org/node/50408 (Mercury 1.0 on Jaunty) or http://groups.drupal.org/node/70268 (Mercury 1.1 Beta on Lucid) to install on rackspace.
Hope this helps,
Greg
--
Greg Coit
Systems Administrator
http://www.chapterthree.com
Bug fixed
Just a note that Greg found and fixed the issue: https://bugs.launchpad.net/pantheon/+bug/584953
sounds good!
sounds good!
Follow me on twitter: @drupalninja
An easy migration path
Update all modules in your existing site, just to reduce db disparities.
Create a database dump of your site. Be sure to include the DROP TABLES option.
Create your Pantheon instance and run through the Pantheon/Mercury installation process. (If you choose Pressflow you will not get all the caching options set and will have to do them by hand to enable them (including checking the settings.php code noted above).
Once you get to the stock "Welcome to your new Drupal site" screen, dump your database. ABC.
Copy into sites/all/modules your contrib modules. Double-check that you don't have any conflicts with any modules extant under the profiles folder. Copy in your themes into sites/all/themes. And don't forget to copy in your files uploads folder or you'll have some broken images/links.
Insert your original site's backed up database dump into the new database. Unless you have modules overlapping with what Pantheon comes with, you should have no problems here.
Clear cache. Run update.php just for comfort purposes. You should be good to go.
PINGV | Strategy • Design • Drupal Development
also re-enable default Mercury modules
Once you get done and the database has been imported, you may also want to re-enable the modules that are turned on by default in Mercury: Apache Solr framework, Apache Solr search, & Varnish.