The Official Kountr Blog

Just another WordPress.com weblog

Archive for March 2009

Note To Self

leave a comment »

Kountr DB is restored on the new server. Django is installed and the Kountr source has been checked out from the new repository. Looks like I have some permissions issues.

I’ll have to clean this up later this week.

Written by Michael Artemiw

March 24, 2009 at 7:23 am

Posted in Uncategorized

The WebServer

leave a comment »

Last night I installed Apache, got it running, moved all the content directories to the EBS.

With Apach and Postgres I am not entirely confident that I have moved everything that is absolutely necessary. I need to do more reading. It only takes on config, or log file and my AMI is no longer disposal as I am intending.

I read up on how to handle multiple websites with Apache. This looks pretty easy.

I am beginning to think that there will be money to be made selling virtually hosted websites on top of ec2. Consider that the current virtual hosting for Kountr costs about six bucks a month. The smallest instance on ec2 will cost <$90 a month. The question really, is can I host 30 low traffic websites on the smallest ec2 instance.

I should do some research on how many page requests the various ec2 instances can handle per month.

The other thing I was going to mention is that a wrote a quick bash script to umount my ebs and bundle/register my AMI.

Written by Michael Artemiw

March 21, 2009 at 3:00 pm

Posted in Uncategorized

Tagged with

Interesting Quirk

leave a comment »

When I created my AMI last night I had an EBS mounted at /data. I figured this was the way to do it, so that when I rehydrated later the mount would already be in place.

Today I rehydrated, tweaked some Postgres directory permissions and everything was good to go. I went to unmount /data so that I could terminate the VM and ran up against a wall. /data was not a mount point.

I went and mounted /dev/sdf and created a file and then checked /data. The file was not there.

Conclusion

Creating an image with mounts attached results in the data being a part of the AMI. So always remove EBS mounts unless you want the data to get included.

Written by Michael Artemiw

March 18, 2009 at 7:16 am

Posted in Uncategorized

EBS and Flows

leave a comment »

Tonight I am working on moving my DB storage into an EBS volume. Setting up the volume was pretty easy. Using the AWS console to create and attach the volume. Remember to use mkfs before mounting.

mkdir /data

mkfs /dev/sdf

mount /dev/sdf /data

su – postgres

/etc/init.d/postgresql stop

mv /var/lib/pgsql /data/pgsql

 

modified /etc/init.d/postgresql to point at new dir for PGDATA, PGLOGS

 

/etc/init.d/postgresql start

And everything seemed to work. This is enough work for one night. I am packing up my AMI and shutting this all down.

Written by Michael Artemiw

March 17, 2009 at 7:28 am

Posted in Uncategorized

Head in the Clouds

leave a comment »

I spent most of today trying out AWS. I am really impressed.

I created a basic AMI setup for Django. Then I stored my AMI in S3 and registered it. I then created multiple instances of it. All worked well.

I tested file transfer between the instances and was getting ~15Mb/s which suprised me.

My next step will be to refine my AMI so that all the basic software for my websites is on the AMI and the content and webapps are stored in an EBS volume.

I expect I will be writing more on this topic in the next little while.

Written by Michael Artemiw

March 16, 2009 at 6:47 am

Posted in Uncategorized

Going Into the Cloud

leave a comment »

So using Amazon’s Web Services isn’t my first cloud experience. I have tried out GoGrid long enough to like the idea but see enough gaps that I couldn’t use it for the intended purpose.

I am checking out AWS because I am looking to host a couple of sites and figure this was better, given the root access, than running multiple websites through another provider.

Three initial reactions;

  1. AWS doesn’t seem to work with Chrome, it was constantly asking me to login (Could be my settings in Chrome)
  2. Some of the AJAX pop-up dialogs in AWS are taller than my Acer Aspire One‘s screen, with no option to scroll (It turns out you can use the arrow keys to scroll)
  3. AWS is still at the raw bits stage, and they are doing that well. I would love to see a start page for beginners that hides some of the initial complexity

Overall my feeling is that there is a lot of opportunity to add value utilizing AWS and delivering something new to users. I will use Kountr to learn more, I am sure some new ideas will come up.

Note to self; this article may come in handy.

Written by Michael Artemiw

March 15, 2009 at 5:27 pm

Posted in Uncategorized

SVN Checksum Errors

leave a comment »

I haven’t touched my SVN repository in a long time. Now when I try to create a new branch and check it out I get a checksum error. 

Looking around a bit suggests that this can be caused by SVN bug or hardware issues. Either way I need to find out how to repair the file.

Too late now but my next post should be a description of how to solve this problem.

Written by Michael Artemiw

March 13, 2009 at 7:30 am

Posted in Uncategorized

SVNServe

leave a comment »

I always forget how to do this so I thought I would post about it.

svnserve -d –listen-host http://www.kountr.com -r .

Written by Michael Artemiw

March 12, 2009 at 5:50 am

Posted in Admin