Host a speed test on your website

Want to know what your internet speed is from my perspective? Going to dedicated sites like Speedtest.net and others to test our connection speed is great for the best case scenario but those are dedicated servers and usually geographically ideal.

Want a sample of what your (somewhat) real-world speed is form my servers perspective? Ok, well its not my server, it’s a Dreamhost server but you get the point. This is an interesting idea, I might make this a widget.

Provided compliments of Speedtest mini (http://www.speedtest.net/mini.php)




Speedtest.net Mini Bandwidth Speed Test


Speedtest.net Mini requires at least version 8 of Flash. Please update your client.




Hosting a static website in an Amazon S3 bucket

I had previously setup a Windows Server 2008 Micro instance on AWS and ran a small website using IIS. I don’t believe Micro instances are a good choice with any flavor of Windows server because of the 613mb of RAM limitation which is quickly consumed by the OS. I don’t have the same issue with other similar sites I run on Ubuntu AMIs with Apache which is why I equate the performance issues to Windows only instances.

I decided I would give the S3 Bucket + Website combo a try in the hopes of doing away with this instance and improving the sites performance, all for less than the ~$15/month a 24/7 micro instance costs once you have exhausted the free period.

I created a new S3 bucket and named it demo.jeremyharlow.net, using this naming convention with the subdomain is important for creating a  CNAME later, you won’t be able to point a subdomain to your S3 bucket if you name it something else like jeremyharlow.net, the CNAME you intend to use, if you intend to use one, must match the bucket name.

Create an Amazon S3 Bucket

 

Once you create your bucket you need to enable the website feature and set the index file.  Right click your bucket and select properties.

 

4

From here you need to navigate to the bucket and upload your website, ensuring that you have the index document you specified above in the root  of the bucket.  The only issue I ran into was that each individual image file & .html file need to be granted read/view permissions, a tedious process if you have a lot of files which, I did.  This led me to the CloudBerry Explorer for Amazon S3.

The free version is all you need, available here (http://www.cloudberrylab.com/free-amazon-s3-explorer-cloudfront-IAM.aspx) this nifty little app lets you manage your S3 buckets with ease, including the bulk changing of file permissions.

The only oddball issue I ran into was that I had an image file called index.png, which was called inside my index.html file for a background, the image wouldn’t load so I renamed it to home.png and it worked just fine, not sure why I couldn’t name the file index.* but this quick fix worked so no harm done.

Everything should work if you use the endpoint address you should have noticed when setting up the bucket, but if you want to create a CNAME go to your DNS and create the record, this is why I used demo.jeremyharlow.net as my S3 bucket because I wanted that to be my CNAME, if I had used anything else then it wouldn’t work.

Free/inexpensive SQL backup tool, with built in Amazon S3

I was browsing recently for a simple tool that would schedule full and differential backups for a dev sql server standard running on AWS, which I think it’s important to note, even the Standard Small (m1.small) will still set you back $0.629/hr.  This I may fork over the money for a reserved instance since I anticipate using it for at least a year.

In any case, I was originally going to send these to Google Drive, for no particular reason other than familiarity and an overall lack of importance/reason (other than economics) to keep this in-house.

I came across SQLBackupAndFTP (http://sqlbackupandftp.com/) and noticed the support for Dropbox and Google Drive so I decided to give it whirl.  Unbeknownst to me, this app also has support for AWS S3 Buckets.  I think it’s important to also mention, the free version only supports FTP, Dropbox, or network folders, the lite version adds support for Google Drive, and the Standard has S3 support.

backupsql

For the past two weeks this has worked flawlessly, I have not tried the built in restore functions but I have a sneaking suspicion at some point in the future I will need to restore this DB.

amazon

There is also support for Dropbox, Google drive, FTP, and network drives.

destinations

I opted to purchase the professional version although the standard version for $10 less also supports S3 buckets.