Amazonrds 简明教程
Amazon RDS - DB Monitoring
为了维护 Amazon RDS 的可靠性、可用性和性能,我们需要收集监控数据,以便我们能够轻松调试多点故障。通过 Amazon RDS,您可以监控网络吞吐量、读写和/或元数据操作的 I/O、客户端连接以及 DB 实例的突发积分结余。我们还应考虑存储历史监控数据。此存储的数据将为您提供与当前性能数据进行比较的基准。
In order to maintain the reliability, availability, and performance of Amazon RDS, we need to collect monitoring data so that we can easily debug a multi-point failure. With Amazon RDS, you can monitor network throughput, I/O for read, write, and/or metadata operations, client connections, and burst credit balances for your DB instances. We should also consider storing historical monitoring data. This stored data will give you a baseline to compare against with current performance data.
以下是一些监控数据示例,以及它们如何帮助维护正常的 RDS 实例。
Below are examples of some monitoring data and how they help in maintaining healthy RDS instances.
-
High CPU or RAM consumption – High values for CPU or RAM consumption might be appropriate, provided that they are in keeping with your goals for your application (like throughput or concurrency) and are expected.
-
Disk space consumption – Investigate disk space consumption if space used is consistently at or above 85 percent of the total disk space. See if it is possible to delete data from the instance or archive data to a different system to free up space.
-
Network traffic – For network traffic, talk with your system administrator to understand what expected throughput is for your domain network and Internet connection. Investigate network traffic if throughput is consistently lower than expected.
-
Database connections – Consider constraining database connections if you see high numbers of user connections in conjunction with decreases in instance performance and response time.
-
IOPS metrics – The expected values for IOPS metrics depend on disk specification and server configuration, so use your baseline to know what is typical. Investigate if values are consistently different than your baseline. For best IOPS performance, make sure your typical working set will fit into memory to minimize read and write operations.