

要获得与亚马逊 Timestream 类似的功能 LiveAnalytics，可以考虑适用于 InfluxDB 的亚马逊 Timestream。适用于 InfluxDB 的 Amazon Timestream 提供简化的数据摄取和个位数毫秒级的查询响应时间，以实现实时分析。点击[此处](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)了解更多信息。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 问题排查
<a name="Troubleshooting"></a>

本节包含有关对 Timestream 进行 LiveAnalytics故障排除的信息。

**Topics**
+ [

# 操控 WriteRecords 油门
](troubleshoot-writethrottles.md)
+ [

# 处理被拒绝的记录
](troubleshoot-rejectedrecords.md)
+ [

# 排除从 Timestream 卸载的故障 LiveAnalytics
](troubleshoot-export-unload.md)
+ [

# LiveAnalytics 特定错误代码的时间流
](APITimestreamSpecificErrors.md)

# 操控 WriteRecords 油门
<a name="troubleshoot-writethrottles"></a>

当 Timestream 根据应用程序的数据摄取需求进行扩展时，您向 Timestream 提交的内存存储写入请求可能会受到限制。如果应用程序遇到节流异常，则必须继续以相同（或更高）的吞吐量发送数据，以便 Timestream 能够根据应用程序的需求进行自动扩展。

当接收数据摄取的磁性存储分区达到最大限制时，您对 Timestream 的磁型存储写入请求可能会受到限制。您将发现节流消息，提示您检查此数据库的 `ActiveMagneticStorePartitions` Cloudwatch 指标。此节流问题最长可能需要 6 小时才能解决。为避免此节流问题，应将内存存储用于任何高吞吐量的摄取工作负载。对于磁性存储摄取，可通过限制摄取的系列数量和持续时间，将摄取目标锁定在更少的分区上

有关数据摄取最佳实践的更多信息，请参阅[读取](data-ingest.md)。

# 处理被拒绝的记录
<a name="troubleshoot-rejectedrecords"></a>

如果 Timestream 拒绝记录，您将收到 `RejectedRecordsException`，其中包含有关拒绝的详细信息。有关如何从 WriteRecords 响应中提取此信息的更多信息，请参阅[处理写入失败](https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.write.html#code-samples.write.rejectedRecordException)。

 所有拒绝都将包含在此响应中，但**更新磁性存储时如果新纪录的版本小于或等于现有记录的版本则除外**。在此情况下，Timestream 不会更新具有更高版本的现有记录。Timestream 将拒绝版本较低或相等的新记录，并将这些错误异步写入 S3 存储桶。要接收这些异步错误报告，应在表的 `MagneticStoreWriteProperties` 中设置 `MagneticStoreRejectedDataLocation` 属性。

# 排除从 Timestream 卸载的故障 LiveAnalytics
<a name="troubleshoot-export-unload"></a>

以下是与 UNLOAD 命令相关的故障排除指南。

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/timestream/latest/developerguide/troubleshoot-export-unload.html)

# LiveAnalytics 特定错误代码的时间流
<a name="APITimestreamSpecificErrors"></a>

本节包含 Timestream 的 LiveAnalytics特定错误代码。

## LiveAnalytics 写入 API 错误的时间流
<a name="APITimestreamSpecificErrors.write"></a>

****InternalServerException****  
 HTTP 状态代码：500

**ThrottlingException**  
 HTTP 状态代码：429

**ValidationException**  
 HTTP 状态代码：400

**ConflictException**  
 HTTP 状态代码：409

**AccessDeniedException**  
您没有足够的访问权限，无法执行该操作。  
 HTTP 状态代码：403

**ServiceQuotaExceededException**  
 HTTP 状态代码：402

**ResourceNotFoundException**  
 HTTP 状态代码：404

**RejectedRecordsException**  
 HTTP 状态码：419

**InvalidEndpointException**  
 HTTP 状态码：421

## LiveAnalytics 查询 API 错误的时间流
<a name="APITimestreamSpecificErrors.query"></a>

**ValidationException**  
 HTTP 状态代码：400

**QueryExecutionException**  
 HTTP 状态代码：400

**ConflictException**  
 HTTP 状态代码：409

**ThrottlingException**  
 HTTP 状态代码：429

**InternalServerException**  
 HTTP 状态代码：500

**InvalidEndpointException**  
 HTTP 状态码：421