Expected Behavior
The new configuration parameter warmup_connections in DynamoDB online store establishes connections for the entire connection pool as mentioned in the documentation.
Added in #6711
Current Behavior
A single call to the describe_limits endpoint is done, which only establishes one connection.
If multiple feature views are queried at the same time multiple connections from the pool will be used and need to be established.
It probably helps though for additional connections because DNS and credentials might be cached.
Steps to reproduce
Specifications
- Version: 0.66.0
- Platform:
- Subsystem:
Possible Solution
Either call the endpoint asynchronously for the number of maximum connections in the pool or a configured minimum pool size. The describe_limits endpoint can be throttled though when requested more often than once per minute which makes it difficult to be used for these cases. https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeLimits.html
Alternative would be to change the documentation and mention that a single connection is established which might be good enough for use cases where single feature views are requested.
Expected Behavior
The new configuration parameter
warmup_connectionsin DynamoDB online store establishes connections for the entire connection pool as mentioned in the documentation.Added in #6711
Current Behavior
A single call to the
describe_limitsendpoint is done, which only establishes one connection.If multiple feature views are queried at the same time multiple connections from the pool will be used and need to be established.
It probably helps though for additional connections because DNS and credentials might be cached.
Steps to reproduce
Specifications
Possible Solution
Either call the endpoint asynchronously for the number of maximum connections in the pool or a configured minimum pool size. The describe_limits endpoint can be throttled though when requested more often than once per minute which makes it difficult to be used for these cases. https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_DescribeLimits.html
Alternative would be to change the documentation and mention that a single connection is established which might be good enough for use cases where single feature views are requested.