0
votes
2answers
90 views

TCP Python Server

I have a question regarding connection reliability running a tcp server from an ec2 instance. We are currently serving mobile customers around the world from the Oregon region using a c3.4xl ec2 ...
2
votes
1answer
847 views

Run python script inside /etc/rc.local doesn't work

I modified /etc/rc.local on my Amazon AWS AMI #!/bin/sh touch /var/lock/subsys/local # setup hostname properly /usr/bin/python /root/automation/initSystem.py so last line calls Python script that ...
1
vote
1answer
130 views

Running a shell command on EC2 using boto? [closed]

I am trying to find a way to pass a shell command to a Linux EC2 instance. Basically I have a script which creates an EBS Volume, brings up a CloudFormation stack, and then attaches the new volume ...
-1
votes
1answer
651 views

Python, “you don't have permission to access that port” [closed]

I'm setting up my first Django project on a server When I do python manage.py runserver .0.0.0.0:80, it tells me You don't have permission to access that port. When I do python manage.py runserver ...
0
votes
3answers
498 views

EC2 servers are slower than local machine

We have been trying to do some performance benchmarking for our webapp written using python that uses mongodb heavily and we have found the following. We tried using 1st Gen Extra Large ec2 servers ...
2
votes
2answers
2k views

Create an Amazon EC2 instance with automatic access to private S3

I was wondering. Say I have a file in a private S3 bucket, and I then deploy an EC2 instance which has something like that in its rc.local: GET http://privateamazons3url.com How can I make it so ...
0
votes
1answer
101 views

EC2 and Mongo, best practices

When hosting web applications with EC2 is it best practice to use a separate EC2 instance for the database (mongo in this case) or is it ok just to keep the web server and database server on the same ...
3
votes
1answer
326 views

Dealing with upgrade of libevent on Amazon AWS

I am building an application (in Python) on Amazon EC2 that has a following dependency chain: gevent-websocket ---> gevent ---> libevent The last one (libevent) got upgraded on Sunday and ...
1
vote
1answer
64 views

Where to put script that backs up root EBS volume using snapshot

I have this awesome python script obtained from http://aws-musings.com/manage-ebs-snapshots-with-a-python-script/ I would like to back up the root EBS volume of my EC2 instances into EBS snapshots. ...
1
vote
1answer
272 views

ipython easy_install/pip error

gcc is complaining with the following when trying to sudo easy_install readline: Running readline-6.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JEUNX3/readline-6.2.4/egg-dist-tmp-_THoHR ...
5
votes
1answer
550 views

rsyslog update on Amazon Linux suddenly treats INFO level messages as EMERG

I'm having strange issue with rsyslog on some of my EC2 instances running Amazon Linux 2012.3. Upon yum upgrading rsyslog 4.6 to 5.8.10, it seems like every INFO level log message is suddenly treated ...
6
votes
3answers
510 views

deploying Python code with Puppet

I'm trying to implement a deployment system for my web application, based on Puppet. The application consists of several services (a couple of web servers: Django- and Tornado-based and a worker ...
0
votes
1answer
233 views

“User 'wsgi' not found” when starting uWSGI

I'm currently trying to set up a server on Amazon EC2 (Ubuntu 11.10) using web.py, nginx and uWSGI as shown here: http://blog.nobien.net/2011/08/14/nginx-uwsgi-and-web-py-and-my-new-job/ I've ...
2
votes
1answer
887 views

Using boto, is there a way to create an AMI from a snapshot ID?

There's a command in the AWS EC2 API called ec2-register or ec2reg which has an argument -s for snapshot ID. You are able to create an image from a snapshot. I'd like to be able to do this in Python ...
0
votes
1answer
399 views

Choosing the right EC2 instance size

I am running a API server on an EC2 C1.medium instance. Our API call takes around 3-5 seconds to finish (runs a python call and uses NLTK calls which are little memory consuming). We have configured ...
0
votes
1answer
215 views

EC2 or GAE for python/django app [closed]

I am currently deciding whether to use EC2 or GAE for my django app. I've done some research on both. In terms of deploying a database-driven django app with the following: -- high on db reads / ...
1
vote
2answers
1k views

Amazon EC2 + S3 + Python + Scraping - The cheapest way of doing this?

I tapped in to Amazons AWS offerings and please explain this in high level - if I am thinking right. So I have few Python scraping scripts on my local machine. I want to use AWS for super fast ...
0
votes
1answer
98 views

How do I create a stable Django/Python template on EC2?

My current Django template on EC2 is using a number of easy-install packages always because there is no matching yum package. Unfortunately, easy-install has a disconcertingly high failure rate. ...
0
votes
2answers
206 views

How do you separate a wsgi django/python app server from the web server?

I've built a django / python application, running on apache with wsgi, and hosted on a single amazon AWS EC2 instance. It a custom client application, so low traffic, but one part of my application ...
1
vote
2answers
314 views

How to deploy local project to Amazon

I have a small webapp written in Python/Django which works fine on my local machine. I've been tinkering and setting up my server on the free tier of Amazon EC2 by following online tutorials. However, ...
21
votes
1answer
3k views

Python CGI on Amazon AWS EC2 micro-instance — a how-to!

How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI? Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 ...
0
votes
1answer
399 views

bottle.py on EC2 micro instance causes 2 order of magnitude slowdown

Cross-posted from StackOverflow: I wrote a little toy script to solve this type of game, and put it on my new micro EC2 instance. It works perfectly, but while it takes around 0.5 seconds to run a ...