DynamoDB 通话记录?

DynamoDB call history?

我有一个 DynamoDB 应用程序,它似乎 运行 很好并且通常使用正常的吞吐量。然而,偶尔它似乎会飙升到相当高的水平(最近飙升超过 300,正常情况下最大值约为 10-20)。我查看了代码,但在弄清楚是什么导致了这些尖峰时遇到了一些麻烦。 DynamoDB 中是否有任何类型的调用历史可以告诉我究竟是什么调用导致了尖峰?

您可以启用 cloudtrail 日志,dynamoDB.It 会将这些日志文件传送到 S3 存储桶。直接取自 AWS 文档:-

DynamoDB is integrated with CloudTrail, a service that captures low-level API requests made by or on behalf of DynamoDB in your AWS account and delivers the log files to an Amazon S3 bucket that you specify. CloudTrail captures calls made from the DynamoDB console or from the DynamoDB low-level API. Using the information collected by CloudTrail, you can determine what request was made to DynamoDB, the source IP address from which the request was made, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to configure and enable it, see the AWS CloudTrail User Guide.

请按照aws dynamoDB cloudtrail logging启用。