amazon-rds

Read replicas in RDS AWS

感情迁移 提交于 2021-02-06 12:56:24
问题 I am a newbie to amazon RDS. I have set up a db instance in RDS. I want to try the RDS read replicas feature. I have few queries: For what kind of applications read replicas are suitable? Is the read replica replicates synchronously or asynchronously data to other read replicas? Is it the substitute of the Multi AZ deployments? How is it better than the master slave or master master replication in MYSQL. If we have replicas on EC2 will it work the same way as RDS read replicas work Thanks in

Read replicas in RDS AWS

旧街凉风 提交于 2021-02-06 12:56:23
问题 I am a newbie to amazon RDS. I have set up a db instance in RDS. I want to try the RDS read replicas feature. I have few queries: For what kind of applications read replicas are suitable? Is the read replica replicates synchronously or asynchronously data to other read replicas? Is it the substitute of the Multi AZ deployments? How is it better than the master slave or master master replication in MYSQL. If we have replicas on EC2 will it work the same way as RDS read replicas work Thanks in

Timeouts connecting to a Postgres database on Amazon RDS from Azure

爷,独闯天下 提交于 2021-02-05 20:01:53
问题 I get the following exception in my application after leaving a database connection idle for some amount of time: ... An I/O error occured while sending to the backend.; nested exception is org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.] with root cause java.net.SocketException: Operation timed out at java.net.SocketInputStream.socketRead0(Native Method) The same issue happens in psql AND I don't have issues connecting to a local database, so I'm pretty

Does RDS proxy affects current application side pooling?

此生再无相见时 提交于 2021-02-04 21:00:37
问题 I have a Saas application on AWS ECS and databases on AWS RDS. We are planning to implement AWS RDS Proxy for pooling implementation. From the RDS proxy documentation, I saw that we don't need to make any changes to the application code. Currently, we are using application side connection pooling. When we implement an RDS proxy for pooling, does the current pooling have any impact? Do we need to remove the application side pooling to work with RDS effectively? My main concern is, if I choose

How to run RDS SQL Server select queries in AWS lambda using boto3 RDS client python?

南楼画角 提交于 2021-01-29 17:23:02
问题 This question was migrated from Database Administrators Stack Exchange because it can be answered on Stack Overflow. Migrated 18 days ago . I am going through AWS boto3 rds documentation for running sql select query on table which is present in RDS SQL Server using python in AWS lambda, but I didn't find any info. Don't we have any option to run RDS SQL queries in AWS lambda? Any ideas! rds_client = boto3.client('rds') 回答1: boto3 library provides API to communicate with AWS API. The AWS RDS

Connecting Alexa skill to mysql database using node.js and aws lambda

我们两清 提交于 2021-01-29 05:55:33
问题 I am trying to connect my Alexa skill to an Amazon RDS mySQL database using node.js in AWS Lambda. I tested the connection before uploading it to lambda and it worked but when I upload it I get a 'process exited before completing request' or a 'There was a problem with the skills response' error. 'use strict'; const Alexa = require('alexa-sdk'); const APP_ID = 'amzn1.ask.skill.11069fc0-53bc-4cd0-8961-dd41e2d812f8'; var testSQL = 'SELECT weight, height from users where pin=1100'; //===========

How to perform database schema migrations after deploying with AWS CDK?

痞子三分冷 提交于 2021-01-29 02:34:14
问题 I'm running an Aurora PostgreSQL (Serverless) cluster. After I deploy the infrastructure for the first time, and every time I re-deploy, I want to run database schema migrations (add tables, add columns). How can I accomplish this? Lambda is out of the question, as migrations may run for a long time. Edit : clarified about schema migration Thanks! 回答1: The correct way to migrate it would be through using the AWS Database Migration Service. You could create the resources in the CDK for this,

How to perform database schema migrations after deploying with AWS CDK?

ε祈祈猫儿з 提交于 2021-01-29 02:32:47
问题 I'm running an Aurora PostgreSQL (Serverless) cluster. After I deploy the infrastructure for the first time, and every time I re-deploy, I want to run database schema migrations (add tables, add columns). How can I accomplish this? Lambda is out of the question, as migrations may run for a long time. Edit : clarified about schema migration Thanks! 回答1: The correct way to migrate it would be through using the AWS Database Migration Service. You could create the resources in the CDK for this,

Not able to connect to amazon RDS with MYSQL workbench

安稳与你 提交于 2021-01-29 02:19:14
问题 I am stuck here in connecting with RDS instance with MySQL workbench I getting following error Can't connect to MySQL server on 'visitorbook.cdokqvroltrt.us-west- 2.rds.amazonaws.com' (10060) I have configured my security group for inbound traffic from my IP for port 3306. 回答1: Use ssh tunnel through the EC2 instance with your pem file. No need to change the security group. If DB connection works form ec2 instance, then it will work from local machine as well. You can setup ssh tunneling

Laravel with PostgreSQL in sslmode

孤人 提交于 2021-01-28 14:21:46
问题 I'm working on a project using AWS, hosted on an EC2 instance with a RDS PostgreSQL. I'm wanting to make use of SSL encryption between my server and database, something AWS RDS supports but I can't figure out how to configure Laravel to make it work. Is there a way to specify sslmode when configuring a database connections? 回答1: This seems to be a missing feature in Laravel 4, but I have submitted a pull request to fix this. https://github.com/laravel/framework/pull/5488 (was merged on 2014