问题标签 [aws-rds]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
257 浏览

amazon-web-services - 最佳实践 数据库迁移 AWS OpsWorks/RDS

我对有关数据库迁移的一些最佳实践和可用工具有疑问(为下一个版本升级数据库架构):

我们目前使用一台服务器,我们还托管我们的 mysql 数据库。如果我们想部署一个新版本,我们将带有代码的数据库迁移推送到服务器,我们使用迁移脚本来更改数据库并将当前部署的数据库迁移(编号)保存在一个文件中。现在我们想将我们的系统迁移到 AWS 并利用水平扩展的优势。我们不能在这个新系统上使用我们当前的数据库迁移脚本,因为多个服务器将访问同一个数据库 (AWS RDS)。

我们最终希望使用 AWS OpsWorks 进行服务器管理并使用厨师脚本设置新服务器。但是我还没有找到一个解决方案,我们可以如何将我们的数据库迁移自动部署到生产数据库。你有什么建议或想法吗?

非常感谢。

PS我认为这应该不是一个不常见的问题,但是如果我用谷歌搜索“DB迁移AWS”,我总是让AWS服务将数据库从不同的服务器迁移到AWS,但这有不同的目的;)

0 投票
1 回答
174 浏览

amazon-web-services - 使用 MySQL Workbench 连接到 RDS

我无法使用 MySQL Workbench 从本地计算机连接到我的 RDS 实例。我每次都收到错误 10006。当我去创建连接时,我输入 RDS 端点作为主机、端口 3306、用户、密码,但它失败了。我的 RDS 实例位于 VPC 中,我认为这可能是问题所在。

我对此并不陌生,所以如果有人可以解释我需要更改 b/c 的内容,我的实例位于 VPC 中,这将很有帮助。

0 投票
1 回答
342 浏览

database - 什么是加密数据库中的静态数据?

这是否意味着

  1. 存储数据库的存储卷是加密的
  2. 或者数据库的每一列都被数据库自动加密
0 投票
1 回答
28 浏览

amazon-ec2 - 仅用于创建 RDS 快照的 AWS 用户

我需要授予用户访问权限以创建 RDS 实例的快照以进行备份和还原,这在 AWS 中是否可行。另外,我需要同一个用户,需要版本 s3 存储桶,这可能吗?

0 投票
1 回答
694 浏览

php - AWS RDS 数据库的 CakePHP3 应用程序错误

我最初为我的 cakephp 3 应用程序使用了一个本地 mysql 数据库,并且一切正常。我正在部署我的 cakephp3 应用程序,所以我创建了一个 RDS MySql 实例并将其连接到 MySql 工作台,然后将我之前拥有的数据库复制到 RDS 数据库中。我在 app.php 中的设置是这样的。

要定义我的常量,我有

然后在 app.php 文件的数据源部分

在 AWS 控制台上,它说我与 RDS 实例建立了连接。但是,当我尝试注册/登录时,出现了 CakePHP 内部错误。然后我检查了错误日志,并在我的 error.log 文件中找到了它。

我不明白我做错了什么?当我切换回我拥有的数据库的本地副本时,一切正常。任何帮助,将不胜感激。

===================编辑=======================

在我的实例的 AWS 控制台中读取错误日志时,我得到了这个输出。坦率地说,这是我第一次使用 RDS,所以我不知道这意味着什么,但它可能对其他人有所帮助。

0 投票
0 回答
316 浏览

postgresql - 为在 Postgres 中不工作的大表选择全部

我们有一个总共由 450,000 行和 90 列组成的表。当我们执行一个简单的 Select * from table 时,我们会遇到 GC Overhead 问题并且该过程会失败。

表格大小为 140 - 160 MB

我们有一个字段的索引,但是我们的查询中没有 WHERE 子句,所以我不确定这是否有帮助。

我们正在尝试以 10K 记录的批量大小进行查询。它失败了。奇怪的是,如果我们将批处理大小从 10K 减少到仅 10(是的 10),它仍然会产生相同的 GC 开销错误。

这是我们 Postgresql 端的配置(我们使用的是 AWS RDS)

我可以在数据库表级别进行哪些优化以使其正常工作?

0 投票
2 回答
1108 浏览

aws-rds - Aurora- 每天将生产数据库克隆为 qa 数据库

我们有一个用于生产的极光数据库(aws)。我们希望有一个克隆数据库,它将每天更新并用于 qa(从生产到 qa db 的一种同步方式)。最好的方法是什么?谢谢

0 投票
0 回答
86 浏览

amazon-web-services - 部署后与 RDS 的数据库连接不起作用

我开发了一个利用 Amazon RDS 的动态 Web 应用程序。Servlet 与 RDS 对话获取数据并使用 JSP 呈现它。该过程运行良好。接下来,我在 AWS Elastic beanstalk 上上传了项目的 war 文件。但是数据库连接不起作用。

你能在这里指导我吗?为什么我的连接变量在部署后不起作用?

我对早期部署进行了一些更改,现在 App 需要永远加载。

0 投票
3 回答
4635 浏览

mysql - MySQL server very high load

I run a website with ~500 real time visitors, ~50k daily visitors and ~1,3million total users. I host my server on AWS, where I use several instances of different kind. When I started the website the different instances cost rougly the same. When the website started to gain users the RDS instance (MySQL DB) CPU constantly keept hitting the roof, I had to upgrade it several times, now it have started to take up the main part of the performance and monthly cost (around 95% of (2,8k$/month)). I currently use a database server with 16vCPU and 64GiB of RAM, I also use Multi-AZ Deployment to protect against failures. I wonder if it is normal for the database to be that expensive, or if I have done something terribly wrong?

Current settings

enter image description here

Database Info

At the moment my database have 40 tables with the most of them have 100k rows, some have ~2millions and 1 have 30 millions. I have a system the archives rows that are older then 21 days when they are not needed anymore.

Website Info

The website mainly use PHP, but also some NodeJS and python.

Most of the functions of the website works like this:

  1. Start transaction
  2. Insert row
  3. Get last inserted id (lastrowid)
  4. Do some calculations
  5. Updated the inserted row
  6. Update the user
  7. Commit transaction

I also run around 100bots wich polls from the database with 10-30sec interval, they also inserts/updates the database sometimes.

Extra

I have done several things to try to lower the load on the database. Such as enable database cache, use a redis cache for some queries, tried to remove very slow queries, tried to upgrade the storage type to "Provisioned IOPS SSD". But nothing seems to help.

This is the changes I have done to the setting paramters:

enter image description here

I have though about creating a MySQL cluster of several smaller instances, but I don't know if this would help, and I also don't know if this works good with transactions.

If you need any more information, please ask, any help on this issue is greatly appriciated!

0 投票
1 回答
249 浏览

sql - MariaDB 在 AWS RDS 中安装 OQGRAPH 作为数据库引擎

是否可以在 AWS RDS 实例上安装 OQGRAPH?如果是怎么办?

阅读安装指南:https : //mariadb.com/kb/en/mariadb/installing-oqgraph/ 安装 OQGRAPH 需要对服务器进行管理员访问 - 显然 RDS 不同意。

关于如何安装它的任何想法?

显然,如果我只是跑

我确实收到以下错误消息:

无法打开共享库'/rdsdbbin/mariadb-10.0.24.R1/lib/plugin/ha_oqgraph.so'(错误号:2,无法打开共享对象文件:没有这样的文件或目录)