30
голосов
2ответов
9369 просмотров

Architecture of a PHP app on Amazon EC2

I recently experienced a flood of traffic on a Facebook app I created (mostly for the sake of education, not with any intention of marketing) Needless to say, I did not think about scalability when I created the app. I'm now in a position where my meager virtual server hosted by MediaTemple isn'...

1
голосов
3ответов
5800 просмотров

EC2 non root user login

Is there a way to log into an EC2 ubuntu ami or a way to set up an ubuntu ami so that non-root users can log in? I tried creating a user and logging in with the associated password. I also tried using the private key, copied the authorized-keys file into the .ssh directory of the non-root user'...

3
голосов
6ответов
620 просмотров

Are there any big names running on the cloud?

Are there any big names running on the cloud? Especially on GAE and Amazon?

4
голосов
4ответов
6505 просмотров

Cloud Monthly Pricing Calculator

Amazon did a great job by providing an online calculator for AWS; resides here: http://calculator.s3.amazonaws.com/calc5.html Which really helps to find your way among a swarm of cloud options. Is there similar a tool for GAE (Google App Engine) or Microsoft Azure?

5
голосов
1ответов
9872 просмотров

Why is my Amazon EC2 instance "pending"?

I've been evaluating several cloud compute providers, Amazon EC2 among them. I started an instance with a Windows image, and ever since then it's been "pending", for more than 30 minutes now. Is this a typical amount of wait for an instance to start? This would be highly undesirable for my purpo...

2
голосов
1ответов
1609 просмотров

MySQL index creation is slow (on EC2)

I have a fairly simple table requestparams ( requestid varchar(64) NOT NULL, requestString text, ) ENGINE=MyISAM; After populating the table with "LOAD DATA", I am changing the schema and making "requestid" the primary key. There are 11 million rows in this table and the data size is les...

3
голосов
2ответов
2228 просмотров

Can I call multiple FFMPEG processes on a multi-core LAMP machine from PHP?

I am using PHP to call an FFMPEG command using exec(). The script that initiates this command is called from another PHP script using proc_close(proc_open('php /phpdirectory/process.php &', array(), $foo)); This works great. The ffmpeg command is called and runs 'in the background' leavin...

4
голосов
2ответов
2832 просмотров

how to create a security group with dynamic IP address on amazon web service

i need to run an instance and access with my ip address..but the problem is that myISP changes my IP adress every day.plz help me how do i create a security group so that my instance remains accessible even if my ip changes.... thanks in advance..

1
голосов
2ответов
2177 просмотров

Recommended EC2 AMI for high traffic PHP web service

I hope I'm asking this question in the right place. I have a web service serving widgets with about 500K hits /day. Traffic is expected to double monthly. It is currenty on VPS with Plesk 8 /Centos 5 / Apache 2/ Php 5.2.6 /Mysql 5.0.45 / Memcached / APC I'm seeing occasional kmemsize errors a...

88
голосов
7ответов
11471 просмотров

When should one use the following: Amazon EC2, Google App Engine, Microsoft Azure and Salesforce.com?

I am asking this in very general sense. Both from cloud provider and cloud consumer's perspective. Also the question is not for any specific kind of application (in fact the intention is to know which type of applications/domains can fit into which of the cloud slab -SaaS PaaS IaaS). My understa...

1
голосов
4ответов
1857 просмотров

When would you need multiple servers to host one web application?

Is that called "clustering" of servers? When a web request is sent, does it go through the main server, and if the main server can't handle the extra load, then it forwards it to the secondary servers that can handle the load? Also, is one "server" that's up and running the application called an ...

2
голосов
1ответов
1463 просмотров

How can I get my Elastic IP working for my EC2 Instance?

I set up an EC2 instance, which went very smoothly, and I can currently access it via the public DNS. Once I had this working, I requested an Elastic IP, which I then assigned to the instance. This appears to have worked properly, and describing my instances from the command line shows the corre...

16
голосов
4ответов
7616 просмотров

Best practices for developing scalable video transcoding server on Amazon Web Services?

What do people think are the most important issues when developing an application that is going to allow users to upload video and images to a server and have them transcoded by FFMPEG and stored in amazon S3? I have a couple of options; 1) install FFMPEG on the same server that handles file upl...

3
голосов
1ответов
609 просмотров

In python, how do you launch an Amazon EC2 instance from within a Google App Engine app?

In python, what is the best way to launch an Amazon EC2 instance from within a Google App Engine app? I would like to keep my AWS keys as secure as possible and be able to retrieve the public DNS for the newly launched EC2 instance.

3
голосов
3ответов
3367 просмотров

how to use a private yum repo on amazon-s3 to provision amazon-ec2 instances?

My fantasy is to be able to spin up a standard AMI, load a tiny script and end up with a properly configured server instance. Part of this is that I would like to have a PRIVATE yum repo in S3 that would contain some proprietary code. It seems that S3 wants you to either be public or use AMZN's...

1
голосов
1ответов
1504 просмотров

Help understanding Amazon Web Services pricing

I am trying to understand Amazon's pricing for regional data transfer... I have an EC2 instance in a us-east region and an S3 bucket in the EU. I am also using a 3rd party service that uses an EC2 instance that is only available in the US. Can someone help to clarify what I am charged and where...

0
голосов
2ответов
998 просмотров

Port LAMP application to EC2

Any good resource on how to port a LAMP stack to Ec2? Mainly I'm concerned about storage, the MySQL part. The existing app works agains a single store. Do I need to port all my storage to S3? Will the EC2 instances be able to share a single MySQL database? Alternatively I can partition my data a...

2
голосов
2ответов
1421 просмотров

How do i fix my S3/memcache latency problem?

We have SERIOUS latency issues SOMETIMES on our server. We store 3 things of interest in S3 and stuff them into memcache as well. User avatars averaging ~25k text ~1.5k xml ~1.5k we have dedicated 128meg of ram for memcached as of right now... as of right now it is riding 74 meg of it doing...

2
голосов
3ответов
8430 просмотров

What user is PHP on my CentOS linux box? root?

Hi I am trying to troubleshoot why I cannot get files to upload to my CentOS machine running on EC2 and think it may be a permissions problem (as I have gleamed from previous questions). How do I check what privileges my PHP installation has for writing files. The directory that I want to write f...

0
голосов
2ответов
1626 просмотров

Help with uploading images to EC2 instance (Flash -> PHP)

I have developed an image uploading application that uses Flash to load an image, resize the image and send the bytearray of the image data to a PHP file that outputs the resized file using the following code - $default_path = '/uploads/temp/'; $filename = $_GET["filename"]; $destination = $defa...

0
голосов
2ответов
2539 просмотров

How do I put my PHP files on a Linux AMI on EC2 - dreamweaver / FTP / SSH?

I have launched an EC2 linux instance (a rightscale CentOS v 5.2 i386 image) and want have followed a tutorial (http://www.ardentsoft.com/blog/2009/3/4/lamp-on-ec2-part-6-configuring-apache.html) for configuring PHP and Apache. Now I need to know how to get my PHP files from my dedicated server u...

2
голосов
2ответов
1461 просмотров

Speed up database inserts from ORM

I have a Django view which creates 500-5000 new database INSERTS in a loop. Problem is, it is really slow! I'm getting about 100 inserts per minute on Postgres 8.3. We used to use MySQL on lesser hardware (smaller EC2 instance) and never had these types of speed issues. Details: Postgres 8.3 ...

3
голосов
1ответов
1020 просмотров

How do I properly snapshot an EBS volume with a RabbitMQ instance running?

I'm using RabbitMQ on an EC2 instance and I have the Mnesia tables on an EBS volume, so when I snapshot it and try to launch another instance with the same data, it appears that the table is in use by another RabbitMQ instance. Is the only way to get around this to shut RabbitMQ down for the flu...

3
голосов
4ответов
2916 просмотров

Open Source Amazon EC2?

Are there any open source applications that provide a set of features similar to that of Amazon EC2 or Rackspace Cloud? Basically, I want a tool that I can install on one or more servers that works with a virtual machine monitor like Xen and lets me create, destroy, and clone virtual machines on...

44
голосов
5ответов
31993 просмотров

Automating Amazon EBS snapshots anyone have a good script or solution for this on linux

I'd expect this to be fairly routine, but cannot find a simple approach for creating an managing EBS snapshots automatically. Was hoping there'd be a shceduler in the AWS console.. alas not yet. Would appreciate any suggestions as to how best to do this on from Ubuntu. Thanks

2
голосов
3ответов
5632 просмотров

Hosting Static sites via EC2 ELB and Cloudfront

Looking to host multiple static web sites by pointing DNS to an Elastic Load Balancer and serving the content via Cloudfront. Is this a plausible approach? Are there any gotchas we should look out for. How should we configure DNS for each site? Appreciate any thoughts on this Dom

0
голосов
1ответов
1992 просмотров

Port backend created in XAMPP to AWS server (EC2)

I am using AWS EC2 to create a back end for my website. I already have an AWS account and EC2 subscription. I am familiar with LAMP and so am creating a database and some scripts locally using XAMPP. Now I want to know how I can port these to my AWS server. How do I upload script files to the se...

0
голосов
2ответов
653 просмотров

Scaling on Amazon EC2

I have several newbie questions about EC2, thanks for your attention, 1) why EC2 instances come with specific memory/storage quotas? In the cloud environment, can't we just request the amount of memory/storage as we require, and the amazon infrastructure take care of the allocation? I understa...

1
голосов
1ответов
1729 просмотров

Streaming media from EC2

We have been requested to stream a single video (+500MB) from a web site. The biggest additional requirement is that access must be forbidden to foreign IP addresses. Given that high bandwith usage is expected we have turned to Amazon S3 to serve the video as a FLV, but AFAIK Amazon won't let ...

13
голосов
4ответов
2621 просмотров

Is it possible to write map/reduce jobs for Amazon Elastic MapReduce using .NET?

Is it possible to write map/reduce jobs for Amazon Elastic MapReduce (http://aws.amazon.com/elasticmapreduce/) using .NET languages? In particular I would like to use C#. Preliminary research suggests not. The above URL's marketing text suggests you have a "choice of Java, Ruby, Perl, Python, PH...