- Newest
- Most votes
- Most comments
The documentation does not explicitly state a specific query rate limit for Amazon Timestream when Query Insights is not enabled. The 1 query per second (QPS) limit is specifically mentioned for when Query Insights is enabled.
Regarding scaling and throttling:
-
Timestream does have a mechanism for scaling query capacity, but it's not an automatic process tied directly to query rate. Instead, Timestream uses Timestream Compute Units (TCUs) to measure and allocate compute capacity for queries. The service allocates TCUs on-demand based on query complexity and the amount of data being processed.
-
The scaling of query capacity in Timestream is not instantaneous. It's controlled by the MaxQueryTCU setting, which acts as a ceiling for how much the compute capacity can scale. This setting can be adjusted from 4 to 1000 TCUs.
-
Yes, you can proactively increase the query capacity to help avoid throttling issues. This is done by increasing the MaxQueryTCU setting. It's recommended to set the MaxQueryTCU at least 4-16 TCUs higher than your peak consumption. You should consider increasing MaxQueryTCU if:
- Your peak query consumption is approaching or reaching the current configured maximum.
- Your queries are returning a 4xx error with the message "MaxQueryTCU exceeded".
- You anticipate a planned increase in your workload.
The throttling error you're encountering suggests that you may need to increase your MaxQueryTCU setting. Monitor your QueryTCU CloudWatch metric to determine the required compute units and adjust the MaxQueryTCU accordingly.
It's important to note that even with these adjustments, there can still be some delay in scaling, and you might experience brief periods of throttling during sudden traffic spikes. Timestream's scaling is designed to balance performance with cost management, so it doesn't instantly scale to match every traffic fluctuation.
Sources
Timestream Compute Unit (TCU) - Amazon Timestream
QueryInsights - Amazon Timestream
Query - Amazon Timestream
Relevant content
- asked 2 years ago
- asked 2 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago