amazon-ec2

The difficulty of choosing right database for analytics

Hi. I need some help deciding which database we should choose for our project. We are developing a web application that collects data about user's behavior and analyses that (bad explanation, but I can't provide much more detail; web analytics data is one of our core datasets). We have estimated that we will insert approx 200 million ro...

Apache server restart with Ruby on Rails

Hi - I have just restarted my apache server which is running ruby on rails. Now it isn't serving any web pages because I think that some of the Rails related services are not working. Does anyone know how to sort this out? Any help greatly appreciated. More info: error says "Ruby on Rails application could not be started" with Phusion ...

Architecture Decision for Amazon EC: Small Instances or Large?

I'm about ready to launch our company's web site on Amazon's EC2, and have a fairly simple architectural question: Should I use an array of Small instances for the web / application layer, or an array of Large instances? This is a fairly broad question, I realize. So to add some clarifying details: Our application is a public-facing...

nginx error: (99: Cannot assign requested address)

I am running Ubuntu Hardy 8.04 and nginx 0.7.65, and when I try starting my nginx server: $ sudo /etc/init.d/nginx start I get the following error: Starting nginx: [emerg]: bind() to IP failed (99: Cannot assign requested address) where "IP" is a placeholder for my IP address. Does anybody know why that error might be happening? ...

Fedora 8/EC2: ld cannot find library

I'm trying to get gcc to work on an Amazon EC2 image of Fedora 8, but I'm running into an issue with the libraries. ld is not finding -lz -lm -lbz2. I've tried adding -L /lib and -L /usr/lib to the arguments for gcc, but it is still not working. What am I missing? ...

Yum install ffmpeg can't find repomd.xml

Hi - I am trying to install ffmpeg on an EC2 instance, by doing the following: (1) Editing: '/etc/yum.repos.d/dag.repo' and inserting: '[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1' (2) Running 'yum update' I get the error 'http://ap...

A simple data processor running on Amazon EC2

I'm a newbie to the all cloud computing business. I'm implementing a data process application running on a Windows server instance on Amazon EC2. The application would listening to a Amazon Simple Queue for new jobs. should I write a windows server that listens to Simple Queue for new messages, then spawn a process to process data? Kee...

Looking for advise regarding provisioning development environment on the Cloud

Hello. I'd like to prepare a development environment on the cloud. My target platform is Microsoft .Net Based on theory and some basic experiments, I am tilting in favour of Amazon AWS infrastructure. If I purchase a High-Memory On-Demand Instance, I'll be able to deploy 8-20 instances of developer VMs within and also deploy VMs for dat...

HTTP 504 timeout after exactly 120 seconds

I have a server application which runs in the Amazon EC2 cloud. From my client (the browser) I make a HTTP request which uploads a file to the server which then processes the file. If there is a lot of processing (large file ), the server always times out with a 504 backend continuation error always exactly after 120 seconds. Though I ge...

What is Key Name?? while creating RunInstanceRequest for AMI (Amazon machine Image)

Hi, if I set Key Name as 'Default' it throws error that 'Key pair Default does not exist as well from where I can get Key Name, I am using a public AMI. and also have tool ElasticFox..is there any place in this tool where I can found Key Name??? Any Idea?? Thanks ...

EC2 instance scheduler

I would like to ask, what automatic tools are there to start Amazon EC2 instance at 08:00AM and stop it on 16:00 (And where to run it from?) ...

Is there a linode version of EC2 on Rails?

We really like the idea of hosting with Amazon EC2 and the excellent EC2 on Rails, but our cashflow isn't enough to justify a move to EC2. So we've decided to host with linode. Now we're trying to put together the best Rails server build. For those that don't know, EC2 on Rails is an opinionated Ubuntu Linux Server image for Amazon's E...

Planning the development of a scalable web application

We have created a product that potentially will generate tons of requests for a data file that resides on our server. Currently we have a shared hosting server that runs a PHP script to query the DB and generate the data file for each user request. This is not efficient and has not been a problem so far but we want to move to a more scal...

Add Keypair to existing EC2 instance

I was given AWS Console access to an account with 2 instances running that I cannot shut down (in production). I would however like to gain SSH access to these instances, is it possible to create a new Keypair and apply it to the instances so I can SSH in? Obtaining the exisiting pem file for the keypair the instances were created under ...

How can I troubleshoot why my PHP script won't work in cron when it does from the command line?

I've got a script that calls two functions, A and B, from the same class. A creates an Amazon virtual server and B destroys one, both via shell_exec()'s of Amazon's command line tools. The script, doActions.php, pulls actions from a queue. If the action is "create" it creates an instance; when the action is "destroy" it kills one. The s...

Bash script for /dev semi-mounted volume

I am trying to write a bash script to automatically mount a volume that is in /dev (EC2 EBS storage). When the device is connected, it shows up as /dev/sdf (always)...but the "find" command does not work on it when it is there (just not technically mounted in /etc/mtab). These do not work: [ -f /dev/sdf ] && echo "It exists" || echo ...

Amazon EC2 recommended books

We're considering Amazon EC2 for a project. I'd appreciate some recommendations for books or other learning resource that were essential, practical, and helped you have an easier time with this platform. ...

Modifying software for the cloud

We have a custom software project that's database driven (MySQL) and is built with php and some public and custom libraries. It's currently being hosted on a VPS, and being the intern, I've been assigned the task of researching how we can transition it so it can be hosted in a cloud. My research so far has led me to providers such as...

When to use Amazon Cloudfront or S3

Are there use cases that lend themselves better to Amazon cloudfront over s3 or the other way around? I'm trying to understand the difference between the 2 through examples. ...

Does each cloud instance have its own IP

For a cloud instance that runs Apache, I'm guessing the cloud has an IP address. One of the benefits of using a cloud is scaling, but I'm not sure how that scaling happens. I thought that new instances are created automatically to accommodate rise in traffic. IF that's correct (correct me if I'm wrong), then does that mean that each ne...