amazon-rds

Connection hanging occasionally with Amazon RDS MySQL & Play Framework 1.2.5 (c3p0 default settings)

我只是一个虾纸丫 提交于 2019-12-07 11:08:47
问题 We're having problems with Amazon-hosted Play application with RDS Mysql. Sometimes the application ends up unresponsive. Today I checked the thread status with jstack -F and there were multiple threads stuck in native code for c3p0 connection : Thread 14060: (state = IN_NATIVE) - java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, byte[], int, int, int) @bci=0 (Compiled frame; information may be imprecise) - java.net.SocketInputStream.read(byte[], int, int, int) @bci=79, line=150

Is it possible to launch an RDS instance without a VPC?

故事扮演 提交于 2019-12-07 09:50:45
问题 I'm trying to insert records into a Postgres database in RDS from a Lambda function. My Node.js lambda function works correctly when run locally, but the database connection times out when run in AWS. I've read several articles and tutorials which suggest that AWS Lambda functions cannot access RDS instances that are within a VPC. For example: http://ashiina.github.io/2015/01/amazon-lambda-first-impression/ Unfortunately; it seems I am unable to create an RDS instance that exists outside of a

Unable to access Amazon RDS using Eclipse

别说谁变了你拦得住时间么 提交于 2019-12-07 03:50:30
I just installed MySQL in Amazon RDS, using its wizards. I selected the same security group my EC2 instance is using. I tried to access this by Eclipse AWS toolkit. What I did is right clicking on the RDS instance and clicked on "Conenct". Then it asked for the password and tried to connect, but ended up with the below error. Unable to connect to RDS database java.lang.reflect.InvocationTargetException I have seen number of posts regarding this without having a single solution. I hope your machine IP is part of aws security rule. Please also check the respective ports are not blocked by your

AWS Lambda - Unable to connect to SQL Server RDS

前提是你 提交于 2019-12-06 12:29:39
问题 Hi I was having the same problem as this post but the posted answer (no sample code) wasn't provided so I will start a new thread and ask you guys. I have created a AWS Serverless Application (.Net Core) project for our lambda function and below code is what I used to connect in AWS RDS. string ConnectionString = "Data Source=rds4abc1190.asdfqwerqb9l.us-east-1.rds.amazonaws.com,2855;Initial Catalog=MyDatabase;Persist Security Info=True;User ID=myID;Password=mypassword;Encrypt=False"; using

Error connecting to Amazon RDS (MySQL) from node-mysql

落花浮王杯 提交于 2019-12-06 10:41:36
问题 I am trying to connect to my Amazon RDS (MySQL) instance from a nodejs code hosted in Lambda using the "felixge/node-mysql" package. I need help to find out what I am doing wrong. I am getting "connect ETIMEDOUT" error. My code is hosted in Lambda and both Lamda and RDS are of the same account and region. I have also attached the RDSFullAccess Policy to the IAM role. RDS instance is also accessible from all IPs(no whitelist/blacklisted IPs). At the same time, I am able to connect from my

RDS instance CPU utilization

混江龙づ霸主 提交于 2019-12-06 09:20:21
问题 My amazon mysql large RDS instance's CPU utilization is going very high (about 70%) without any genuine reason. How to find which query or process is harming my instance? thanks 回答1: The standard method is to examine SHOW PROCESSLIST or SHOW ENGINE InnoDB STATUS to see what's going on. You are using InnoDB, right? 回答2: It could also be due to the autoback feature RDS provides. I think AWS RDS does an automatic back up around midnight everyday, you must factor this into your calculations 来源:

How to properly connect AWS Lambda to RDS in VPC?

半腔热情 提交于 2019-12-06 08:25:35
问题 I am trying to build a graphQL API with Serverless Framework on AWS-Lambda using Apollo-Server-Lambda etc. I need to use a not publicly available PostgreSQL RDS instance. I can get lambdas up and running and sending back requests when not in VPC. I can get a Postgres RDS Database up and running and connected to PgAdmin (when in publicly available mode). The problem is once I make the RDS Postgres 'non public' and try to get all these pieces talking together I fail. I have tried multitude of

Django AWS RDS MySQL Error: (2026, 'SSL connection error: error:00000001:lib(0):func(0):reason(1)')

爱⌒轻易说出口 提交于 2019-12-06 06:17:27
I'm having some trouble connecting to my AWS RDS Database from my Python/Django application. I'm getting this error when trying to run my application locally: django.db.utils.OperationalError: (2026, 'SSL connection error: error:00000001:lib(0):func(0):reason(1)') I couldn't find any answers online as I am not trying to connect via SSL. My Database settings in settings.py is straightforward: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': '<my db name>', 'USER': '<my username>', 'PASSWORD': '<my password>', 'HOST': '<my aws host>', 'PORT': '<my port>', } } I was

Setting up RDS (MySQL) database access using IAM to generate access tokens

人盡茶涼 提交于 2019-12-06 05:50:59
问题 I have followed the instructions to set up AWS and MySQL such that I should be able to sign in to mysql using mysql-client and a user (named aws_iam ) without a password, but with a token generated by awscli with the role attached to my EC2 instance. The instructions are here So what I have is: An EC2 instance with a role which allows me to generate RDS credentials An RDS instance running MySQL, with a user aws_iam which is identified by AWSAuthenticationPlugin When signed in to the EC2

Elastic Beanstalk -> RDS connection error using Grails

隐身守侯 提交于 2019-12-06 04:11:10
I'm deploying a Grails application to Amazon Web Services Elastic Beanstalk and leveraging RDS. I'm using Grails, Spring-Security (RDS tables). The application appears to work fine (login and data in RDS being pulled back). However, from time to time the first time I login I get a database connection error. The second time it (immediately) works fine. The only thing I'm doing slightly different is trying to use Java system properties for the connection string, username and password to externalize the connection properties: production { dataSource { url = System.getProperty("JDBC_CONNECTION