rds

Magento and Amazon RDS - timeouts

不问归期 提交于 2019-12-23 04:53:05
问题 I have a Magento CE 1.7 installation on an Amazon EC2 instance with the Magento database on an Amazon RDS Large database instance. Generally things seems to be configured ok. However, when performing bulk import operations I am hitting some sort of 120 second failure. I kick off the import process and exactly 120 seconds in Chrome tells me: Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data Sure enough the import has failed. I have tried the often

unable to make RDS queries on heroku

懵懂的女人 提交于 2019-12-22 10:04:33
问题 I can access my RDS postresql database on a local machine no problem. settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'xxxxxxx', 'USER': 'XXXXXXXX', 'PASSWORD': 'XXXXXXXX', 'HOST': 'XXXXXXrds.amazonaws.com', 'PORT': '5432', } I pushed this to Heroku and I get a ProgrammingError at /saferdb/query/ In manage.py shell on heroku I tried to access the database: >>> from saferdb.models import Question >>> q = Question.objects.all() >>> q.count()

Can't access to RDS from Amazon Lambda, same VPC and correct role permissions

孤人 提交于 2019-12-22 08:32:49
问题 i can't successfully connect to RDS from Amazon Lambda in production. For Amazon Lambda i'm using Serverless framework, executing sls offline i can connect with RDS from localhost, but in production Amazon Lambda doesn't. Both are in same VPC, in same security group, that has all traffic inbound access, and a rule that is pointing to Vpc's CIDR. I have these permissions attached: AmazonRDSFullAccess, AWSLambdaFullAccess, AmazonVPCFullAccess, AWSLambdaExecute and

value of max_connections in AWS RDS

∥☆過路亽.° 提交于 2019-12-22 05:33:12
问题 does anyone know where I can found the highest value of max_connections in AWS RDS? I'm primarily interested in the db.t2 instances running MySQL. I cannot find any appropriate link about that. Thanks!! 回答1: As @error2007s states you can find it in the console, just to complete, in a more general way you have: t2.micro 66 t2.small 150 m3.medium 296 t2.medium 312 m3.large 609 t2.large 648 m4.large 648 m3.xlarge 1237 r3.large 1258 m4.xlarge 1320 m2.xlarge 1412 m3.2xlarge 2492 r3.xlarge 2540

On RDS can I create Tables in a Read Replica that are not present on the Master?

我的梦境 提交于 2019-12-22 04:11:10
问题 We have a separate RDS Instance to handle session state tables, however found that the session DB load is very low. if we can convert the instance handling session as a Read Replica of the main DB, then we can use it for read-only tasks that are safe even with a large lag in the copy. Has anyone done something like this on RDS (Is it possible and safe)? Should I watch out for any serious side effects? Any links or help in understanding this better would help. http://aws.amazon.com/rds/faqs/

.NET CORE MySql MaxPoolSize not applied in

耗尽温柔 提交于 2019-12-22 00:45:06
问题 We have a MySQl database hosted in RDS. When creating a MySQL Connection the maximum Pool size doesn't seem to be applied. We have a connection string that looks like this Server=myServer;Port=3306;Database=MyDatabase;User Id=MyUser;Password=MyPassword;ConnectionReset=True;pooling=true;minpoolsize=1;maxpoolsize=4;ConnectionLifeTime=30" We are adding the max pool size over here, but our application still keeps taking too many connections. I've verified this in MySqlWorkbench with the command

How to set Amazon RDS SQL_MODE with multiple values

南楼画角 提交于 2019-12-21 18:03:18
问题 MySQL allows parameter SQL_MODE to be set to multiple values in the my.cnf file. How can I do the same on Amazon RDS? UPDATE: This problem has been fixed...see below. 回答1: Helpfully it looks like Amazon have fixed this as of May 24th 2016 "The sql_mode parameter can now be set to a list of values for all MySQL and MariaDB versions. The list of values should be correct in all regions as well." https://forums.aws.amazon.com/thread.jspa?threadID=232266 回答2: MySQL allows parameter SQL_MODE to be

ERROR 1465 “Triggers can not be created on system tables” after restore from SQL created by mysqldump

南笙酒味 提交于 2019-12-21 17:26:39
问题 I'm running a mysql 5.6 server on amazon RDS and set up a read replica I use to create backups using mysqldump. I tried with the "--all-databases" option, but when I'm trying to import the SQL created by mysqldump, I end up with this error from the mysql command client: ERROR 1465 "Triggers can not be created on system tables" I used "--all-databases" because I basically want to restore everything in RDS as it was before in case of a crash. Maybe that's wrong, and I should only select my

MySQL Syntax error when locally importing dump from Amazon MySQL RDS?

删除回忆录丶 提交于 2019-12-20 04:22:10
问题 When I create a database dump from Amazon RDS and then I try to import it locally, the result is ERROR 1064 (42000) at line 54 . At line 54 there is the following statement: CREATE TABLE account_emailconfirmation ( The command used for dump is: mysqldump -u user -h host.rds.amazonaws.com -p --default-character-set=utf8 --result-file=sync.sql database_name The command used for import is: mysql --user=root -p mpl -vv < sync.sql And here is the output (verbosity increased). -------------- CREATE

AWS数据库容灾-RDS异号备份

 ̄綄美尐妖づ 提交于 2019-12-19 16:39:01
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> AWS数据库容灾 项目要求 A账号定时将本账号北京区的RDS数据库进行快照备份,并将备份的快照分享给B账号,B帐号收到分享后及时将分享的快照复制到自己的北京区RDS快照组中进行备份。 解决方案 A账号中: 创建一个名为timer-trigger-lambda 的CloudWatch Scheduler Event用于定时触发lambda函数。 创建一个名为timer-create-dbSnapshot的lambda函数,当收到定时的Event触发时对要求的rds(或列出所有的rds)进行打快照处理 创建一个名为notify -manualCreateSnapshot-SNS-lambda的RDS时间订阅,订阅指定RDS实例(或所有实例)的快照处理事件,并将事件发送给SNS topic。 创建一个名为find-new-rds-snap的SNS的topic,用于接收RDS快照事件订阅并将订阅的事件转发给lambda函数,触发快照分享操作。 创建一个名为share-dbSnapshot-to-B的lambda函数,当接收到SNS的触发时进行指定快照的分享给B账号,并将过期的快照删除,并将结果发给SNS去通知B账号进行快照复制操作。 创建一个名为notify-to-B-NewShareSnapshot的SNS