amazon-rds

Accessing remote MySQL database with peewee

半世苍凉 提交于 2019-12-03 08:39:52
问题 I'm trying to connect to a MySQL database on Amazon's RDS using peewee and I can't get it to work. I'm new to databases so I'm probably doing something stupid, but this is what I'm trying: import peewee as pw myDB = pw.MySQLDatabase(host="mydb.crhauek3cxfw.us-west-2.rds.amazonaws.com",port=3306,user="user",passwd="password",db="mydb") class MySQLModel(Model): """A base model that will use our MySQL database""" class Meta: database = myDB class User(MySQLModel): username = CharField() myDB

Elastic Beanstalk connect to RDS from shell SSH

ぃ、小莉子 提交于 2019-12-03 07:24:16
问题 I have a python application on an Elastic Beanstalk EC2 instance which is connected to an PostgreSQL RDS. My application works fine and uses the environment variables that are set by Elastic Beanstalk to connect with the database: os.environ['RDS_DB_NAME'] os.environ['RDS_USERNAME'] os.environ['RDS_PASSWORD'] os.environ['RDS_HOSTNAME'] os.environ['RDS_PORT'] However, this doesn't work when I login on the EC2 instance with SSH. The RDS environment variables are not set. Since my application

How to get hold of Amazon MySQL RDS certificates

元气小坏坏 提交于 2019-12-03 06:38:55
问题 Amazon RDS documentation (http://aws.amazon.com/rds/faqs/#53) specifies that "Amazon RDS generates an SSL certificate for each [MySQL] DB Instance". I haven't been able to find any documentation on how to find the certificates and the certificates are nowhere to be found in the management console. Where are the certificates? 回答1: I found the solution here: https://forums.aws.amazon.com/thread.jspa?threadID=62110. Download ca cert file from here: https://s3.amazonaws.com/rds-downloads/mysql

NewSQL versus traditional optimization/sharding [closed]

送分小仙女□ 提交于 2019-12-03 06:05:10
We're a small startup with a write-heavy SAAS app and are (finally!) getting to the point where our usage is presenting scaling issues. We have a small team, so we really appreciate being able to offload sysadmin to Heroku and RDS. While Heroku is (mostly) fine, we have a couple problems with RDS: Scaling. This is the biggest concern. We currently run an XL RDS instance. We'll be able to get by for a while longer with straightforward optimizations, but unless we make some major structural changes to our app, we'll hit a bottleneck at some point. Also, the downtime for changing instance size

AWS RDS instance upgrade down time [closed]

最后都变了- 提交于 2019-12-03 05:23:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have a few questions in regards to upgrading the RDS instance. What is the downtime when upgrading the instance from let's say small to large. Is the downtime relatively similar when you go and change any instance type(small, large, xlarge) or are there determining factors such as database size that alter the

Amazon RDS MySQL instance performs very slow

守給你的承諾、 提交于 2019-12-03 04:52:12
问题 I have published my website on Amazon EC2 (Singapore region) and I have used MySQL RDS instance for the data storage. Everything is working very fine except performance. I seems that, my all queries, specially select statement, is performing very slow. If I check this issue on my local PC, there it is working very well. But when I am trying to get data from RDS instance, it is very slow. Some of the select statements takes 2-3 seconds to fetch data. I have properly tuned up all table indexes,

Has anyone figured out how to scale Amazon RDS read replicas?

拥有回忆 提交于 2019-12-03 04:25:02
问题 I've recently set up a read replica to take some of the read load off of my Amazon multi-AZ RDS instance. The Amazon documentation clearly states that it is "up to your application to determine how read traffic is distributed across your read replicas". Has anyone figured out a manageable way to scale read replicas? It doesn't seem like a very extensible solution to have different parts of my application hard-coded to read from specific replicas. Is there a way to set this up that is

Amazon RDS stop instance [duplicate]

我们两清 提交于 2019-12-03 04:14:32
This question already has an answer here: Amazon RDS - Online only when needed? 4 answers I am working on Amazon RDS, but I don't need instances to run all the day 24/7, as I'm only developing right now. Is there any way to stop an RDS instance when I don't need it? I don't want to pay what I don't use! There is no "stop/start" actions for RDS databases, currently you'd have to terminate the database taking a final snapshot and restore from that snapshot. UPDATE: Now supported (thanks @venkata-mutyala): https://aws.amazon.com/about-aws/whats-new/2017/06/amazon-rds-supports-stopping-and

Amazon RDS - Online only when needed?

不想你离开。 提交于 2019-12-03 02:12:50
问题 I had a question about Amazon RDS. I only need the database online for about 2 hours a day but I am dealing with quite a large database at around 1gb. I have two main questions: Can I automate bringing my RDS database online and offline via scripts to save money? When I put a RDS offline to stop the "work hours" counter running and billing me, when I bring it back online will it still have the same content (i.e will all my data stay there, or will it have to be a blank DB?). If so, is there

How to get hold of Amazon MySQL RDS certificates

浪子不回头ぞ 提交于 2019-12-02 22:43:11
Amazon RDS documentation (http://aws.amazon.com/rds/faqs/#53) specifies that "Amazon RDS generates an SSL certificate for each [MySQL] DB Instance". I haven't been able to find any documentation on how to find the certificates and the certificates are nowhere to be found in the management console. Where are the certificates? Peder I found the solution here: https://forums.aws.amazon.com/thread.jspa?threadID=62110 . Download ca cert file from here: https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem curl -O https://s3.amazonaws.com/rds-downloads/mysql-ssl-ca-cert.pem Connect to mysql: