amazon-rds-aurora

storage type error with terraform and aurora postgresql

吃可爱长大的小学妹 提交于 2019-12-11 15:59:17
问题 I am currently working on deploying a Aurora postgres instance in AWS thanks to Terraform. Here is my declaration resource "aws_db_instance" "postgreDatabase" { name = "validName" storage_type = "gp2" allocated_storage = "25" engine = "aurora-postgresql" engine_version = "10.5" instance_class = "db.r4.large" username = "validUsername" password = "validPassword" } Using this declaration throws the following error: aws_db_instance.postgreDatabase: Error creating DB Instance:

AWS - Aurora replicas

痴心易碎 提交于 2019-12-11 08:54:46
问题 Scenario: I have two reader-aurora replicas. I make many calls to my system (high load) I see only one replica working at 99.30%, but the other one is not doing anything at all Why?, is because this second replica is ONLY to prevent failures of the first one?, cannot be possible to make both to share the load? 回答1: In your RDS console, you should be able to look at each of the 3 instances aurora-databasecluster-xxx.cluster-yyy.us-east-1.rds.amazonaws.com:3306 zz0.yyy.us-east-1.rds.amazonaws

Timezone awareness differences between System TZ and DB TZ?

北城以北 提交于 2019-12-11 08:01:59
问题 I am currently migrating a database from a local MySQL host to Aurora in RDS. Checking the time zone settings on both systems using: SELECT @@system_time_zone, @@global.time_zone, @@session.time_zone, NOW(), UTC_TIMESTAMP(); Local Mysql +--------------------+--------------------+---------------------+---------------------+---------------------+ | @@system_time_zone | @@global.time_zone | @@session.time_zone | NOW() | UTC_TIMESTAMP() | +--------------------+--------------------+---------------

How to see size of MySQL internal innodb temporary tables

一笑奈何 提交于 2019-12-10 19:20:01
问题 I'm seeing a large number of internal temporary disk tables being written. I can see the count with SHOW GLOBAL STATUS where Variable_name like 'Created_tmp_disk_tables' . I know I can update max_heap_table_size and tmp_table_size to help prevent this, but without knowing the size of the tables getting written to disk, it's difficult to know what values to use. Does anyone know how to go about finding this value? 回答1: This is not easy to get. In Percona Server, there are options to add

AWS Lambda RDS Connection Pooling

自古美人都是妖i 提交于 2019-12-10 15:16:02
问题 We are trying to add AWS X ray JDBC interceptor to our lambda functions and in order to add JDBC interceptor we have added Tomcat JDBC datasource with max active and max idle connection as 1. Connections are not getting reused and we are getting lot of "connection already closed error". Another pattern we observed is Lambda is taking almost 10 minutes to flush the connection from Aurora DB. Did any one successfully implemented connection pooling with Lambda.( Java 8) and RDS (Aurora). 回答1: I

prevent delete * from table unless primary key specified

依然范特西╮ 提交于 2019-12-08 05:43:44
问题 I want to prevent user from using deleting * from table unless primary key specified, one of our team member accendently used "delete * from table_name" i want to prevent such scenarios in future. 回答1: Would safe updates be viable for you? This is an option you can enable on the command line, in the option file or set a variable in SQL code that prevents updates and deletes without a where clause that includes the key columns defining the rows to change. In MySQL Workbench there is a setting

prevent delete * from table unless primary key specified

拜拜、爱过 提交于 2019-12-07 07:22:27
I want to prevent user from using deleting * from table unless primary key specified, one of our team member accendently used "delete * from table_name" i want to prevent such scenarios in future. Would safe updates be viable for you? This is an option you can enable on the command line, in the option file or set a variable in SQL code that prevents updates and deletes without a where clause that includes the key columns defining the rows to change. In MySQL Workbench there is a setting in Preferences -> SQL Editor -> Safe Updates (rejects UPDATEs and DELETEs with no restriction) . I believe

AWS Aurora server sometimes responds with “Unknown Database: …”

半世苍凉 提交于 2019-12-07 01:16:59
问题 I have a .NET application that executes queries on a MySQL database in Amazon Aurora RDS. The database is a MySQL 5.6 database - the version that comes with Aurora. I execute the queries against a schema (name: flight) within the database (name: SSIMLoader). I am using the MySQL 6.9.8.0 libraries. edit: The connection string points to the master server in the cluster, not to a specific server. The error occurs when doing inserts, selects, and updates so there's no real pattern to it. Even

Aurora RDS instance can not be stopped

寵の児 提交于 2019-12-06 17:55:47
问题 I am trying Amazon Aurora instance and I can not see an option to stop it. The only options are Delete and Reboot. Am I missing something. 回答1: Edit: 2018/09/25 - Amazon Aurora Now Supports Stopping and Starting of Database Clusters Per this announcement, Aurora now supports starting and stopping the db instance. This feature was released for other RDS configurations last year and generally behaves the same in this implementation. Stopping the database cluster stops the primary instance and

Connect to Aurora Serverless using EC2 as Proxy

妖精的绣舞 提交于 2019-12-06 11:24:37
问题 Not a duplicate of AWS Aurora MySQL serverless: how to connect from MySQL Workbench. Aurora Serverless doesn't support public connections yet. I used Cloud9 to create an EC2 instance on the same VPN as the database. I then connected to the database from the Cloud9 terminal. My (GraphQL Prisma) service that I'm attempting to host (on Zeit Now) only takes a HOST and a PASSWORD for configuration. How can I make the EC2 instance act as a proxy that I can treat exactly as a database endpoint. Can