AWS RDS postgresql IOPS 性能问题

AWS RDS postgresql IOPS perfomance issue

我们在 Rails 应用程序上为 Ruby 使用 AWS db.m4.2xlarge RDS postgresql 实例。根据 AWS documentation IOPS 速率应为 8000,但我们的 RDS 实例无法执行超过 3000 - 4000 IOPS 写入。

我们正在 运行 大约 10 个并发 rake 任务来将数据更新到数据库中。我们尝试将任务加倍,但 IOPS 率仍然保持不变。

我们分析了 Ruby 任何内存泄漏的代码,它看起来很好,rails 应用程序实例中的内存也不是问题。

有解决这个问题的方法吗?

the RDS storage documentation、"Provisioned IOPS storage is designed to meet the needs of I/O-intensive workloads, particularly database workloads, that are sensitive to storage performance and consistency in random access I/O throughput."

如果您从通用存储更改为预配置 IOPS,您应该会看到性能提升。