amazon-rds-aurora

DB connections increase after setting aurora in MariaDB connector

一曲冷凌霜 提交于 2021-02-08 06:49:01
问题 We're testing the failover behaviour using the MariaDB JDBC connector Aurora specific features. We've set the JDBC URL as the documentation suggest: jdbc:mysql:aurora://cluster.cluster-xxxx.us-east-1.rds.amazonaws.com/db The problem is that as soon as we add the aurora: part in the URL schema, we can see an increase in the connections to the database writer until the point that we've to rollback the change (it even reaches 3.000 connections). Versions: MariaDB connector: 2.0.1 HikariCP

DB connections increase after setting aurora in MariaDB connector

混江龙づ霸主 提交于 2021-02-08 06:48:03
问题 We're testing the failover behaviour using the MariaDB JDBC connector Aurora specific features. We've set the JDBC URL as the documentation suggest: jdbc:mysql:aurora://cluster.cluster-xxxx.us-east-1.rds.amazonaws.com/db The problem is that as soon as we add the aurora: part in the URL schema, we can see an increase in the connections to the database writer until the point that we've to rollback the change (it even reaches 3.000 connections). Versions: MariaDB connector: 2.0.1 HikariCP

How do you switch between standard and serverless configurations in Amazon Aurora

纵饮孤独 提交于 2021-02-07 11:47:17
问题 I am looking a this Amazon page - https://aws.amazon.com/rds/aurora/serverless/ and it has this quote: You pay on a per-second basis for the database capacity you use when the database is active, and migrate between standard and serverless configurations with a few clicks in the AWS Management Console. I have a few normal Aurora clusters and want to switch them to serverless. I have looked and looked and cannot find the "migrate with a few clicks" bit in the Amazon user interface. I made a

Spring Data JPA - query with the date minus 2 days not working

大憨熊 提交于 2021-02-07 09:30:43
问题 I have this query that updates some prices higher that 2 days ago, but does not work @Transactional @Modifying @Query("update HotelDailyPrice hdp set hdp.price = (select avg (hp.price) " + "from HotelPrice hp where hp.id = ?1 and hp.updateDate > CURRENT_DATE - 2), hdp.day = ?2 ") void updateDailyAveragePrice (Hotel hotel, String dayDate); 回答1: Actually, JPA doesn't support time periods operations because not all databases support it. So you have following options: Calculate date

Spring Data JPA - query with the date minus 2 days not working

南楼画角 提交于 2021-02-07 09:30:41
问题 I have this query that updates some prices higher that 2 days ago, but does not work @Transactional @Modifying @Query("update HotelDailyPrice hdp set hdp.price = (select avg (hp.price) " + "from HotelPrice hp where hp.id = ?1 and hp.updateDate > CURRENT_DATE - 2), hdp.day = ?2 ") void updateDailyAveragePrice (Hotel hotel, String dayDate); 回答1: Actually, JPA doesn't support time periods operations because not all databases support it. So you have following options: Calculate date

Occasional 'temporary failure in name resolution' while connecting to AWS Aurora cluster

梦想的初衷 提交于 2021-01-01 07:59:24
问题 I am running an Amazon Web Services RDS Aurora 5.6 database cluster. There are a couple of lambda's talking to these database instances, all written in python. Now everything was running well, but then suddenly, since a couple of days ago, the python code sometimes starts throwing the following error: [ERROR] InterfaceError: 2003: Can't connect to MySQL server on 'CLUSTER-DOMAIN:3306' (-3 Temporary failure in name resolution) This happens in 1 every 1000 or so new connections. What is

Occasional 'temporary failure in name resolution' while connecting to AWS Aurora cluster

拥有回忆 提交于 2021-01-01 07:55:46
问题 I am running an Amazon Web Services RDS Aurora 5.6 database cluster. There are a couple of lambda's talking to these database instances, all written in python. Now everything was running well, but then suddenly, since a couple of days ago, the python code sometimes starts throwing the following error: [ERROR] InterfaceError: 2003: Can't connect to MySQL server on 'CLUSTER-DOMAIN:3306' (-3 Temporary failure in name resolution) This happens in 1 every 1000 or so new connections. What is

Call AWS Lambda from Aurora RDS Stored Procedure Permissions Issue

谁都会走 提交于 2020-12-30 03:19:34
问题 I've created a few Lambdas in AWS, and an Aurora RDS (publicly available). I couldn't execute lambdas (via call mysql.lambda_async ). When I tried that I got the error ERROR 1873: 1873: Lambda API returned error: Missing Credentials: Cannot instantiate Lambda Client . I tried attaching an IAM role called aurora-lambdas where I set full access to RDS and Lambdas and a trusted relationship between those services, but after trying various configurations I still get the issue. Do someone have

Call AWS Lambda from Aurora RDS Stored Procedure Permissions Issue

有些话、适合烂在心里 提交于 2020-12-30 03:13:50
问题 I've created a few Lambdas in AWS, and an Aurora RDS (publicly available). I couldn't execute lambdas (via call mysql.lambda_async ). When I tried that I got the error ERROR 1873: 1873: Lambda API returned error: Missing Credentials: Cannot instantiate Lambda Client . I tried attaching an IAM role called aurora-lambdas where I set full access to RDS and Lambdas and a trusted relationship between those services, but after trying various configurations I still get the issue. Do someone have

Call AWS Lambda from Aurora RDS Stored Procedure Permissions Issue

房东的猫 提交于 2020-12-30 03:13:39
问题 I've created a few Lambdas in AWS, and an Aurora RDS (publicly available). I couldn't execute lambdas (via call mysql.lambda_async ). When I tried that I got the error ERROR 1873: 1873: Lambda API returned error: Missing Credentials: Cannot instantiate Lambda Client . I tried attaching an IAM role called aurora-lambdas where I set full access to RDS and Lambdas and a trusted relationship between those services, but after trying various configurations I still get the issue. Do someone have